:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-subtle: #eef2f7;
  --ink: #101828;
  --muted: #566276;
  --line: #d8e0ea;
  --accent: #2859d6;
  --accent-deep: #173b97;
  --accent-soft: #e9efff;
  --on-accent: #f8faff;
  --radius: 16px;
  --radius-small: 10px;
  --shadow: 0 28px 80px rgba(44, 64, 99, 0.16);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.site-header { position: fixed; z-index: 20; top: 16px; left: 0; width: 100%; pointer-events: none; }
.nav-wrap { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 18px; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 12px 38px rgba(45, 63, 94, 0.09); backdrop-filter: blur(18px) saturate(140%); pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 760; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { position: relative; width: 32px; height: 32px; border-radius: var(--radius-small); background: var(--accent); }
.brand-mark::after { content: ""; position: absolute; inset: 8px; border: 2px solid var(--on-accent); border-radius: 50% 50% 50% 4px; transform: rotate(-18deg); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 9px 13px; border-radius: var(--radius-small); color: var(--muted); font-size: 14px; font-weight: 650; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.nav-link:hover, .nav-link.active { background: var(--accent-soft); color: var(--accent-deep); }
.nav-link:active, .button:active, .text-link:active, .play-badge:active { transform: translateY(1px); }
.nav-contact { margin-left: 4px; background: var(--ink); color: var(--surface); }
.nav-contact:hover { background: var(--accent); color: var(--on-accent); }
.menu-toggle { display: none; min-width: 48px; min-height: 44px; border: 0; border-radius: var(--radius-small); background: var(--ink); color: var(--surface); cursor: pointer; }

.hero { min-height: 100dvh; display: flex; align-items: flex-start; overflow: hidden; padding: 96px 0 44px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr); gap: 48px; align-items: center; }
.hero-copy-block { position: relative; z-index: 2; }
.eyebrow { margin-bottom: 20px; color: var(--accent); font-size: 12px; font-weight: 780; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1, .page-hero h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(52px, 6.8vw, 96px); font-weight: 740; letter-spacing: -0.065em; line-height: 0.96; }
.hero h1 span { display: inline-block; color: var(--accent); white-space: nowrap; }
.hero-copy { max-width: 560px; margin-bottom: 0; color: var(--muted); font-size: clamp(18px, 1.7vw, 23px); line-height: 1.45; letter-spacing: -0.015em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; border: 1px solid var(--accent); border-radius: var(--radius-small); background: var(--accent); color: var(--on-accent); font-weight: 720; white-space: nowrap; transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.button:hover { background: var(--accent-deep); box-shadow: 0 12px 32px rgba(40, 89, 214, 0.2); transform: translateY(-2px); }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-light { border-color: var(--surface); background: var(--surface); color: var(--accent-deep); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 720; transition: color 180ms ease, transform 180ms ease; }
.text-link:hover { color: var(--accent); }

.hero-product { position: relative; min-height: clamp(500px, calc(100dvh - 140px), 620px); display: grid; place-items: center; isolation: isolate; }
.hero-product::before { content: ""; position: absolute; z-index: -2; width: 520px; height: 520px; border-radius: 50%; background: var(--accent-soft); }
.hero-product::after { content: ""; position: absolute; z-index: -1; width: 410px; height: 410px; border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); border-radius: 50%; }
.hero-icon { position: absolute; z-index: 5; top: 13%; left: 2%; display: flex; align-items: center; gap: 11px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); box-shadow: 0 16px 42px rgba(37, 54, 84, 0.12); font-size: 13px; font-weight: 720; }
.hero-icon img { width: 38px; height: 38px; border-radius: var(--radius-small); }
.app-shot { display: block; width: 286px; aspect-ratio: 500 / 1024; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.hero-shot-primary { position: relative; z-index: 2; transform: translate(-24px, 6px) rotate(-4deg); animation: screenshot-float 6s ease-in-out infinite; }
.hero-shot-back { position: absolute; z-index: 1; right: 18px; width: 234px; opacity: 0.72; transform: rotate(8deg) translateY(22px); }

.section { padding: 120px 0; }
.section h2 { max-width: 780px; margin-bottom: 22px; font-size: clamp(40px, 5vw, 70px); font-weight: 720; letter-spacing: -0.055em; line-height: 1.02; }
.section p { color: var(--muted); }
.product-section { background: var(--surface); }
.product-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 96px; align-items: center; }
.product-gallery { position: relative; min-height: 670px; display: grid; place-items: center; border-radius: var(--radius); background: var(--surface-subtle); overflow: hidden; }
.product-gallery::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: var(--accent-soft); }
.gallery-shot-primary { position: relative; z-index: 2; width: 270px; transform: translateX(-90px) rotate(-4deg); }
.gallery-shot-offset { position: absolute; z-index: 1; right: 48px; width: 230px; transform: translateY(58px) rotate(7deg); }
.product-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; color: var(--accent-deep); font-size: 14px; font-weight: 720; }
.product-identity img { width: 46px; height: 46px; border-radius: var(--radius-small); }
.product-copy > p { max-width: 570px; font-size: 18px; }
.capability-list { margin: 34px 0 26px; border-top: 1px solid var(--line); }
.capability-list > div { display: grid; grid-template-columns: minmax(130px, 0.6fr) 1.4fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.capability-list strong { color: var(--ink); }
.capability-list span { color: var(--muted); font-size: 14px; }
.play-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 13px; border-radius: var(--radius-small); background: var(--ink); color: var(--surface); transition: transform 180ms ease, background 180ms ease; }
.play-badge:hover { background: var(--accent-deep); transform: translateY(-2px); }
.play-badge small, .play-badge strong { display: block; line-height: 1.1; }
.play-badge small { margin-bottom: 2px; font-size: 9px; letter-spacing: 0.04em; }
.play-badge strong { font-size: 16px; }
.play-mark { font-size: 22px; }

.approach-section { background: var(--surface-subtle); }
.section-intro { max-width: 700px; margin-bottom: 72px; }
.section-intro p { max-width: 560px; font-size: 19px; }
.approach-list { display: grid; grid-template-columns: 1.2fr 0.9fr; column-gap: 72px; }
.approach-list article { display: grid; grid-template-columns: 110px 1fr; gap: 26px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); }
.approach-list article:nth-child(2) { grid-column: 2; }
.approach-list article:nth-child(3) { grid-column: 1; }
.approach-list span { color: var(--accent); font-size: 13px; font-weight: 720; }
.approach-list h3 { margin-bottom: 8px; font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -0.035em; }
.approach-list p { margin: 0; max-width: 430px; }

.about-home { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 100px; align-items: center; }
.about-statement { position: relative; min-height: 460px; display: flex; align-items: flex-end; padding: 44px; border-radius: var(--radius); background: var(--accent); overflow: hidden; }
.about-statement::before, .about-statement::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,0.28); border-radius: 50%; }
.about-statement::before { width: 430px; height: 430px; top: -120px; right: -90px; }
.about-statement::after { width: 250px; height: 250px; top: 70px; right: 90px; }
.about-statement p { position: relative; z-index: 2; max-width: 560px; margin: 0; color: var(--on-accent); font-size: clamp(42px, 5vw, 66px); font-weight: 700; letter-spacing: -0.055em; line-height: 1; }
.statement-accent { position: absolute; top: 44px; left: 44px; width: 54px; height: 7px; border-radius: 6px; background: var(--on-accent); }
.about-copy > p { max-width: 540px; font-size: 18px; }
.about-copy .text-link { margin-top: 14px; }

.next-section { background: var(--bg); }
.next-grid { display: grid; grid-template-columns: 1fr 0.55fr; gap: 70px; align-items: center; padding: 62px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.section-label { display: inline-block; margin-bottom: 20px; color: var(--accent); font-size: 12px; font-weight: 740; letter-spacing: 0.1em; text-transform: uppercase; }
.next-grid p { max-width: 570px; font-size: 18px; }
.future-mark { position: relative; min-height: 260px; }
.future-mark span { position: absolute; display: block; border-radius: var(--radius); background: var(--accent-soft); }
.future-mark span:nth-child(1) { inset: 30px 70px 40px 10px; background: var(--accent); transform: rotate(-6deg); }
.future-mark span:nth-child(2) { inset: 62px 34px 16px 86px; border: 1px solid var(--line); background: var(--surface); transform: rotate(7deg); }
.future-mark span:nth-child(3) { width: 54px; height: 54px; right: 24px; top: 18px; background: var(--ink); }

.contact-section { padding-top: 0; }
.contact-band { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 64px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); }
.contact-band h2 { margin-bottom: 14px; }
.contact-band p { max-width: 590px; margin-bottom: 0; color: color-mix(in srgb, var(--on-accent) 82%, transparent); font-size: 18px; }

.page-hero { padding: 176px 0 96px; }
.page-hero h1 { max-width: 940px; }
.page-lead { max-width: 780px; color: var(--muted); font-size: clamp(20px, 2.3vw, 28px); }
.story-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 90px; }
.story-copy p { max-width: 700px; font-size: 19px; }
.values { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 16px; }
.value-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.value-card:nth-child(3) { grid-column: 1 / -1; }
.value-card h3 { font-size: 24px; }
.value-card p { color: var(--muted); }
.principle-number { display: inline-block; margin-bottom: 30px; color: var(--accent); font-size: 13px; font-weight: 740; }
.contact-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 80px; }
.contact-info { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-info h2 { font-size: 30px; }
.contact-note { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 13px; font-weight: 720; }
.field input, .field textarea, .field select { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius-small); outline: none; background: var(--surface); color: var(--ink); transition: border 180ms ease, box-shadow 180ms ease; }
.field input::placeholder, .field textarea::placeholder { color: #758195; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.form-status { min-height: 24px; margin: 4px 0 0; color: var(--accent-deep); font-size: 14px; }
.legal { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 90px; align-items: start; }
.legal-aside { position: sticky; top: 112px; }
.legal-aside p { font-size: 13px; }
.legal-body section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-body h2 { font-size: 25px; letter-spacing: -0.025em; }
.legal-body p { color: var(--muted); }

.site-footer { padding: 46px 0; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.footer-grid p { max-width: 410px; margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 24px; color: var(--muted); font-size: 13px; font-weight: 700; }
.footer-links a:hover { color: var(--accent); }
.copyright { margin-top: 28px; color: #778397; font-size: 12px; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(0.16,1,0.3,1), transform 700ms cubic-bezier(0.16,1,0.3,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@keyframes screenshot-float { 50% { transform: translate(-24px, -8px) rotate(-2deg); } }

@media (prefers-color-scheme: dark) {
  :root { --bg: #0d121c; --surface: #141b27; --surface-subtle: #192230; --ink: #edf2f9; --muted: #aeb9ca; --line: #2c3748; --accent: #6f96ff; --accent-deep: #9eb8ff; --accent-soft: #202f50; --on-accent: #0b1220; --shadow: 0 28px 80px rgba(0,0,0,0.32); }
  .nav-contact { background: var(--accent); color: var(--on-accent); }
  .button-light { background: #f2f5fa; color: #173b97; }
  .field input::placeholder, .field textarea::placeholder { color: #8e9aad; }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .hero { min-height: 100dvh; padding-top: 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr); gap: clamp(20px, 3vw, 34px); }
  .hero h1 { font-size: clamp(52px, 6.4vw, 68px); }
  .hero h1 span { white-space: normal; }
  .hero-copy { font-size: clamp(17px, 2vw, 20px); }
  .hero-product { min-height: clamp(470px, calc(100dvh - 148px), 560px); }
  .hero-product::before { width: min(44vw, 440px); height: min(44vw, 440px); }
  .hero-product::after { width: min(35vw, 350px); height: min(35vw, 350px); }
  .hero-shot-primary { width: clamp(210px, 25vw, 250px); transform: translate(-14px, 2px) rotate(-4deg); }
  .hero-shot-back { right: 0; width: clamp(170px, 20vw, 205px); }
  .hero-icon { top: 10%; left: 0; }
}

@media (max-height: 760px) and (min-width: 1081px) {
  .hero { padding-top: 92px; padding-bottom: 28px; }
  .hero h1 { margin-bottom: 20px; font-size: clamp(56px, 5.8vw, 78px); }
  .eyebrow { margin-bottom: 14px; }
  .actions { margin-top: 26px; }
  .hero-product { min-height: calc(100dvh - 120px); }
  .hero-shot-primary { width: min(250px, 36vh); }
  .hero-shot-back { width: min(205px, 30vh); }
  .hero-product::before { width: min(440px, 64vh); height: min(440px, 64vh); }
  .hero-product::after { width: min(350px, 52vh); height: min(350px, 52vh); }
}

@media (max-width: 940px) {
  .shell { width: min(calc(100% - 30px), var(--max)); }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 76px; left: 15px; right: 15px; display: none; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
  .menu-open .nav-links { display: flex; }
  .nav-link { padding: 12px; }
  .nav-contact { margin: 4px 0 0; text-align: center; }
  .product-grid, .about-grid, .story-grid, .contact-grid, .legal { grid-template-columns: 1fr; }
  .product-grid, .about-grid, .story-grid, .contact-grid, .legal { gap: 52px; }
  .product-gallery { min-height: 610px; }
  .approach-list { grid-template-columns: 1fr; }
  .approach-list article, .approach-list article:nth-child(2), .approach-list article:nth-child(3) { grid-column: 1; }
  .next-grid { grid-template-columns: 1fr; }
  .contact-band { align-items: flex-start; flex-direction: column; }
  .legal-aside { position: static; }
}

@media (max-width: 620px) {
  .brand { font-size: 12px; }
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero h1, .page-hero h1 { font-size: clamp(48px, 14vw, 66px); }
  .hero h1 span { white-space: normal; }
  .hero-product { min-height: 480px; }
  .hero-product::before { width: 360px; height: 360px; }
  .hero-product::after { width: 300px; height: 300px; }
  .hero-shot-primary { width: 226px; transform: translate(-20px, 0) rotate(-4deg); }
  .hero-shot-back { width: 180px; right: 0; }
  .hero-icon { left: 0; top: 7%; }
  .section { padding: 86px 0; }
  .section h2 { font-size: 43px; }
  .product-gallery { min-height: 500px; }
  .gallery-shot-primary { width: 215px; transform: translateX(-46px) rotate(-4deg); }
  .gallery-shot-offset { width: 180px; right: 14px; }
  .capability-list > div { grid-template-columns: 1fr; gap: 5px; }
  .approach-list article { grid-template-columns: 1fr; gap: 10px; }
  .about-statement { min-height: 390px; padding: 28px; }
  .about-statement p { font-size: 44px; }
  .statement-accent { top: 28px; left: 28px; }
  .next-grid, .contact-band { padding: 32px 24px; }
  .future-mark { min-height: 210px; }
  .values { grid-template-columns: 1fr; }
  .value-card:nth-child(3) { grid-column: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 10px; }
}

@media (max-width: 760px) {
  .hero { min-height: auto; padding-top: 112px; padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero h1 { font-size: clamp(48px, 13vw, 64px); }
  .hero h1 span { white-space: normal; }
  .hero-product { min-height: clamp(430px, 118vw, 520px); }
  .hero-product::before { width: min(92vw, 420px); height: min(92vw, 420px); }
  .hero-product::after { width: min(76vw, 340px); height: min(76vw, 340px); }
  .hero-shot-primary { width: clamp(220px, 34vw, 244px); transform: translate(-18px, 0) rotate(-4deg); }
  .hero-shot-back { right: 0; width: clamp(176px, 27vw, 196px); }
  .hero-icon { top: 7%; left: 0; }
}

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