:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eef2f1;
  --text: #101a2e;
  --muted: #637083;
  --line: #dce2e1;
  --navy: #0b1630;
  --navy-2: #14254a;
  --accent: #55c7bd;
  --accent-2: #8fe3d7;
  --accent-ink: #0f4f4a;
  --warm: #f4eadc;
  --shadow: 0 24px 60px rgba(16, 26, 46, .12);
  --shadow-soft: 0 12px 36px rgba(16, 26, 46, .08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

[data-theme="dark"] {
  --bg: #08111f;
  --surface: #0f1b2d;
  --surface-2: #132236;
  --text: #edf4f3;
  --muted: #a7b3c2;
  --line: #25384c;
  --navy: #050b14;
  --navy-2: #0d1a2b;
  --accent: #70d6cc;
  --accent-2: #a4eee5;
  --accent-ink: #bff6ef;
  --warm: #2a241e;
  --shadow: 0 24px 60px rgba(0, 0, 0, .32);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000;
  background: var(--surface); padding: 10px 14px; border-radius: 10px;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 999; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #8dd7ff); }

.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.section-pad { padding: 112px 0; }
.section-soft { background: var(--surface-2); }
.section-dark { background: var(--navy); color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--accent-2); font-size: 13px; letter-spacing: .06em; }
.brand-text { white-space: nowrap; max-width: 290px; overflow: hidden; text-overflow: ellipsis; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 700; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.theme-toggle, .nav-toggle { border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.theme-toggle svg { width: 18px; fill: var(--text); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; }

.hero { min-height: 760px; display: grid; align-items: center; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 78px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 16px; color: var(--accent-ink); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; }
.eyebrow-light { color: var(--accent-2); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(48px, 5.7vw, 78px); line-height: .98; letter-spacing: -.055em; margin-bottom: 28px; }
h2 { font-size: clamp(38px, 4.8vw, 64px); line-height: 1.03; letter-spacing: -.045em; margin-bottom: 18px; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.accent-text { color: var(--accent-ink); }
.hero-role { margin: -8px 0 22px; color: var(--text); font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.hero-lede { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--navy); box-shadow: var(--shadow-soft); }
.btn-secondary { border: 1px solid var(--line); background: var(--surface); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; color: var(--muted); font-size: 13px; }
.hero-meta strong { color: var(--text); font-size: 18px; margin-right: 4px; }

.hero-visual { position: relative; min-width: 0; }
.visual-frame { padding: 10px; border-radius: 24px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(1.3deg); }
.visual-frame img { border-radius: 14px; }
.frame-toolbar { height: 32px; display: flex; gap: 7px; align-items: center; padding: 0 5px; }
.frame-toolbar span { width: 8px; height: 8px; border-radius: 50%; background: #b9c1ca; }
.frame-toolbar small { margin-left: 8px; color: var(--muted); font-size: 10px; }
.floating-note { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); max-width: 250px; }
.floating-note small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.floating-note strong { display: block; font-size: 12px; line-height: 1.35; }
.note-top { right: -22px; top: -38px; }
.note-bottom { left: -28px; bottom: -28px; }
.note-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.mini-kpi { font-size: 24px; font-weight: 900; letter-spacing: -.05em; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .4; pointer-events: none; }
.hero-orb-one { width: 420px; height: 420px; background: radial-gradient(circle at 40% 40%, var(--accent-2), transparent 68%); right: -180px; top: 100px; }
.hero-orb-two { width: 360px; height: 360px; background: radial-gradient(circle at center, #dcd3ff, transparent 68%); left: -160px; bottom: -120px; }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-row { min-height: 74px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px 24px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.trust-row i { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }

.section-heading { max-width: 780px; margin-bottom: 54px; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 80px; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story-card { min-height: 280px; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.story-card p { color: var(--muted); }
.card-number { display: inline-flex; margin-bottom: 56px; font-size: 12px; font-weight: 900; color: var(--accent-ink); }
.workflow { margin-top: 32px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.workflow-step { padding: 12px; text-align: center; }
.workflow-step span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 10px; background: var(--surface-2); color: var(--accent-ink); font-weight: 900; font-size: 12px; }
.workflow-step strong { display: block; font-size: 14px; }
.workflow-step small { color: var(--muted); }
.workflow-arrow { color: var(--accent-ink); font-weight: 900; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi-card { padding: 24px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.kpi-label { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.kpi-card strong { display: block; margin: 18px 0 4px; font-size: 46px; line-height: 1; letter-spacing: -.05em; }
.kpi-card small { color: var(--muted); }
.showcase-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 24px; align-items: stretch; }
.showcase-card, .report-visual, .flow-visual { appearance: none; border: 0; cursor: zoom-in; padding: 0; background: transparent; text-align: left; }
.showcase-large { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-soft); }
.showcase-topline { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; font-size: 12px; color: var(--muted); font-weight: 800; }
.showcase-large img { width: 100%; }
.showcase-copy { padding: 34px; border-radius: var(--radius-xl); background: var(--navy); color: #fff; }
.showcase-copy h3 { font-size: 30px; }
.feature-list { margin-top: 34px; display: grid; gap: 20px; }
.feature-list > div { display: grid; grid-template-columns: 38px 1fr; gap: 12px; }
.feature-list span { color: var(--accent-2); font-weight: 900; font-size: 12px; }
.feature-list p { margin: 0; color: #bdc8d6; font-size: 14px; }
.feature-list strong { color: #fff; }

.report-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; align-items: center; }
.report-copy > p { color: var(--muted); font-size: 17px; }
.check-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-ink); }
.report-visual { position: relative; padding: 10px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.report-visual img { border-radius: 20px; }
.zoom-hint { position: absolute; right: 22px; bottom: 22px; padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.88); color: #15233b; font-weight: 800; font-size: 11px; backdrop-filter: blur(8px); }

.automation-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: center; }
.automation-copy > p { color: #b7c3d3; font-size: 17px; }
.automation-copy strong { color: #fff; }
.automation-steps { display: grid; gap: 16px; margin-top: 34px; }
.automation-steps > div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.13); }
.automation-steps span { color: var(--accent-2); font-size: 12px; font-weight: 900; }
.automation-steps p { margin: 0; color: #b7c3d3; font-size: 14px; }
.flow-visual { position: relative; padding: 10px; background: #fff; border-radius: var(--radius-xl); box-shadow: 0 26px 60px rgba(0,0,0,.28); }
.flow-visual img { border-radius: 20px; }
.zoom-hint-dark { background: rgba(11,22,48,.9); color: #fff; }

.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field-chip { padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-md); }
.field-chip span { display: block; color: var(--accent-ink); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
.field-chip strong { display: block; margin: 12px 0 4px; }
.field-chip small { color: var(--muted); }
.demo-note { margin: 26px 0 0; color: var(--muted); font-size: 13px; }

.experience-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.timeline { border-left: 1px solid var(--line); padding-left: 34px; }
.timeline article { position: relative; padding: 0 0 38px; }
.timeline article::before { content: ""; position: absolute; left: -40px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px var(--surface-2); }
.timeline span { color: var(--accent-ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 900; }
.timeline h3 { margin: 8px 0 10px; }
.timeline p { color: var(--muted); margin: 0; }

.skills-wrap .section-heading { margin-bottom: 36px; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-cloud span { padding: 12px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 700; font-size: 13px; }

.contact { padding-top: 44px; }
.contact-card { padding: 56px; border-radius: var(--radius-xl); background: var(--navy); color: #fff; display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; box-shadow: var(--shadow); }
.contact-card h2 { font-size: clamp(38px, 4vw, 58px); }
.contact-card p { color: #c0cad8; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.text-link { color: var(--accent-2); text-decoration: none; font-weight: 800; padding: 8px 4px; }

.site-footer { padding: 34px 0; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-row p { margin: 0; }

.image-modal { width: min(94vw, 1500px); max-height: 92vh; border: 0; padding: 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.image-modal::backdrop { background: rgba(4, 10, 20, .84); backdrop-filter: blur(8px); }
.image-modal img { width: 100%; max-height: calc(92vh - 32px); object-fit: contain; border-radius: 14px; }
.modal-close { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(11,22,48,.88); color: #fff; font-size: 26px; cursor: pointer; }

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

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 75%, white); outline-offset: 3px; }

@media (max-width: 980px) {
  .hero-grid, .showcase-grid, .report-layout, .automation-grid, .experience-grid, .contact-card, .split-heading { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-grid { gap: 70px; }
  .case-grid, .field-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: 1fr; }
  .workflow-arrow { transform: rotate(90deg); justify-self: center; }
  .contact-card { gap: 30px; }
  .experience-grid { gap: 34px; }
  .note-top { right: 0; }
  .note-bottom { left: 0; }
}

@media (max-width: 760px) {
  .section-pad { padding: 78px 0; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav { min-height: 68px; }
  .nav-toggle { display: block; margin-left: auto; }
  .theme-toggle { margin-left: 0; }
  .nav-links { position: absolute; left: 14px; right: 14px; top: 74px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; }
  .hero { padding-top: 72px; }
  .hero-grid { gap: 56px; }
  h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero-meta { gap: 14px; }
  .floating-note { position: static; margin-top: 10px; max-width: none; }
  .visual-frame { transform: none; }
  .trust-row { justify-content: flex-start; padding: 18px 0; }
  .trust-row i { display: none; }
  .case-grid, .field-grid, .kpi-grid { grid-template-columns: 1fr; }
  .story-card { min-height: auto; }
  .card-number { margin-bottom: 30px; }
  .showcase-copy { padding: 28px; }
  .timeline { margin-top: 10px; }
  .contact-card { padding: 34px 24px; }
  .footer-row { flex-direction: column; }
}

@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; }
}

@media (max-width: 1120px) { .brand-text { max-width: 220px; } }
