/* Cloudper landing — design system 1A (docs/design-system-1a.md). No gradients, no emoji. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --text: #1D1D1F;
  --text-2: #3A3A3C;
  --muted: #6E6E73;
  --faint: #AEAEB2;
  --line: #F0F0F2;
  --track: #E8E8ED;
  --accent: #0066CC;
  --accent-soft: #EAF2FC;
  --accent-text: #0057B0;
  --ok: #1E7A3C;
  --ok-soft: #E8F5EC;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.05);
  --shadow-lg: 0 1px 2px rgba(0,0,0,0.04), 0 24px 60px rgba(0,0,0,0.09);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:focus-visible, .pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 22px; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.card { border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.card-pad { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 300px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); }
.eyebrow-ok { color: var(--ok); }
.h2 { font-size: 48px; line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; }
.h2-sm { font-size: 40px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); }
.h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.h3-sm { font-size: 18px; font-weight: 600; }
.p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.p-sm { font-size: 14px; }

.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 22px; font-size: 15px; font-weight: 500; transition: transform .2s var(--ease), background-color .2s; }
.pill:hover { transform: translateY(-1px); }
.pill-lg { min-height: 48px; padding: 0 24px; border-radius: 24px; font-size: 16px; }
.pill-primary { background: var(--accent); color: #FFFFFF; }
.pill-primary:hover { background: #0058B0; }
.pill-light { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

/* Header */
.header { padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--text); display: flex; align-items: center; justify-content: center; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 22px; background: var(--track); font-size: 14px; }
.nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 18px; color: var(--text-2); transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600; }
.hero-title { font-size: 80px; line-height: 1.0; font-weight: 700; letter-spacing: -0.05em; }
.hero-title .accent { color: var(--accent); }
.hero-lead { max-width: 560px; font-size: 21px; line-height: 1.5; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { flex: 2 1 380px; min-width: 0; }

/* Chat illustration */
.chat { padding: 24px; border-radius: 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; min-height: 420px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat-who { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.chat-avatar { width: 30px; height: 30px; border-radius: 15px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.chat-tag { font-size: 12px; color: #8E8E93; }
.bubble { max-width: 82%; padding: 12px 16px; font-size: 15px; line-height: 1.45; }
.bubble-user { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--accent); color: #FFFFFF; }
.bubble-ai { justify-self: start; border-radius: 18px 18px 18px 6px; background: var(--bg); }
.stack { display: grid; }
.stack > * { grid-area: 1 / 1; }
.typing { align-self: start; justify-self: start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: var(--bg); }
.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); font-size: 14px; }
.tick { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 11px; background: var(--ok-soft); display: inline-flex; align-items: center; justify-content: center; }
.tick-accent { background: var(--accent-soft); }
.status { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 16px; background: var(--ok-soft); }
.status-label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ok); }
.status-domain { font-size: 14px; color: var(--text-2); }

/* Marquee */
.marquee { padding: 16px 0 56px; }
.marquee-title { margin: 0 auto 18px; font-size: 14px; color: var(--muted); text-align: center; }
.marquee-viewport { overflow: hidden; }
.track { display: flex; gap: 12px; width: max-content; }
.chip { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 26px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,0.04); font-size: 17px; font-weight: 500; white-space: nowrap; }
.chips { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }

/* Diagram */
.diagram { padding: 32px 24px; border-radius: 28px; }
.diagram svg { display: block; width: 100%; height: auto; font-family: Inter, sans-serif; }

/* Statement */
.statement { padding-top: 72px; padding-bottom: 72px; }
.statement p { display: flex; flex-direction: column; gap: 6px; font-size: 64px; line-height: 1.08; font-weight: 700; letter-spacing: -0.045em; }

/* Numbered cards */
.num { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; color: #D2D2D7; }

/* Before / after */
.compare { flex: 1 1 420px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.compare-before { background: #FAFAFC; box-shadow: none; border: 1px solid var(--track); }
.compare-before .h3 { color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.list li { display: flex; gap: 12px; align-items: center; }
.list-muted { color: var(--muted); }
.dash { color: var(--faint); }

/* Cloud */
.cloud { flex-direction: row; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.cloud-main { flex: 2 1 560px; min-width: 0; padding: 40px; border-radius: 28px; display: flex; flex-direction: column; gap: 14px; }
.cloud-main .lead { font-size: 17px; }
.cloud-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cloud-side .card { flex: 1 1 auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; }

/* Safety */
.icon { width: 44px; height: 44px; border-radius: 22px; background: var(--ok-soft); display: flex; align-items: center; justify-content: center; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; padding: 56px 32px; display: flex; flex-direction: column; gap: 24px; }
.faq-list { padding: 8px 28px; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.faq-item:last-child { border-bottom: 0; }

/* Closing */
.closing-wrap { padding-top: 40px; padding-bottom: 88px; }
.closing { padding: 72px 40px; border-radius: 32px; background: var(--text); color: #FFFFFF; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.closing .badge { align-self: center; background: #2C2C2E; color: #E5E5EA; }
.closing h2 { max-width: 760px; font-size: 56px; line-height: 1.05; font-weight: 700; letter-spacing: -0.045em; }
.closing p { max-width: 560px; font-size: 18px; line-height: 1.5; color: #A1A1A6; }

/* Footer */
.footer { padding-top: 24px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #E3E3E8; font-size: 13px; color: var(--muted); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ---------- Motion ---------- */
.w { display: inline-block; opacity: 0; transform: translateY(28px); filter: blur(6px); animation: rise .9s var(--ease) forwards; }
.w1 { animation-delay: .05s; } .w2 { animation-delay: .15s; } .w3 { animation-delay: .35s; } .w4 { animation-delay: .45s; } .w5 { animation-delay: .55s; }
.fade { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; }
.d1 { animation-delay: .7s; } .d2 { animation-delay: .85s; } .d3 { animation-delay: 1s; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.seq { opacity: 0; }
.k-user { animation: k-user 14s ease infinite; }
.k-dots { animation: k-dots 14s ease infinite; }
.k-ai { animation: k-ai 14s ease infinite; }
.k-s1 { animation: k-s1 14s ease infinite; }
.k-s2 { animation: k-s2 14s ease infinite; }
.k-s3 { animation: k-s3 14s ease infinite; }
.k-ok { animation: k-ok 14s ease infinite; }
@keyframes k-user { 0%, 3% { opacity: 0; transform: translateY(10px); } 7%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes k-dots { 0%, 10% { opacity: 0; } 13%, 20% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes k-ai { 0%, 21% { opacity: 0; transform: translateY(10px); } 25%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes k-s1 { 0%, 30% { opacity: 0; transform: translateX(-10px); } 34%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes k-s2 { 0%, 40% { opacity: 0; transform: translateX(-10px); } 44%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes k-s3 { 0%, 50% { opacity: 0; transform: translateX(-10px); } 54%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes k-ok { 0%, 62% { opacity: 0; transform: scale(.9); } 67%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 4px; background: var(--faint); animation: blink 1s ease-in-out infinite; }
.dot:nth-child(2) { animation-delay: .15s; } .dot:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.live { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--ok); }
.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s ease-out infinite; }
.live-accent { background: var(--accent); }
.live-bright { background: #30D158; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }

.track { animation: marquee 40s linear infinite; }
.marquee-viewport:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.flow { stroke-dasharray: 4 10; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.halo { transform-box: fill-box; transform-origin: center; animation: halo 2.8s ease-out infinite; }
@keyframes halo { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.14, 1.3); opacity: 0; } }

.line { color: #C7C7CC; animation: hl 12s ease infinite; }
.l2 { animation-delay: 3s; } .l3 { animation-delay: 6s; } .l4 { animation-delay: 9s; }
@keyframes hl { 0%, 22% { color: var(--text); } 28%, 94% { color: #C7C7CC; } 100% { color: var(--text); } }

.lift { transition: transform .35s var(--ease), box-shadow .35s; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 18px 44px rgba(0,0,0,0.09); }

/* Scroll reveal — progressive enhancement, no JavaScript */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 240px; }
  @keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 56px; gap: 40px; }
  .hero-title { font-size: 56px; }
  .h2 { font-size: 36px; }
  .h2-sm { font-size: 32px; }
  .statement p { font-size: 40px; }
  .closing h2 { font-size: 38px; }
  .cloud-main { padding: 28px; }
}
@media (max-width: 560px) {
  .wrap, .faq { padding-left: 20px; padding-right: 20px; }
  .hero-title { font-size: 44px; }
  .hero-lead { font-size: 18px; }
  .nav { display: none; }
  .statement p { font-size: 32px; }
  .closing { padding: 48px 24px; }
  .chat { min-height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .w, .fade, .seq, .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .k-dots { display: none; }
  .line { color: var(--text); }
}
