*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --text: #f4f7fb;
  --muted: rgba(244,247,251,0.72);
  --faint: rgba(244,247,251,0.48);
  --border: rgba(255,255,255,0.10);
  --accent: #8bb8ff;
  --accent-2: #b68cff;
  --accent-3: #72e6d1;
  --shadow: 0 20px 80px rgba(0,0,0,0.35);
  --container: 1180px;
  --header-h: 84px;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(139,184,255,0.14), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(182,140,255,0.12), transparent 24%),
    radial-gradient(circle at 50% 85%, rgba(114,230,209,0.08), transparent 28%),
    linear-gradient(180deg, #05070b 0%, #090c12 45%, #06080d 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  backdrop-filter: blur(18px);
  background: rgba(7,9,13,0.58);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; letter-spacing: 0.22em; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 12px; position: relative; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(139,184,255,0.95), rgba(182,140,255,0.95));
  box-shadow: 0 8px 30px rgba(139,184,255,0.28), inset 0 1px 0 rgba(255,255,255,0.35);
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute;
  width: 14px; height: 2px; left: 10px; top: 16px;
  background: rgba(255,255,255,0.92); border-radius: 999px;
}
.brand-mark::before { transform: rotate(45deg); }
.brand-mark::after  { transform: rotate(-45deg); }
.nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 14px; padding: 10px 14px; border-radius: 999px; transition: 0.25s ease; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* BUTTONS */
.btn {
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #061019; background: linear-gradient(135deg, #d7e7ff 0%, #8bb8ff 55%, #72e6d1 100%); box-shadow: 0 18px 40px rgba(114,230,209,0.18); }
.btn-secondary { color: var(--text); background: rgba(255,255,255,0.05); border-color: var(--border); }
.btn-disabled { color: var(--faint); background: rgba(255,255,255,0.025); border-color: rgba(255,255,255,0.08); cursor: not-allowed; opacity: 0.72; }

/* HERO */
.hero { position: relative; padding: 72px 0 52px; }
.hero-grid {
  min-height: calc(100vh - var(--header-h) - 48px);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 48px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03); border-radius: 999px;
  color: var(--muted); font-size: 12px; letter-spacing: 0.24em;
  text-transform: uppercase; margin-bottom: 24px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(139,184,255,0.8);
}
h1 { margin: 0; max-width: 10ch; font-size: clamp(48px, 8vw, 98px); line-height: 0.96; letter-spacing: -0.05em; font-weight: 800; }
.hero-sub { margin: 24px 0 0; max-width: 560px; font-size: clamp(18px, 2vw, 22px); line-height: 1.7; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 16px; color: var(--faint); font-size: 14px; }

/* PHONE MOCKUP */
.preview-stage { position: relative; height: 700px; display: flex; align-items: center; justify-content: center; }
.glow { position: absolute; border-radius: 999px; filter: blur(60px); pointer-events: none; }
.glow.one { width: 280px; height: 280px; background: rgba(139,184,255,0.22); top: 80px; right: 70px; }
.glow.two { width: 240px; height: 240px; background: rgba(182,140,255,0.18); left: 40px; bottom: 120px; }
.phone {
  position: absolute; width: 278px; height: 568px; border-radius: 42px; padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 28px 80px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.22);
  backdrop-filter: blur(14px);
}
.phone::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 24px; border-radius: 0 0 18px 18px; background: rgba(0,0,0,0.6); z-index: 2;
}
.phone.left  { transform: translateX(-110px) rotate(-9deg); animation: floatA 7s ease-in-out infinite; }
.phone.right { transform: translateX(110px)  rotate(9deg);  animation: floatB 8s ease-in-out infinite; }
.screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: radial-gradient(circle at top right, rgba(114,230,209,0.18), transparent 25%),
              radial-gradient(circle at top left, rgba(139,184,255,0.22), transparent 30%),
              linear-gradient(180deg, #0e1320 0%, #0c1018 45%, #090c12 100%);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 24px 18px 18px; display: flex; flex-direction: column; gap: 14px;
}
.status { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,0.82); font-size: 12px; font-weight: 600; padding: 0 4px; margin-bottom: 8px; }
.screen-title { font-size: 24px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.screen-text  { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.66); }
.mood-pills, .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pill, .tag { font-size: 12px; color: rgba(255,255,255,0.9); padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); }
.idea-card, .save-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 22px; padding: 16px; }
.idea-card h4, .save-card h4 { margin: 0 0 8px; font-size: 15px; line-height: 1.35; }
.idea-card p,  .save-card p  { margin: 0; font-size: 12px; color: rgba(255,255,255,0.68); line-height: 1.55; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-box { min-height: 86px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }
.mini-box strong { display: block; font-size: 13px; margin-bottom: 8px; }
.mini-box span   { color: rgba(255,255,255,0.6); font-size: 11px; line-height: 1.45; }

/* SECTIONS */
.section { padding: 110px 0; }
.section.centered { text-align: center; }
.section-title { margin: 0 0 18px; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.04em; }
.section-text  { margin: 0 auto; max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.divider { width: min(760px,100%); height: 1px; margin: 42px auto 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22) 50%, transparent); }
.phrases { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.phrases span { padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: var(--muted); font-size: 14px; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.feature-card { background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.035)); border: 1px solid rgba(255,255,255,0.09); border-radius: 24px; padding: 24px; min-height: 240px; transition: transform 0.28s ease, border-color 0.28s ease; }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.16); }
.feature-icon { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #dbe7ff; }
.feature-card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.03em; }
.feature-card p  { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* FOOTER */
.footer { padding: 40px 0 60px; border-top: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-brand { max-width: 360px; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 12px 0 0; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); font-size: 14px; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); transition: 0.25s ease; }
.footer-links a:hover { color: var(--text); border-color: rgba(255,255,255,0.14); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--faint); font-size: 14px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); }

/* LEGAL PAGES */
.legal-page { padding: 72px 0 100px; }
.legal-shell { max-width: 860px; margin: 0 auto; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 28px; padding: 32px; }
.legal-shell h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 18px; }
.legal-shell h2 { font-size: 22px; margin: 32px 0 12px; letter-spacing: -0.03em; }
.legal-shell p, .legal-shell li { color: var(--muted); font-size: 16px; line-height: 1.8; }
.legal-shell ul { margin: 8px 0; padding-left: 20px; }
.legal-back { display: inline-flex; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.legal-back:hover { color: var(--text); }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@keyframes floatA {
  0%, 100% { transform: translateX(-110px) rotate(-9deg) translateY(0); }
  50%       { transform: translateX(-110px) rotate(-7deg) translateY(-14px); }
}
@keyframes floatB {
  0%, 100% { transform: translateX(110px) rotate(9deg) translateY(0); }
  50%       { transform: translateX(110px) rotate(7deg) translateY(16px); }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .preview-stage { height: 620px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 740px) {
  .site-header { position: static; height: auto; }
  .header-inner { padding: 18px 0; flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 28px; }
  .hero-grid { min-height: auto; }
  h1 { font-size: clamp(42px, 14vw, 64px); }
  .preview-stage { height: 540px; }
  .phone { width: 216px; height: 440px; border-radius: 32px; }
  .phone.left  { transform: translateX(-52px) rotate(-8deg); }
  .phone.right { transform: translateX(52px)  rotate(8deg); }
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
  .legal-shell { padding: 22px; border-radius: 22px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .phone { animation: none; }
}

/* ABOUT SECTION */
.about-section { padding: 130px 0; }
.about-block { max-width: 860px; margin: 0 auto; }
.about-text {
  font-size: clamp(22px, 3.5vw, 42px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 40px;
  font-weight: 500;
  max-width: none;
}

/* APP PREVIEW SECTION */
.app-preview-section { padding: 100px 0 130px; }
.preview-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.mockup-center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 56px;
  padding: 40px 0 60px;
}
.glow-center {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139,184,255,0.14) 0%, rgba(182,140,255,0.10) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.phone-center {
  position: relative;
  width: 300px;
  height: 620px;
  border-radius: 46px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.25);
  backdrop-filter: blur(14px);
  animation: floatCenter 6s ease-in-out infinite;
}
.phone-center::before {
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  border-radius: 0 0 18px 18px;
  background: rgba(0,0,0,0.65);
  z-index: 2;
}
.phone-center .screen {
  border-radius: 34px;
}
.active-pill {
  background: linear-gradient(135deg, rgba(139,184,255,0.3), rgba(182,140,255,0.3)) !important;
  border-color: rgba(139,184,255,0.4) !important;
  color: #dbe7ff !important;
}

@keyframes floatCenter {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

@media (max-width: 740px) {
  .about-text { font-size: clamp(20px, 6vw, 28px); }
  .phone-center { width: 240px; height: 490px; }
  .mockup-center { padding: 20px 0 40px; }
}

/* LEGAL PAGES */
.legal-page { padding: 64px 0 100px; }
.legal-shell {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 48px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  transition: 0.2s ease;
}
.legal-back:hover { color: var(--text); border-color: rgba(255,255,255,0.16); }
.legal-shell h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  max-width: none;
}
.legal-date {
  color: var(--faint);
  font-size: 14px;
  margin: 0 0 32px !important;
}
.legal-shell h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  color: var(--text);
}
.legal-shell p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 16px;
  max-width: none;
}
.legal-shell ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.legal-shell li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 6px;
}
.legal-shell a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 740px) {
  .legal-shell { padding: 24px; border-radius: 20px; }
}
