/* CartyCloud — marketing site */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --sky: #38bdf8;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --grad: linear-gradient(135deg, #38bdf8 0%, #4f46e5 60%, #7c3aed 100%);
  --radius: 22px;
  --shadow: 0 24px 60px -24px rgba(30, 27, 75, .35);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, .7);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--indigo); text-decoration: none; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -10px rgba(79, 70, 229, .7); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c7d2fe; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.appstore-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border-radius: 14px; padding: 10px 20px 10px 16px;
  line-height: 1.15; position: relative;
}
.appstore-btn:hover { text-decoration: none; }
.appstore-btn svg { width: 26px; height: 26px; }
.appstore-btn small { display: block; font-size: .7rem; opacity: .85; }
.appstore-btn strong { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.appstore-btn[data-soon]::after {
  content: "Coming soon"; position: absolute; top: -10px; right: -10px;
  background: #f59e0b; color: #fff; font-size: .68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; letter-spacing: .02em;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 30%, rgba(56, 189, 248, .22), transparent 70%),
    radial-gradient(700px 500px at 85% 20%, rgba(124, 58, 237, .18), transparent 70%),
    radial-gradient(500px 400px at 60% 70%, rgba(79, 70, 229, .14), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #eef2ff; color: var(--indigo); font-weight: 600; font-size: .85rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 800; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .93rem; }
.hero-points li::before { content: "✓"; color: #22c55e; font-weight: 800; margin-inline-end: 7px; }
.hero-visual { position: relative; height: 600px; }
.hero-visual .browser { position: absolute; top: 40px; left: 0; width: 92%; }
.hero-visual .phone { position: absolute; right: 0; bottom: 0; width: 230px; }

/* ---------- Device frames ---------- */
.browser {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(15, 23, 42, .06);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.browser-bar i:nth-child(1) { background: #f87171; }
.browser-bar i:nth-child(2) { background: #fbbf24; }
.browser-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin-inline-start: 12px; flex: 1; background: #fff; border-radius: 6px; font-size: .72rem; color: var(--muted); padding: 3px 10px; max-width: 280px; }
.phone {
  border-radius: 44px; padding: 10px; background: #0b0b12;
  box-shadow: 0 40px 80px -30px rgba(30, 27, 75, .55), inset 0 0 0 2px #2a2a35;
}
.phone img { border-radius: 34px; width: 100%; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .kicker { color: var(--indigo); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.03em; line-height: 1.12; margin: 10px 0 14px; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }

/* Logos / trust strip */
.strip { padding: 28px 0 8px; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.strip span { display: inline-flex; align-items: center; gap: 8px; }
.strip svg { width: 18px; height: 18px; color: var(--indigo); }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(30, 27, 75, .35); border-color: #c7d2fe; }
.card h3 { margin: 16px 0 8px; font-size: 1.12rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: #eef2ff; color: var(--indigo);
}
.ico svg { width: 24px; height: 24px; }
.ico.sky { background: #e0f2fe; color: #0284c7; }
.ico.violet { background: #f3e8ff; color: var(--violet); }
.ico.green { background: #dcfce7; color: #16a34a; }
.ico.amber { background: #fef3c7; color: #d97706; }
.ico.rose { background: #ffe4e6; color: #e11d48; }

/* Split showcase */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 110px; }
.split.reverse .split-text { order: 2; }
.split-text h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -.025em; line-height: 1.15; margin: 10px 0 14px; }
.split-text > p { color: var(--ink-2); font-size: 1.06rem; margin: 0 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--ink-2); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: #eef2ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checks strong { color: var(--ink); }

/* App section */
.app-section { background: radial-gradient(1200px 600px at 50% 0%, #312e81 0%, #1e1b4b 55%, #0f0d2e 100%); color: #e0e7ff; overflow: hidden; }
.app-section .section-head h2 { color: #fff; }
.app-section .section-head p { color: #c7d2fe; }
.app-section .section-head .kicker { color: #7dd3fc; }
.phones { display: flex; justify-content: center; gap: 26px; margin: 10px 0 60px; }
.phones .phone { width: 240px; flex: none; }
.phones .phone:nth-child(2) { transform: translateY(-28px); }
.phones .phone:nth-child(4) { transform: translateY(-28px); }
.app-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app-feature { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 22px; }
.app-feature h4 { margin: 12px 0 6px; color: #fff; font-size: 1.02rem; }
.app-feature p { margin: 0; font-size: .92rem; color: #c7d2fe; }
.app-feature .ico { background: rgba(125, 211, 252, .14); color: #7dd3fc; }
.app-cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 52px; }
.app-cta .note { color: #a5b4fc; font-size: .9rem; }

/* Payments */
.pay-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.pay-chip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; font-weight: 700; color: var(--ink-2); font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--indigo); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* CTA band */
.cta-band { padding: 0 0 100px; }
.cta-box {
  background: var(--grad); color: #fff; border-radius: 32px; padding: 64px 48px; text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.cta-box::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); right: -120px; top: -160px;
}
.cta-box h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; margin: 0 0 12px; position: relative; z-index: 1; }
.cta-box p { margin: 0 auto 28px; max-width: 600px; color: #e0e7ff; font-size: 1.08rem; position: relative; z-index: 1; }
.cta-box .hero-cta { justify-content: center; position: relative; z-index: 1; }
.cta-box .btn-ghost { background: #fff; color: var(--indigo); border-color: #fff; }
.cta-box .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer nav a { color: var(--ink-2); }

/* Legal / support pages */
.page { padding: 64px 0 90px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.03em; margin: 0 0 6px; }
.page .updated { color: var(--muted); margin: 0 0 36px; }
.page h2 { font-size: 1.25rem; margin: 36px 0 10px; letter-spacing: -.01em; }
.page p, .page li { color: var(--ink-2); }
.contact-card { display: flex; align-items: center; gap: 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin: 8px 0 30px; }
.contact-card .ico { flex: none; }
.contact-card strong { display: block; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .split.reverse .split-text { order: 0; }
  .hero-visual { height: 520px; max-width: 720px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .app-features { grid-template-columns: 1fr 1fr; }
  .phones .phone:nth-child(n+4) { display: none; }
}
@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .site-header .btn-sm { display: none; }
  section { padding: 72px 0; }
  .hero { padding-top: 48px; }
  .hero-visual { height: 420px; }
  .hero-visual .browser { width: 100%; top: 0; }
  .hero-visual .phone { width: 170px; right: 8px; border-radius: 34px; padding: 7px; }
  .hero-visual .phone img { border-radius: 27px; }
  .grid-3, .steps, .app-features { grid-template-columns: 1fr; }
  .phones { gap: 14px; }
  .phones .phone { width: 46%; border-radius: 30px; padding: 6px; }
  .phones .phone img { border-radius: 24px; }
  .phones .phone:nth-child(n+3) { display: none; }
  .phones .phone:nth-child(2) { transform: none; }
  .cta-box { padding: 48px 24px; border-radius: 24px; }
}
