:root {
  --bg: #f6f4fb;
  --paper: #ffffff;
  --ink: #151628;
  --muted: #6f7086;
  --soft: #ece9f8;
  --purple: #8372d8;
  --purple-dark: #5f50b8;
  --mint: #9bd3bd;
  --peach: #efb9aa;
  --blue: #9fd4ec;
  --gold: #e8d195;
  --night: #0d1321;
  --night-soft: #151c31;
  --ring: rgba(131, 114, 216, .28);
  --shadow: 0 24px 80px rgba(35, 30, 88, .14);
  --shadow-soft: 0 16px 48px rgba(35, 30, 88, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(156, 211, 189, .30), transparent 34rem),
    radial-gradient(circle at top right, rgba(131, 114, 216, .22), transparent 28rem),
    var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .80);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}
.site-header.compact { margin-bottom: 28px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #e7e3ff, #8dd9d1);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.70), 0 10px 28px rgba(131, 114, 216, .25);
}
.logo-mark span {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--night);
  box-shadow: 8px 0 0 #f6f4fb;
  transform: rotate(-18deg);
}
.brand-logo { height: 60px; width: auto; display: block; }
.brand-logo-sm { height: 28px; }
.nav { display: flex; align-items: center; gap: 20px; color: var(--muted); font-weight: 700; font-size: 14px; }
.nav a:hover { color: var(--purple-dark); }

.section-pad { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 86px 0; }
.section-pad-small { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 40px; }
.hero { display: grid; grid-template-columns: 1fr .86fr; gap: 56px; align-items: center; min-height: 760px; }
.eyebrow { display: inline-flex; color: var(--purple-dark); background: rgba(131, 114, 216, .12); border: 1px solid rgba(131, 114, 216, .18); padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; margin-bottom: 18px; }
.eyebrow.light { color: #ddd8ff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.10); }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.06em; margin: 0; }
h1 { font-size: clamp(48px, 7vw, 86px); max-width: 760px; }
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h3 { font-size: 28px; }
p { margin: 0; color: var(--muted); }
.lead { font-size: 20px; max-width: 680px; margin-top: 24px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: 18px; font-weight: 800; box-shadow: var(--shadow-soft); }
.button.primary { color: white; background: linear-gradient(135deg, var(--purple), var(--purple-dark)); }
.button.secondary { color: var(--purple-dark); background: white; border: 1px solid rgba(131, 114, 216, .18); }
.button.on-dark { background: white; color: var(--purple-dark); }
.button.coffee { color: white; background: linear-gradient(135deg, #ff924f, #e8622a); box-shadow: 0 8px 24px rgba(232, 98, 42, .32); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.button.header-download { color: white; background: var(--night); font-size: 14px; min-height: 44px; padding: 0 18px; }
.header-actions .button.coffee { font-size: 14px; min-height: 44px; padding: 0 18px; }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.trust-row span { color: var(--muted); background: rgba(255,255,255,.70); border: 1px solid rgba(255,255,255,.80); border-radius: 999px; padding: 10px 14px; font-weight: 700; font-size: 14px; }
.hero-visual { position: relative; min-height: 620px; }
.phone { position: absolute; width: 270px; border-radius: 38px; padding: 10px; background: rgba(255,255,255,.68); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.80); }
.phone img { border-radius: 28px; width: 100%; }
.phone-front { right: 40px; top: 30px; transform: rotate(3deg); }
.phone-back { left: 20px; bottom: 20px; transform: rotate(-5deg); }

.sos-banner { display: grid; grid-template-columns: .8fr 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--night), #171b33); border-radius: 36px; color: white; box-shadow: var(--shadow); }
.sos-banner p { color: #cdd2e6; font-size: 18px; }
.moon-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.10); color: #dcd5ff; font-size: 32px; margin-bottom: 18px; }

.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading p { margin-top: 16px; font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 30px; min-height: 280px; border-radius: 32px; background: var(--paper); box-shadow: var(--shadow-soft); border: 1px solid rgba(255,255,255,.88); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; color: white; margin-bottom: 24px; font-size: 26px; }
.feature-card p { margin-top: 16px; }
.communicate-card .card-icon { background: var(--purple); }
.focus-card .card-icon { background: #6fa4fb; }
.ground-card .card-icon { background: var(--mint); }

.dark-section { background: linear-gradient(160deg, var(--night), #121936); border-radius: 42px; color: white; padding-left: 46px; padding-right: 46px; box-shadow: var(--shadow); }
.dark-section p { color: #cdd2e6; font-size: 18px; margin-top: 20px; }
.split { display: grid; grid-template-columns: .9fr 1fr; gap: 48px; align-items: start; }
.principle-list { display: grid; gap: 14px; }
.principle-list div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); border-radius: 24px; padding: 20px; }
.principle-list strong { display: block; font-size: 18px; margin-bottom: 5px; }
.principle-list span { color: #cdd2e6; }

.screen-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.screen-gallery figure { margin: 0; padding: 12px; background: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.86); border-radius: 34px; box-shadow: var(--shadow-soft); }
.screen-gallery img { border-radius: 26px; width: 100%; }
.screen-gallery figcaption { text-align: center; font-weight: 800; padding: 14px 0 6px; color: var(--muted); }

.about-card { max-width: 860px; margin: 0 auto; background: white; border-radius: 38px; padding: 46px; box-shadow: var(--shadow-soft); border: 1px solid rgba(255,255,255,.88); }
.about-card p { margin-top: 18px; font-size: 18px; }
.note { background: #fff6e5; border: 1px solid #f4dfb6; border-radius: 22px; padding: 18px; color: #665538; }
.download { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, var(--purple), #5b4eb9); color: white; border-radius: 42px; padding-left: 46px; padding-right: 46px; box-shadow: var(--shadow); }
.download p { color: #ece9ff; margin-top: 16px; max-width: 720px; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.support-card { display: block; padding: 24px; background: white; border: 1px solid rgba(255,255,255,.88); border-radius: 28px; box-shadow: var(--shadow-soft); }
.support-card strong { display: block; font-size: 20px; margin-bottom: 8px; }
.support-card span { color: var(--muted); }
.contact-card { margin-top: 32px; background: white; border: 1px solid rgba(255,255,255,.88); border-radius: 32px; padding: 36px; box-shadow: var(--shadow-soft); }
.contact-title { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 8px; }
.contact-desc { font-size: 16px; margin-bottom: 28px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 14px; font-weight: 700; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea { font-family: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid rgba(131, 114, 216, .22); border-radius: 16px; padding: 12px 16px; outline: none; transition: border-color .15s; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--purple); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.contact-submit { align-self: flex-start; cursor: pointer; border: none; font-family: inherit; font-size: 16px; }
@media (max-width: 900px) { .form-row { grid-template-columns: 1fr; } }
.site-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 54px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.brand.small { font-size: 15px; }
.brand.small .logo-mark { width: 30px; height: 30px; }
.brand.small .logo-mark span { width: 17px; height: 17px; }
.site-footer a { font-weight: 800; color: var(--purple-dark); }

.policy-wrap { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 78px; }
.policy-card { background: white; border-radius: 38px; padding: clamp(26px, 5vw, 58px); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.88); }
.policy-card h1 { font-size: clamp(38px, 6vw, 68px); }
.policy-card h2 { font-size: 26px; margin-top: 34px; letter-spacing: -.04em; }
.policy-card p { margin-top: 12px; }
.policy-date { font-weight: 800; color: var(--purple-dark); }
.policy-card a { color: var(--purple-dark); font-weight: 800; }

@media (max-width: 900px) {
  .site-header { position: static; align-items: flex-start; }
  .nav { display: none; }
  .header-actions { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 58px; }
  .hero-visual { min-height: 560px; }
  .phone { width: 238px; }
  .phone-front { right: 4px; }
  .phone-back { left: 0; }
  .sos-banner, .split, .feature-grid, .screen-gallery, .support-grid { grid-template-columns: 1fr; }
  .screen-gallery { max-width: 360px; margin: 0 auto; }
  .download { display: block; }
  .download .button { margin-top: 24px; }
}

@media (max-width: 520px) {
  .section-pad { padding: 60px 0; }
  .section-pad-small, .dark-section, .download, .about-card { padding: 26px; border-radius: 30px; }
  .hero-visual { min-height: 500px; }
  .phone { width: 210px; }
  .phone-back { bottom: 50px; }
  .lead { font-size: 18px; }
  .button { width: 100%; }
  .site-footer { display: block; }
}
