/* ============================================================
   ArcX! Website — Design System
   Palette: Near-black on off-white. Sharp, editorial, modern.
   Fonts: DM Serif Display (headings) + DM Sans (body)
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #0f0f0f;
  --ink-soft:   #555;
  --ink-faint:  #999;
  --bg:         #f7f6f3;
  --card:       #ffffff;
  --border:     #e8e7e3;
  --accent:     #0f0f0f;
  --radius:     16px;
  --radius-sm:  10px;
  --max-w:      1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Utilities ─────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 760px; }

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(247,246,243,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; text-decoration: none; }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  font-size: 14px; color: var(--ink-soft);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.btn-nav {
  font-size: 13px; font-weight: 600; font-family: inherit;
  background: var(--ink); color: white;
  padding: 9px 18px; border-radius: 100px;
  border: none; cursor: pointer;
  transition: opacity .15s ease, transform .12s ease;
}
.btn-nav:hover { opacity: .85; transform: translateY(-1px); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all .2s ease;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--ink); color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: 100px;
  border: 2px solid var(--ink);
  transition: opacity .15s ease, transform .12s ease;
  cursor: pointer;
}
.btn-primary:hover { opacity: .85; transform: translateY(-2px); }
.btn-primary--light {
  background: white; color: var(--ink);
  border-color: white;
}
.btn-ghost {
  display: inline-flex; align-items: center;
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.btn-ghost:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ── Section labels ─────────────────────────────────────── */
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1; letter-spacing: -1px;
  color: var(--ink); margin-bottom: 56px;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: 120px 40px 80px;
  display: flex; align-items: center;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.hero-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .4;
}
.hero-inner {
  flex: 1; max-width: 560px;
  position: relative; z-index: 1;
  animation: fadeUp .7s cubic-bezier(.22,1,.36,1) both;
}
.hero-badge {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: .05em;
  background: white; color: var(--ink-soft);
  border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 100px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.0; letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic; color: var(--ink-soft);
}
.hero-sub {
  font-size: 17px; color: var(--ink-soft);
  line-height: 1.65; margin-bottom: 36px;
  max-width: 460px;
}
.hero-cta {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.hero-note {
  font-size: 12px; color: var(--ink-faint);
}

/* ── Hero UI preview ────────────────────────────────────── */
.hero-ui {
  flex: 1; max-width: 380px;
  position: relative; z-index: 1;
  animation: fadeUp .7s cubic-bezier(.22,1,.36,1) .12s both;
}
.ui-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,.04),
              0 20px 60px rgba(0,0,0,.09);
  overflow: hidden;
  font-size: 13px;
}


.ui-icons { display: flex; gap: 6px; }
.ui-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e5e5e5;
}
.ui-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.ui-msg-label { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #aaa; margin-bottom: 4px; }
.ui-bubble {
  background: #f4f4f4; border-radius: 12px; padding: 10px 12px;
  font-size: 12.5px; color: #333; line-height: 1.5;
}
.ui-bubble--user {
  background: #1c1c1e; color: white;
}
.ui-msg--user { text-align: right; }
.ui-msg--user .ui-msg-label { text-align: right; }
.ui-action {
  margin-top: 8px;
  background: #f8f8f8; border: 1px solid #ececec;
  border-radius: 10px; overflow: hidden;
}
.ui-formula {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 10.5px; color: #555;
  padding: 10px 12px;
  word-break: break-all; line-height: 1.5;
}
.ui-apply {
  width: 100%; border: none; border-top: 1px solid #ececec;
  padding: 8px; background: #1c1c1e; color: white;
  font-size: 11px; font-weight: 600; font-family: inherit;
  cursor: pointer; letter-spacing: .02em;
}
.ui-chips {
  display: flex; gap: 5px; padding: 12px 14px;
  border-top: 1px solid #f0f0f0;
}
.ui-chip {
  padding: 4px 10px; border-radius: 100px;
  font-size: 10.5px; font-weight: 600;
  border: 1px solid #e5e5e5; background: white; color: #888;
}
.ui-chip--active { background: #1c1c1e; color: white; border-color: #1c1c1e; }

/* ── Trust bar ─────────────────────────────────────────── */
.trust-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--ink-faint);
}
.trust-logos { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── Features ───────────────────────────────────────────── */
.features {
  padding: 100px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.feature-card--large:first-child { grid-column: span 2; }
.feature-card--large:last-child  { grid-column: span 2; }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow .2s ease, transform .15s ease;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 22px; margin-bottom: 16px; color: var(--ink);
}
.feature-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px; margin-bottom: 10px; letter-spacing: -.3px;
}
.feature-card p {
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.6;
}
.feature-tag {
  display: inline-block; margin-top: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint);
  background: var(--bg); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px;
}

/* ── How it works ───────────────────────────────────────── */
.how {
  padding: 100px 0;
  background: var(--ink);
  color: white;
}
.how .section-label { color: rgba(255,255,255,.4); }
.how .section-title { color: white; }
.steps {
  display: flex; align-items: flex-start; gap: 0;
  margin-bottom: 56px;
}
.step {
  flex: 1; padding: 32px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
}
.step-divider {
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px; font-size: 24px;
  color: rgba(255,255,255,.2); margin-top: 48px; flex-shrink: 0;
}
.step-num {
  font-family: 'DM Serif Display', serif;
  font-size: 48px; color: rgba(255,255,255,.12);
  line-height: 1; margin-bottom: 16px; letter-spacing: -2px;
}
.step h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 10px; color: white;
}
.step p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.6; }
.how-cta { text-align: center; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { padding: 100px 0; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 4px; font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: color .15s ease;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--ink-faint); transition: transform .2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-q:hover { color: var(--ink-soft); }
.faq-a {
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.7;
  padding: 0 4px 20px; display: none;
}
.faq-a a { color: var(--ink); border-bottom: 1px solid var(--border); }
.faq-item.open .faq-a { display: block; }

/* ── Footer CTA ─────────────────────────────────────────── */
.footer-cta {
  padding: 100px 0; text-align: center;
  background: #1a1a1a;
  color: white;
}
.footer-cta-mark { margin-bottom: 24px; opacity: .6; }
.footer-cta h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  color: white; margin-bottom: 16px; letter-spacing: -1px;
}
.footer-cta p { color: rgba(255,255,255,.5); margin-bottom: 36px; font-size: 16px; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  padding: 28px 0;
  background: #111; color: rgba(255,255,255,.4);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; text-decoration: none; }

.footer-links { display: flex; gap: 24px; font-size: 13px; }
.footer-links a { transition: color .15s ease; }
.footer-links a:hover { color: rgba(255,255,255,.8); }
.footer-copy { font-size: 12px; }

/* ── Privacy / Terms pages ──────────────────────────────── */
.page-hero {
  padding: 140px 0 64px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -1.5px; margin-bottom: 12px;
}
.page-hero .meta { font-size: 14px; color: var(--ink-faint); }
.page-content { padding: 64px 0 100px; }
.page-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px; margin: 48px 0 12px;
  letter-spacing: -.3px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.75; }
.page-content ul { padding-left: 20px; margin-bottom: 16px; }
.page-content li { font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; line-height: 1.7; }
.page-content a { color: var(--ink); border-bottom: 1px solid var(--border); }
.page-content strong { color: var(--ink); font-weight: 600; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 100px; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-note { text-align: center; }
  .hero-ui { max-width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large:first-child,
  .feature-card--large:last-child { grid-column: span 1; }
  .steps { flex-direction: column; }
  .step-divider { transform: rotate(90deg); margin: -4px auto; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav { padding: 0 20px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero { padding: 100px 20px 60px; }
  .features, .how, .faq, .footer-cta { padding: 64px 0; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

.nav-brand svg { height: 60px; width: auto; display: block; color: var(--ink); }

.footer-brand svg { height: 60px; width: auto; display: block; color: rgba(255,255,255,0.8); }







.ui-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 12px; border-bottom: 1px solid #f0f0f0; }
.ui-brand { display: flex; align-items: center; }
.ui-brand svg { height: 22px; width: auto; display: block; color: #1c1c1e; }

.btn-nav--soon {
  cursor: default; opacity: 0.5;
}
.btn-primary--soon {
  cursor: default; opacity: 0.7;
}
