/* Kodaroom — public landing page
   Layout: sticky nav, split hero with a CSS product illustration, feature grid,
   numbered steps (a real sequence), two use-case cards, FAQ, navy CTA band, footer. */
:root {
    --navy: #000080;
    --navy-deep: #00005c;
    --navy-ink: #0a1033;
    --orange: #ffa500;
    --orange-ink: #8a5a00;
    --bg: #f5f6fb;
    --surface: #ffffff;
    --text: #2a3150;
    --muted: #5d6680;
    --line: #e1e5f0;
    --chip: #eef0fb;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.lp-skip:focus { left: 8px; }
.lp-wrap { width: min(1180px, 100%); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 128, .22); }
.lp-btn-primary:hover { background: #00006a; color: #fff; }
.lp-btn-accent { background: var(--orange); color: #1a1300; box-shadow: 0 8px 20px rgba(255, 165, 0, .3); }
.lp-btn-accent:hover { background: #ffb31f; color: #1a1300; }
.lp-btn-ghost { background: transparent; color: var(--navy); border-color: #cfd5e6; }
.lp-btn-ghost:hover { border-color: var(--navy); background: #f2f4ff; }
.lp-btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.lp-btn-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.lp-btn-lg { height: 54px; padding: 0 26px; font-size: 1.02rem; }

/* Nav */
.lp-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(245, 246, 251, .86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(225, 229, 240, .8); }
.lp-nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-ink); min-width: 0; }
.lp-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 0 0 3px #3b6cff; }
.lp-mark img { width: 30px; height: 30px; object-fit: contain; }
.lp-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.lp-brand-text b { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.lp-brand-text small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.lp-links { display: flex; gap: 22px; margin-left: 10px; }
.lp-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .93rem; }
.lp-links a:hover { color: var(--navy); }
.lp-nav-cta { margin-left: auto; display: flex; gap: 10px; }

/* Hero */
.lp-hero { padding: 64px 0 56px; background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 165, 0, .16), transparent 60%),
    radial-gradient(900px 520px at 0% 0%, rgba(0, 0, 128, .10), transparent 60%); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); background: #fff4de; padding: 5px 12px; border-radius: 999px; }
.lp-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; color: var(--navy-ink); margin: 18px 0 16px; font-weight: 800; text-wrap: balance; }
.lp-hero h1 span { color: var(--navy); display: block; }
.lp-lede { font-size: 1.12rem; color: var(--muted); max-width: 56ch; margin: 0 0 26px; }
.lp-quickjoin { display: flex; gap: 10px; max-width: 480px; }
.lp-quickjoin-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; background: var(--surface); border: 1.5px solid #cfd5e6; border-radius: 999px; }
.lp-quickjoin-field:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 0, 128, .1); }
.lp-quickjoin-field i { color: var(--muted); }
.lp-quickjoin input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 500 1rem var(--mono); color: var(--navy-ink); }
.lp-quickjoin .lp-btn { height: 54px; padding: 0 26px; }
.lp-hero-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.lp-hero-note i { color: #16a34a; margin-right: 4px; }

/* Hero illustration */
.lp-hero-visual { position: relative; }
.lp-app { border-radius: 22px; background: #0f1736; box-shadow: 0 40px 80px rgba(0, 0, 60, .28), 0 4px 12px rgba(0, 0, 60, .14); overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); }
.lp-app-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #d6dcf5; font-size: .8rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.lp-app-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-live { display: inline-flex; align-items: center; gap: 6px; color: #34d399; font-weight: 700; }
.lp-live i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: lp-pulse 1.8s infinite; }
@keyframes lp-pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.lp-rec { margin-left: auto; color: #ff7a7a; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.lp-rec i { font-size: .5rem; }
.lp-app-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; padding: 12px; }
.lp-screen { position: relative; border-radius: 12px; background: #fff; overflow: hidden; min-height: 230px; }
.lp-screen-top { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #eef1f7; font-size: .7rem; color: #5d6680; }
.lp-screen-top span { width: 8px; height: 8px; border-radius: 50%; background: #cfd5e6; }
.lp-screen-top b { margin-left: 8px; font-weight: 500; font-family: var(--mono); }
.lp-screen-body { padding: 14px; display: grid; gap: 12px; }
.lp-chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 10px; border-radius: 10px; background: #f5f7fc; }
.lp-chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--navy), #3b6cff); }
.lp-chart i:nth-child(4) { background: linear-gradient(180deg, var(--orange), #ffc85c); }
.lp-code { font-family: var(--mono); font-size: .74rem; background: #0b1230; color: #dbe2ff; border-radius: 10px; padding: 10px 12px; line-height: 1.8; }
.lp-code b { font-weight: 500; }
.lp-code .k { color: #93c5fd; } .lp-code .f { color: #f9a8d4; } .lp-code .s { color: #fcd34d; } .lp-code .c { color: #6b7aa8; }
.lp-presenting { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); background: rgba(6, 10, 30, .82); color: #fff; font-size: .7rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.lp-presenting i { color: var(--orange); margin-right: 4px; }
.lp-tiles { display: grid; gap: 8px; align-content: start; }
.lp-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .8rem; }
.lp-tile b { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .18); }
.lp-tile em { position: absolute; top: 4px; right: 4px; font-style: normal; font-size: .8rem; }
.lp-tile.t1 { background: #2a3a6e; box-shadow: inset 0 0 0 2px #34d399; }
.lp-tile.t2 { background: #6d28d9; }
.lp-tile.t3 { background: #155e75; }
.lp-tile.more { background: #1b2645; border: 1px dashed rgba(255, 255, 255, .3); font-size: 1rem; }
.lp-float { position: absolute; font-size: 1.6rem; animation: lp-rise 3.6s ease-out infinite; }
.lp-float.r1 { left: 18%; bottom: 20px; }
.lp-float.r2 { left: 30%; bottom: 10px; animation-delay: 1.4s; }
@keyframes lp-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-140px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lp-float, .lp-live i { animation: none; } .lp-float { opacity: 1; } }
.lp-app-ctl { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px; background: #0b1230; color: #d6dcf5; }
.lp-app-ctl span { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.lp-app-ctl span.on { background: rgba(255, 165, 0, .18); color: var(--orange); }
.lp-app-ctl span.leave { width: auto; padding: 0 12px; background: #dc2626; color: #fff; font-size: .75rem; font-weight: 700; margin-left: 8px; }
.lp-toast { position: absolute; right: -14px; bottom: 54px; display: flex; gap: 10px; align-items: center; background: #fff; padding: 10px 14px; border-radius: 14px; box-shadow: 0 16px 36px rgba(0, 0, 60, .2); font-size: .82rem; color: var(--navy-ink); }
.lp-toast i { width: 32px; height: 32px; border-radius: 50%; background: #fff4de; color: var(--orange-ink); display: inline-flex; align-items: center; justify-content: center; }
.lp-toast small { color: var(--navy); font-weight: 700; }

/* Built-for strip */
.lp-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.lp-strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; padding-top: 18px; padding-bottom: 18px; color: var(--navy-ink); }
.lp-strip-inner > span { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lp-strip-inner b { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.lp-strip-inner b i { color: var(--navy); }

/* Sections */
.lp-section { padding: 88px 0; }
.lp-head { max-width: 720px; margin-bottom: 40px; }
.lp-head h2, .lp-secure h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.025em; line-height: 1.12; color: var(--navy-ink); margin: 14px 0 10px; text-wrap: balance; }
.lp-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.lp-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lp-features article { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.lp-features article:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 0, 60, .08); border-color: #cfd5f0; }
.lp-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--chip); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 14px; }
.lp-features h3, .lp-steps h3, .lp-use h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy-ink); }
.lp-features p, .lp-steps p { margin: 0; color: var(--muted); font-size: .94rem; }

.lp-how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: none; }
.lp-steps li { position: relative; padding: 26px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.lp-step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.lp-steps li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -16px; width: 12px; height: 12px; border-top: 2px solid #c3cae0; border-right: 2px solid #c3cae0; transform: rotate(45deg); }

.lp-uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.lp-use { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: grid; gap: 6px; align-content: start; }
.lp-use-alt { background: linear-gradient(160deg, #0b1238, #000080); color: #dfe4ff; border-color: transparent; }
.lp-use-alt h3 { color: #fff; }
.lp-use-alt .lp-ic { background: rgba(255, 255, 255, .12); color: var(--orange); }
.lp-use ul { list-style: none; margin: 8px 0 22px; padding: 0; display: grid; gap: 10px; }
.lp-use li { display: flex; gap: 10px; }
.lp-use li::before { content: "\2713"; color: #16a34a; font-weight: 800; }
.lp-use-alt li::before { color: var(--orange); }
.lp-use .lp-btn { justify-self: start; }

.lp-secure { background: #eef0fb; }
.lp-secure-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.lp-secure p { color: var(--muted); font-size: 1.04rem; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-checks li { display: flex; gap: 14px; align-items: center; background: var(--surface); padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); font-weight: 600; color: var(--navy-ink); }
.lp-checks i { color: var(--navy); width: 20px; text-align: center; }

.lp-faq { max-width: 860px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--navy-ink); display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--navy); transition: transform .15s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin: 0 0 16px; color: var(--muted); }

.lp-cta { background: radial-gradient(700px 300px at 90% 0%, rgba(255, 165, 0, .25), transparent 60%), linear-gradient(160deg, #0b1238, #000080); color: #fff; padding: 80px 0; }
.lp-cta-inner { text-align: center; }
.lp-cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 10px; letter-spacing: -.03em; }
.lp-cta p { color: #cdd3f2; margin: 0 auto 28px; max-width: 54ch; }
.lp-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.lp-footer { background: #070b24; color: #9aa3c7; padding: 26px 0; font-size: .88rem; }
.lp-footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.lp-tag { color: #dfe4ff; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; }
.lp-tag i { color: var(--orange); font-style: normal; }
.lp-footer nav { margin-left: auto; display: flex; gap: 18px; }
.lp-footer a { color: #dfe4ff; text-decoration: none; }
.lp-footer a:hover { color: var(--orange); }

/* Responsive */
@media (max-width: 1080px) {
    .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-links { display: none; }
}
@media (max-width: 900px) {
    .lp-hero { padding-top: 40px; }
    .lp-hero-grid, .lp-secure-grid, .lp-uses { grid-template-columns: minmax(0, 1fr); }
    .lp-hero-visual { order: 2; }
    .lp-toast { right: 8px; }
    .lp-steps { grid-template-columns: minmax(0, 1fr); }
    .lp-steps li:not(:last-child)::after { display: none; }
    .lp-section { padding: 64px 0; }
}
@media (max-width: 560px) {
    .lp-nav-inner { height: 64px; gap: 10px; }
    .lp-brand-text small, .lp-nav-cta .lp-btn-ghost { display: none; }
    .lp-features { grid-template-columns: minmax(0, 1fr); }
    .lp-quickjoin { flex-direction: column; }
    .lp-quickjoin-field { flex: none; }
    .lp-quickjoin .lp-btn { width: 100%; }
    .lp-app-stage { grid-template-columns: minmax(0, 1fr); }
    .lp-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lp-use { padding: 24px; }
    .lp-footer nav { margin-left: 0; }
}
