:root {
  --background: #f8fbfe;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --text: #11263a;
  --muted: #617487;
  --line: rgba(55, 113, 157, 0.13);
  --blue-50: #eff8ff;
  --blue-100: #dff2ff;
  --blue-200: #bfe6ff;
  --blue-300: #93d4ff;
  --blue-500: #4dafe8;
  --blue-600: #2f93cf;
  --blue-700: #2375a8;
  --navy: #0d2437;
  --shadow-sm: 0 12px 34px rgba(36, 92, 129, 0.08);
  --shadow-lg: 0 30px 90px rgba(39, 103, 144, 0.16);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 9% 3%, rgba(193, 231, 255, 0.52), transparent 23rem),
    radial-gradient(circle at 94% 20%, rgba(223, 242, 255, 0.52), transparent 28rem),
    var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  z-index: -2;
  background-image: linear-gradient(rgba(82, 148, 190, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(82, 148, 190, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

::selection { background: var(--blue-200); color: var(--navy); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }

.container { width: var(--container); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 12px 16px; border-radius: 12px; background: var(--navy); color: #fff; text-decoration: none; }
.skip-link:focus { top: 16px; }

.ambient { position: absolute; border-radius: 999px; filter: blur(8px); pointer-events: none; z-index: -1; }
.ambient-one { width: 240px; height: 240px; top: 520px; left: -160px; background: rgba(131, 205, 247, .22); }
.ambient-two { width: 320px; height: 320px; top: 1200px; right: -240px; background: rgba(165, 219, 249, .22); }

.site-header { position: sticky; top: 0; z-index: 50; padding-top: max(10px, env(safe-area-inset-top)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(248, 251, 254, .74); border-bottom: 1px solid rgba(55, 113, 157, .08); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 18px; letter-spacing: -.02em; }
.brand strong { color: var(--blue-700); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: linear-gradient(145deg, #e7f6ff, #cbeaff); box-shadow: inset 0 0 0 1px rgba(47, 147, 207, .15); }
.brand-mark svg { width: 24px; fill: var(--blue-600); }
.brand-mark .brand-spark { fill: #fff; }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color .2s ease; }
.nav-links a:hover { color: var(--blue-700); }
.nav-cta { padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); }

.hero { min-height: 720px; padding-block: 92px 88px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 66px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--blue-700); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--blue-500); box-shadow: 0 0 0 5px rgba(77, 175, 232, .13); }
.hero h1 { margin: 24px 0 20px; max-width: 670px; font-size: clamp(46px, 6vw, 75px); line-height: .99; letter-spacing: -.062em; }
.hero h1 span { color: var(--blue-600); position: relative; white-space: nowrap; }
.hero h1 span::after { content: ""; position: absolute; left: 3%; right: 1%; bottom: -7px; height: 9px; border-radius: 50%; border-top: 3px solid var(--blue-300); transform: rotate(-1deg); opacity: .8; }
.hero-description { max-width: 620px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border-radius: 15px; text-decoration: none; font-size: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); box-shadow: 0 16px 34px rgba(47, 147, 207, .28); }
.button-primary:hover { box-shadow: 0 20px 42px rgba(47, 147, 207, .36); }
.button-secondary { color: var(--text); background: rgba(255,255,255,.8); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.hero-trust span { display: inline-flex; gap: 6px; align-items: center; }
.hero-trust i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-style: normal; font-size: 11px; font-weight: 900; }

.hero-visual { position: relative; min-height: 530px; display: grid; place-items: center; }
.visual-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(142, 211, 250, .38), rgba(142, 211, 250, 0) 70%); filter: blur(6px); animation: breathe 5s ease-in-out infinite; }
.app-card { position: relative; width: min(100%, 520px); padding: 18px; border: 1px solid rgba(98, 161, 202, .18); border-radius: 30px; background: rgba(255,255,255,.86); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); transform: rotate(1.2deg); }
.app-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(113,190,236,.28), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.app-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 4px 4px 17px; }
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 8px; height: 8px; border-radius: 50%; background: #d9eaf4; }
.window-dots span:nth-child(2) { background: #cbe6f7; }
.window-dots span:nth-child(3) { background: #b9dbf0; }
.app-title { color: var(--muted); font-size: 12px; font-weight: 700; }
.status-pill { justify-self: end; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: #edf9f4; color: #398066; font-size: 10px; font-weight: 800; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: #57b88e; box-shadow: 0 0 0 3px rgba(87,184,142,.14); }
.prompt-preview { padding: 24px; border: 1px solid rgba(84, 149, 190, .12); border-radius: 21px; background: linear-gradient(145deg, #fbfdff, #f2f9fd); }
.prompt-label { color: var(--blue-700); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.prompt-preview p { margin: 13px 0 20px; font-size: 17px; font-weight: 700; line-height: 1.55; letter-spacing: -.015em; }
.prompt-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.prompt-tags span { padding: 7px 10px; border: 1px solid rgba(68, 148, 198, .12); border-radius: 999px; background: #fff; color: var(--muted); font-size: 10px; font-weight: 700; }
.usage-card { margin-top: 13px; padding: 22px 24px; border-radius: 21px; background: var(--navy); color: #fff; }
.usage-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.usage-heading div { display: grid; gap: 4px; }
.usage-heading span { color: #9db2c3; font-size: 10px; }
.usage-heading strong { font-size: 15px; }
.usage-badge { padding: 6px 9px; border-radius: 999px; background: rgba(141,213,255,.12); color: #a9ddfa !important; font-weight: 800; }
.meter { height: 8px; margin-top: 20px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.1); }
.meter span { display: block; width: 34%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-300), var(--blue-500)); animation: load-meter 1.6s cubic-bezier(.2,.75,.25,1) both; }
.meter-scale { display: flex; justify-content: space-between; margin-top: 9px; color: #8299aa; font-size: 9px; }
.floating-note { position: absolute; display: flex; align-items: center; gap: 10px; min-width: 150px; padding: 12px 14px; border: 1px solid rgba(73, 145, 191, .14); border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 16px 40px rgba(35, 91, 128, .13); animation: float 4s ease-in-out infinite; }
.floating-note strong, .floating-note small { display: block; }
.floating-note strong { font-size: 11px; }
.floating-note small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.note-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-100); color: var(--blue-700); font-size: 14px; font-weight: 900; }
.note-one { left: -34px; top: 116px; transform: rotate(-3deg); }
.note-two { right: -34px; bottom: 86px; transform: rotate(2deg); animation-delay: -1.7s; }

.mini-stats { border-block: 1px solid var(--line); background: rgba(255,255,255,.52); }
.mini-stats-grid { min-height: 116px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.mini-stats-grid div { display: grid; gap: 4px; padding: 10px 28px; border-right: 1px solid var(--line); text-align: center; }
.mini-stats-grid div:last-child { border-right: 0; }
.mini-stats-grid strong { font-size: 23px; letter-spacing: -.04em; }
.mini-stats-grid span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }

.tips-section { padding-block: 118px 124px; }
.section-heading { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-heading .eyebrow { margin-inline: auto; }
.section-heading h2, .formula-copy h2, .prompt-panel h2, .final-cta h2 { margin: 20px 0 14px; font-size: clamp(36px, 5vw, 55px); line-height: 1.05; letter-spacing: -.05em; }
.section-heading p, .formula-copy p, .prompt-panel-copy p, .final-cta p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.tips-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tip-card { position: relative; min-height: 280px; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.tip-card::after { content: ""; position: absolute; width: 150px; height: 150px; top: -90px; right: -80px; border-radius: 50%; background: var(--blue-100); opacity: .55; transition: transform .4s ease; }
.tip-card:hover { transform: translateY(-5px); border-color: rgba(77, 175, 232, .32); box-shadow: 0 22px 50px rgba(40, 102, 142, .12); }
.tip-card:hover::after { transform: scale(1.25); }
.tip-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.tip-number { color: var(--blue-600); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.tip-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(77, 175, 232, .15); border-radius: 13px; background: var(--blue-50); color: var(--blue-700); font-size: 18px; }
.tip-card h3 { position: relative; z-index: 1; margin: 28px 0 12px; font-size: 22px; letter-spacing: -.025em; }
.tip-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.72; }
.tip-tag { position: absolute; bottom: 26px; left: 30px; padding: 7px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 10px; font-weight: 800; }
.featured-tip { background: linear-gradient(145deg, #132d42, #0c2234); color: #fff; }
.featured-tip p { color: #afc0cd; }
.featured-tip .tip-icon { border-color: rgba(151,216,255,.18); background: rgba(151,216,255,.1); color: #aadaf7; }
.featured-tip .tip-number { color: #9bd8fb; }
.featured-tip .tip-tag { background: rgba(151,216,255,.1); color: #aadaf7; }
.featured-tip::after { background: rgba(92,186,235,.16); }

.formula-section { padding-block: 92px; color: #fff; background: linear-gradient(145deg, #0a2032, #102e44); position: relative; overflow: hidden; }
.formula-section::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 20%, rgba(100,196,247,.16), transparent 24rem), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: auto, 42px 42px, 42px 42px; }
.formula-grid { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 80px; }
.eyebrow-light { color: #a7ddfb; }
.formula-copy p { color: #a9bac7; }
.formula-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.formula-steps div { min-height: 150px; padding: 22px; border: 1px solid rgba(185,224,246,.12); border-radius: 18px; background: rgba(255,255,255,.04); backdrop-filter: blur(12px); }
.formula-steps span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(135,210,249,.12); color: #a7ddfb; font-size: 11px; font-weight: 900; }
.formula-steps strong, .formula-steps small { display: block; }
.formula-steps strong { margin-top: 18px; font-size: 16px; }
.formula-steps small { margin-top: 5px; color: #92a8b8; font-size: 11px; }

.prompt-section { padding-block: 122px; }
.prompt-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: center; padding: 55px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(255,255,255,.85), rgba(239,248,254,.9)); box-shadow: var(--shadow-lg); }
.copy-feedback { min-height: 22px; margin-top: 18px; color: #3d8a6d; font-size: 13px; font-weight: 700; }
.code-card { overflow: hidden; border: 1px solid rgba(108,171,211,.16); border-radius: 20px; background: #0d2437; box-shadow: 0 24px 50px rgba(15,49,73,.22); }
.code-topbar { min-height: 52px; display: flex; justify-content: space-between; align-items: center; padding: 0 14px 0 20px; color: #91a7b7; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 11px; }
.copy-button { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid rgba(177,220,245,.14); border-radius: 10px; color: #c8e4f5; background: rgba(255,255,255,.06); font: inherit; font-weight: 800; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.copy-button:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.copy-button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.code-card pre { margin: 0; padding: 26px; overflow-x: auto; white-space: pre-wrap; color: #dbeaf4; font: 12px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.final-cta { margin-bottom: 120px; padding: 54px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.final-cta h2 { font-size: clamp(34px, 4vw, 48px); }
.final-cta p { max-width: 700px; }
.final-cta .button { flex: 0 0 auto; }

.footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.62); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.footer-brand { font-size: 15px; }
.footer-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.footer-brand .brand-mark svg { width: 20px; }
.footer p { margin: 0; color: var(--muted); font-size: 10px; text-align: center; }
.footer-links { justify-self: end; display: flex; gap: 16px; }
.footer-links a { color: var(--muted); font-size: 10px; text-decoration: none; }
.footer-links a:hover { color: var(--blue-700); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes breathe { 0%,100% { transform: scale(.94); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes load-meter { from { width: 0; } to { width: 34%; } }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding-top: 72px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-actions { margin-inline: auto; justify-content: center; }
  .hero-description { margin-inline: auto; }
  .hero-trust { justify-content: center; }
  .hero-visual { min-height: 540px; }
  .formula-grid, .prompt-panel { grid-template-columns: 1fr; gap: 38px; }
  .formula-copy { max-width: 650px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; }
  .footer-links { justify-self: auto; }
}

@media (max-width: 720px) {
  :root { --container: min(100% - 28px, 1180px); }
  .site-header { padding-top: max(4px, env(safe-area-inset-top)); }
  .nav { min-height: 64px; }
  .nav-links { display: none; }
  .nav-cta { padding: 9px 14px; font-size: 12px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { padding-block: 58px 66px; }
  .hero h1 { font-size: clamp(43px, 13vw, 61px); }
  .hero-description { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-trust { gap: 10px 15px; }
  .hero-visual { min-height: 460px; }
  .app-card { transform: none; padding: 12px; border-radius: 23px; }
  .app-topbar { padding-bottom: 13px; }
  .app-title { display: none; }
  .app-topbar { grid-template-columns: 1fr 1fr; }
  .prompt-preview { padding: 20px; }
  .prompt-preview p { font-size: 15px; }
  .usage-card { padding: 19px; }
  .floating-note { min-width: 135px; padding: 10px; }
  .note-one { left: -6px; top: 95px; }
  .note-two { right: -6px; bottom: 42px; }
  .mini-stats-grid { grid-template-columns: repeat(2, 1fr); padding-block: 10px; }
  .mini-stats-grid div { min-height: 84px; border-bottom: 1px solid var(--line); }
  .mini-stats-grid div:nth-child(2) { border-right: 0; }
  .mini-stats-grid div:nth-child(3), .mini-stats-grid div:nth-child(4) { border-bottom: 0; }
  .tips-section { padding-block: 88px 92px; }
  .section-heading { margin-bottom: 35px; }
  .tips-grid { grid-template-columns: 1fr; }
  .tip-card { min-height: 275px; padding: 26px; }
  .tip-tag { left: 26px; bottom: 24px; }
  .formula-section { padding-block: 78px; }
  .formula-steps { grid-template-columns: 1fr; }
  .formula-steps div { min-height: 130px; }
  .prompt-section { padding-block: 88px; }
  .prompt-panel { padding: 27px 19px 19px; border-radius: 23px; }
  .code-card pre { padding: 21px 18px; font-size: 11px; }
  .final-cta { margin-bottom: 88px; padding: 34px 24px; flex-direction: column; align-items: flex-start; }
  .final-cta .button { width: 100%; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 410px) {
  .nav-cta { display: none; }
  .hero h1 { font-size: 42px; }
  .hero h1 span { white-space: normal; }
  .hero-visual { min-height: 445px; }
  .floating-note { min-width: 126px; }
  .note-one { left: -3px; }
  .note-two { right: -3px; }
  .mini-stats-grid span { letter-spacing: .07em; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
