:root {
  --ink: #16232d;
  --muted: #5f6b74;
  --paper: #f5f3ee;
  --white: #ffffff;
  --orange: #f36f21;
  --orange-dark: #d95711;
  --line: #dcd8cf;
  --green: #2d8a68;
  --code: #101a22;
  --radius: 18px;
  --shadow: 0 22px 65px rgba(22, 35, 45, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; }
button { font: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.hero { position: relative; overflow: hidden; padding: 0 6vw 90px; background: var(--ink); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: -40% -15% auto auto; width: 620px; height: 620px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.hero::after { content: ""; position: absolute; left: -130px; bottom: -210px; width: 430px; height: 430px; border-radius: 50%; background: var(--orange); filter: blur(2px); opacity: .13; }
.topbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 14px; letter-spacing: .02em; }
.brand b { color: #aab4ba; font-weight: 500; }
.brand-mark { display: inline-block; width: 24px; height: 24px; border: 7px solid var(--orange); border-right-color: transparent; border-radius: 50%; transform: rotate(-24deg); }
.share-button, .copy-code { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: transparent; color: inherit; cursor: pointer; transition: .2s ease; }
.share-button { padding: 10px 17px; }
.share-button:hover, .copy-code:hover { border-color: var(--orange); color: #ff9a5d; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: clamp(38px, 7vw, 100px); max-width: 1240px; margin: 0 auto; padding-top: 90px; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .17em; font-size: 11px; font-weight: 800; }
.eyebrow { display: inline-block; padding: 8px 12px; border: 1px solid rgba(243,111,33,.45); border-radius: 999px; color: #ffad7d; }
.hero h1 { max-width: 820px; margin: 24px 0 24px; font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: -.055em; }
.hero-copy > p { max-width: 720px; margin: 0; color: #c1c9ce; font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions a { padding: 13px 20px; border-radius: 10px; font-weight: 750; text-decoration: none; }
.primary { background: var(--orange); color: white; }
.primary:hover { background: var(--orange-dark); }
.secondary { border: 1px solid rgba(255,255,255,.2); }
.security-card { display: flex; gap: 18px; padding: 26px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.06); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.security-icon { flex: 0 0 38px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--green); font-weight: 900; }
.security-card span { color: #95a2aa; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.security-card strong { display: block; margin: 3px 0 8px; font-size: 19px; }
.security-card p { margin: 0; color: #b8c1c7; font-size: 14px; }

.section { max-width: 1240px; margin: 0 auto; padding: 105px 6vw; }
.section-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 48px; }
.section-number { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--orange); font-size: 12px; font-weight: 900; }
.section-heading p, .section-heading h2 { margin: 0; }
.kicker { color: var(--orange-dark); }
.section h2 { margin-top: 4px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.lead { max-width: 800px; margin: -18px 0 34px; color: var(--muted); font-size: 18px; }

.flow { display: grid; grid-template-columns: repeat(7, auto); align-items: stretch; gap: 12px; }
.flow article { width: min(230px, 19vw); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.flow article > span { display: grid; width: 30px; height: 30px; place-items: center; margin-bottom: 28px; border-radius: 50%; background: var(--ink); color: white; font-size: 12px; font-weight: 900; }
.flow small { display: block; color: var(--orange-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.flow strong { display: block; margin: 5px 0 9px; line-height: 1.25; }
.flow p { margin: 0; color: var(--muted); font-size: 14px; }
.arrow { align-self: center; color: var(--orange); font-size: 24px; }
.note { display: grid; grid-template-columns: .35fr 1fr; gap: 30px; margin-top: 30px; padding: 24px 28px; border-left: 4px solid var(--orange); background: #ebe7df; }
.note p { margin: 0; color: var(--muted); }

.file-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.file-tree { margin: 0; padding: 34px; overflow: auto; border-radius: var(--radius); background: var(--ink); color: #dce3e7; line-height: 1.85; box-shadow: var(--shadow); }
.file-explanations { display: grid; gap: 14px; }
.file-explanations article { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.5); }
.file-explanations span { color: var(--orange-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.file-explanations h3 { margin: 5px 0; font-size: 20px; }
.file-explanations p { margin: 0; color: var(--muted); }

.dark-section { max-width: none; padding-right: max(6vw, calc((100vw - 1240px)/2)); padding-left: max(6vw, calc((100vw - 1240px)/2)); background: var(--ink); color: white; }
.light-heading .section-number { border-color: rgba(255,255,255,.2); }
.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.code-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: #0f1920; }
.code-card header, .snippet header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.code-card header span { display: block; color: #8f9ba3; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.code-card header strong { display: block; margin-top: 2px; }
.copy-code { padding: 7px 12px; font-size: 12px; }
.code-card pre, .snippet pre { margin: 0; padding: 26px; overflow-x: auto; color: #d7e0e5; font-size: 13px; line-height: 1.8; }
.warning { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 20px 24px; border-radius: 14px; background: rgba(243,111,33,.12); color: #ffd5bc; }
.warning > span { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--orange); color: white; font-weight: 900; }
.warning p { margin: 0; }

.snippet { max-width: 900px; margin: 18px 0; overflow: hidden; border-radius: var(--radius); background: var(--code); color: white; box-shadow: var(--shadow); }
.snippet header { color: #aab5bc; font-size: 13px; }
.snippet.compact { max-width: 720px; }
.accent-section { max-width: none; padding-right: max(6vw, calc((100vw - 1240px)/2)); padding-left: max(6vw, calc((100vw - 1240px)/2)); background: #eee8df; }
.react-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 55px; align-items: center; }
.browser-mockup { overflow: hidden; border: 1px solid #cbc5bb; border-radius: 18px; background: white; box-shadow: var(--shadow); transform: rotate(1deg); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--ink); color: #9ba6ad; font-size: 10px; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #59666f; }
.browser-bar i:first-child { background: var(--orange); }
.browser-bar span { margin-left: 10px; }
.browser-content { min-height: 310px; padding: 52px 42px; background: linear-gradient(135deg, #f9fafb, #e8edf0); }
.mini-logo { display: inline-block; width: 36px; height: 36px; margin-bottom: 20px; border: 10px solid var(--orange); border-right-color: transparent; border-radius: 50%; }
.browser-content strong { display: block; font-size: 27px; }
.browser-content p { margin: 3px 0 35px; color: var(--muted); }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-cards i { height: 72px; border-radius: 9px; background: white; box-shadow: 0 7px 20px rgba(22,35,45,.08); }

.secret-path { display: grid; grid-template-columns: 1fr .9fr 1fr; align-items: center; gap: 24px; }
.secret-path article, .signed-ticket { padding: 28px; border-radius: var(--radius); }
.secret-path article { border: 1px solid var(--line); background: white; }
.secret-path small { display: block; color: var(--muted); }
.secret-path strong { display: block; margin: 5px 0; font-size: 19px; }
.secret-path p { margin: 0; color: var(--muted); }
.signed-ticket { position: relative; background: var(--orange); color: white; text-align: center; box-shadow: var(--shadow); }
.signed-ticket::before, .signed-ticket::after { content: ""; position: absolute; top: 50%; width: 24px; border-top: 2px dashed var(--orange); }
.signed-ticket::before { right: 100%; }
.signed-ticket::after { left: 100%; }
.signed-ticket span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.signed-ticket strong { font-family: monospace; font-size: 14px; }
.signed-ticket small { color: #ffe2d0; }

.checklist-section { padding-top: 70px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checklist label { display: flex; align-items: center; gap: 13px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; }
.checklist input { width: 19px; height: 19px; accent-color: var(--orange); }
.checklist input:checked + span { color: #8b9398; text-decoration: line-through; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 6vw; background: #0d171e; color: #cad2d7; font-size: 13px; }
footer > div { display: flex; align-items: center; gap: 12px; }
footer .brand-mark { width: 19px; height: 19px; border-width: 5px; }
footer p { margin: 0; color: #7f8b93; }
footer a { color: #ff9b60; text-decoration: none; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; padding: 11px 17px; border-radius: 8px; background: var(--green); color: white; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero-grid, .file-layout, .react-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow article { width: auto; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .code-grid { grid-template-columns: 1fr; }
  .browser-mockup { max-width: 620px; transform: none; }
}

@media (max-width: 680px) {
  .hero { padding-right: 22px; padding-left: 22px; }
  .topbar { padding: 20px 0; }
  .brand b { display: none; }
  .hero-grid { padding-top: 58px; }
  .hero h1 { font-size: 47px; }
  .section { padding: 76px 22px; }
  .dark-section, .accent-section { padding-right: 22px; padding-left: 22px; }
  .note { grid-template-columns: 1fr; gap: 7px; }
  .code-card pre, .snippet pre { padding: 20px; font-size: 11px; }
  .secret-path, .checklist { grid-template-columns: 1fr; }
  .signed-ticket::before, .signed-ticket::after { display: none; }
  footer { align-items: flex-start; flex-direction: column; padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
