:root {
  --navy: #0B2E4A;
  --navy-2: #0F3B5C;
  --ink: #0C2233;
  --ink-soft: #3E5566;
  --muted: #6A8292;
  --teal: #0F766E;
  --teal-500: #14B8A6;
  --teal-300: #5EEAD4;
  --mint: #CCFBF1;
  --gold: #F2B84B;
  --bg: #F7FAFB;
  --bg-2: #EDF4F6;
  --card: #FFFFFF;
  --line: #DCE7EC;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(11, 46, 74, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3, .display { font-family: 'Readex Pro', 'Inter', sans-serif; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; }
h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.ar { font-family: 'Readex Pro', sans-serif; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 104px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.section.dark { background: var(--navy); color: #E3EEF3; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.dark .eyebrow { color: var(--teal-300); }
.lead { font-size: 19px; color: var(--ink-soft); }
.dark .lead { color: #B7CAD5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(15,118,110,.28); }
.btn-primary:hover { background: #0B5F59; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: 15px; }

/* Nav */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--teal-500), var(--gold)); z-index: 60; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247,250,251,.85); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(11,46,74,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: 'Readex Pro', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.01em; line-height: 1; }
.brand-name small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--teal); }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.20), transparent 65%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,184,75,.16), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px rgba(20,184,166,.2); }
.hero h1 .grad { background: linear-gradient(90deg, var(--teal), var(--teal-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--ink-soft); }
.hero-points span::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 8px; }

.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; border-radius: 36px; border: 9px solid var(--ink); overflow: hidden; box-shadow: var(--shadow); background: var(--ink); }
.phone.one { left: 4%; top: 10px; transform: rotate(-5deg); }
.phone.two { right: 4%; top: 70px; transform: rotate(5deg); }
.float-card {
  position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; white-space: nowrap; z-index: 2;
}
.float-card.a { left: -4%; bottom: 70px; }
.float-card.b { right: -2%; top: 18px; }
.float-card .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--mint); color: var(--teal); }
.ping { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-500); position: relative; }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal-500); animation: ping 1.6s infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

/* Highlights strip */
.strip { background: var(--navy); color: #fff; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.strip-item { padding: 30px 24px; border-right: 1px solid rgba(255,255,255,.1); }
.strip-item:last-child { border-right: 0; }
.strip-item .big { font-family: 'Readex Pro', sans-serif; font-size: 30px; font-weight: 700; color: var(--teal-300); line-height: 1.1; }
.strip-item p { margin: 6px 0 0; font-size: 14px; color: #B7CAD5; }

/* Grids & cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.dark .card p { color: #B7CAD5; }
.dark .card:hover { box-shadow: 0 20px 50px rgba(0,0,0,.25); border-color: rgba(94,234,212,.4); }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mint); color: var(--teal); margin-bottom: 20px; }
.icon svg { width: 24px; height: 24px; }
.dark .icon { background: rgba(94,234,212,.12); color: var(--teal-300); }

/* Problem stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.stat .num { font-family: 'Readex Pro', sans-serif; font-size: 44px; font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: 14px; }
.stat p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.sources { margin-top: 24px; font-size: 13px; color: var(--muted); }
.sources a { color: var(--muted); }

/* Categories */
.cat { position: relative; overflow: hidden; }
.cat .badge { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-soft); }
.cat .flow { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--teal); }
.cat .ar { color: var(--muted); font-size: 15px; margin: -10px 0 10px; }

/* Audiences */
.aud { display: flex; flex-direction: column; }
.aud ol { margin: 8px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 16px; }
.aud ol li { margin-bottom: 8px; }
.aud .who { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr 2.2fr; gap: 24px; align-items: end; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 24px; border: 7px solid var(--ink); box-shadow: var(--shadow); }
.gallery figure.wide img { border-width: 6px; border-radius: 16px; }
.gallery figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 12px; font-weight: 500; }
.video-cta { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.video-cta p { margin: 0; font-weight: 500; }

/* Built list */
.built { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; list-style: none; padding: 0; margin: 0; }
.built li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.built li b { display: block; font-weight: 600; }
.built li span { color: var(--ink-soft); font-size: 15px; }
.tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; margin-top: 2px; }

/* AWS architecture */
.arch { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 28px; }
.arch-row { display: grid; gap: 14px; align-items: stretch; }
.arch-row.r1 { grid-template-columns: repeat(3, 1fr); }
.arch-row.r2 { grid-template-columns: 1fr; }
.arch-row.r3 { grid-template-columns: repeat(4, 1fr); }
.arch-row.r4 { grid-template-columns: repeat(4, 1fr); }
.node { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: #D7E5EC; }
.node b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.node.aws { border-color: rgba(242,184,75,.55); background: rgba(242,184,75,.08); }
.node.aws b::before { content: "AWS · "; color: var(--gold); font-weight: 700; }
.arch-arrow { text-align: center; color: var(--teal-300); font-size: 20px; line-height: 1; padding: 10px 0; opacity: .8; }
.arch-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8FA9B8; margin: 4px 0 10px; }
.arch-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: #8FA9B8; }
.arch-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 6px; }
.why-aws { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }

/* Business model */
.money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.money .card .k { font-family: 'Readex Pro', sans-serif; font-size: 15px; font-weight: 600; color: var(--teal); margin-bottom: 6px; }
.pay-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 500; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--line)); }
.milestone { position: relative; padding-top: 40px; }
.milestone::before { content: ""; position: absolute; top: 4px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); }
.milestone.done::before { background: var(--teal); }
.milestone .when { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.milestone p { color: var(--ink-soft); font-size: 15px; }

/* Team */
.person { text-align: left; }
.avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-family: 'Readex Pro', sans-serif; font-weight: 700; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--teal-500), var(--navy)); margin-bottom: 18px; }
.person .role { font-size: 14px; font-weight: 600; color: var(--teal); margin: -10px 0 12px; }
.person a { font-size: 14px; font-weight: 600; text-decoration: none; }

/* Name story */
.story { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.story-mark { aspect-ratio: 1; max-width: 360px; width: 100%; justify-self: center; border-radius: 40px; background: radial-gradient(circle at 30% 20%, #134a6f, var(--navy)); display: grid; place-items: center; box-shadow: var(--shadow); }
.story-mark svg { width: 70%; }
.story .ar-name { font-family: 'Readex Pro', sans-serif; font-size: 28px; color: var(--teal); margin-bottom: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { margin-bottom: 12px; font-size: 17px; }
.contact-list a { color: var(--teal-300); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #D7E5EC; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 16px;
}
.field select option { color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal-300); outline-offset: 1px; }

/* Footer */
footer { background: #071F33; color: #8FA9B8; padding: 48px 0 36px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.foot a { color: #B7CAD5; text-decoration: none; display: block; margin-bottom: 8px; }
.foot a:hover { color: var(--teal-300); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Legal pages */
.legal { max-width: 800px; padding: 64px 20px 96px; margin: 0 auto; }
.legal h1 { font-size: 44px; }
.legal h2 { font-size: 24px; margin-top: 36px; }
.legal p, .legal li { color: var(--ink-soft); }

/* Reveal animations */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ping::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .contact-grid, .story { grid-template-columns: 1fr; }
  .phones { height: 520px; max-width: 520px; margin: 0 auto; width: 100%; }
  .grid-4, .stats, .money, .why-aws { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure.wide { grid-column: 1 / -1; }
  .arch-row.r3, .arch-row.r4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .timeline::before { display: none; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
  .lead { font-size: 17px; }
  .grid-2, .grid-3, .grid-4, .stats, .money, .why-aws, .built, .timeline { grid-template-columns: 1fr; }
  .arch-row.r1, .arch-row.r3, .arch-row.r4 { grid-template-columns: 1fr 1fr; }
  .arch { padding: 16px; }
  .node { padding: 10px 12px; font-size: 13px; }
  .phones { height: 430px; }
  .phone { width: 190px; border-width: 7px; border-radius: 28px; }
  .float-card { font-size: 12px; padding: 9px 12px; }
  .float-card.a { left: 0; bottom: 20px; }
  .float-card.b { right: 0; top: 0; }
  .strip-item { padding: 22px 16px; }
  .strip-item .big { font-size: 24px; }
  .video-cta { flex-direction: column; align-items: flex-start; }
  .foot { grid-template-columns: 1fr; }
}

/* fixes */
.tick::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.foot a.brand { display: flex; }
