/* ============ Tokens ============ */
:root {
  --ink: #10131A;
  --ink-soft: #3A3F4B;
  --muted: #6B7280;
  --paper: #F7F8FA;
  --paper-alt: #EFF1F6;
  --line: #E4E7EE;
  --primary: #5546FF;
  --primary-dark: #372BC7;
  --primary-soft: #EDEBFF;
  --live: #12B76A;
  --live-soft: #E7F9EF;
  --planned: #3B5BFF;
  --planned-soft: #EAEDFF;
  --review: #B65C00;
  --review-soft: #FFF3DE;
  --draft: #64748B;
  --draft-soft: #EEF1F5;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16,19,26,0.06);
  --shadow-md: 0 12px 32px -12px rgba(16,19,26,0.18);
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv11" 1;
}

img, svg { display: block; max-width: 100%; }

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

:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-soft);
}
.eyebrow.center { justify-content: center; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.section-sub { max-width: 560px; color: var(--muted); font-size: 16px; margin-top: 14px; }
.section-sub.center { margin-left: auto; margin-right: auto; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--primary); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-full { width: 100%; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,248,250,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 16px;
}
.brand-name { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.01em; }
.brand-name em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 4px; font-size: 13px; letter-spacing: 0.06em; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--primary); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============ Hero ============ */
.hero { padding: 76px 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; }
.hero-sub { font-size: 17px; margin-top: 20px; max-width: 480px; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 34px; margin: 42px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats dt { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 0; }
.hero-stats dd { margin: 0; font-size: 13px; color: var(--muted); }

/* console mockup */
.hero-panel { animation: floatIn 0.8s ease both; }
@keyframes floatIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.console {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 8px;
  transform: rotate(1.2deg);
}
.console-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px 14px;
}
.console-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.console-title {
  margin-left: 10px; font-size: 11.5px; color: var(--muted); font-family: monospace, var(--font-body);
  letter-spacing: 0.02em;
}
.console-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.console-row:hover { background: var(--paper-alt); }
.app-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px; font-family: var(--font-display);
  flex-shrink: 0;
}
.app-meta { flex: 1; min-width: 0; }
.app-name { margin: 0; font-weight: 700; font-size: 14.5px; }
.app-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

.pill {
  font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  white-space: nowrap;
}
.pill-live { background: var(--live-soft); color: var(--live); }
.pill-review { background: var(--review-soft); color: var(--review); }
.pill-draft { background: var(--draft-soft); color: var(--draft); }
.pill-planned { background: var(--planned-soft); color: var(--planned); }
.pill-dev { background: var(--review-soft); color: var(--review); }
.pill-concept { background: var(--draft-soft); color: var(--draft); }

/* ============ Strip ============ */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip-inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 20px 28px; font-size: 13px; color: var(--muted);
}
.strip-item { font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.strip-sep { color: var(--line); }

/* ============ About ============ */
.about { padding: 96px 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
.about h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 18px; }
.about p { margin-bottom: 14px; max-width: 520px; }
.about-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.about-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.about-list strong { color: var(--muted); font-weight: 500; }
.about-list span { text-align: right; font-weight: 600; }

.about-card {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  align-self: start;
}
.about-card h3 { color: #fff; font-size: 19px; margin-bottom: 14px; }
.about-card p { color: rgba(255,255,255,0.72); margin-bottom: 12px; font-size: 14.5px; }

/* ============ Services ============ */
.services { padding: 20px 0 96px; }
.services h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 16px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 20px; height: 20px; }
.service-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.service-card p { font-size: 14px; }

/* ============ Apps ============ */
.apps { padding: 20px 0 96px; background: var(--paper-alt); }
.apps h2 { font-size: clamp(28px, 3vw, 38px); }
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.app-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: block; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.app-card-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-family: var(--font-display); margin-bottom: 16px;
}
.app-card h3 { font-size: 16px; margin-bottom: 6px; }
.app-card p { font-size: 13.5px; margin-bottom: 16px; min-height: 38px; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); }

/* ============ Process ============ */
.process { padding: 96px 0; }
.process h2 { font-size: clamp(28px, 3vw, 38px); }
.process-steps {
  list-style: none; margin: 50px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  counter-reset: step;
}
.process-steps li {
  padding: 0 22px; position: relative;
  border-left: 1px solid var(--line);
}
.process-steps li:first-child { border-left: none; padding-left: 0; }
.step-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 13px; color: var(--primary); letter-spacing: 0.06em; margin-bottom: 14px;
}
.process-steps h3 { font-size: 17px; margin-bottom: 8px; }
.process-steps p { font-size: 14px; }

/* ============ Contact ============ */
.contact { padding: 96px 0 110px; background: var(--ink); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact h2 { color: #fff; font-size: clamp(28px, 3vw, 38px); margin: 10px 0 0; }
.contact .section-sub { color: rgba(255,255,255,0.62); }
.contact-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); font-weight: 700; }
.contact-list a, .contact-list span:not(.contact-label) { font-size: 16px; font-weight: 600; }
.contact-list a:hover { color: var(--primary-soft); }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid; gap: 16px;
}
.contact-form label { display: grid; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 600; }
.contact-form input, .contact-form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.09); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-note { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: -4px; }

/* ============ Footer ============ */
.footer { padding: 40px 0; background: var(--ink); border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer .brand-mark { background: #fff; color: var(--ink); }
.footer .brand-name { color: #fff; }
.footer .brand-name em { color: rgba(255,255,255,0.45); }
.footer-copy { color: rgba(255,255,255,0.45); font-size: 13px; }
.footer-links { display: flex; gap: 22px; font-size: 13.5px; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: #fff; }

/* ============ Legal pages ============ */
.legal { padding: 120px 0 100px; max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 20px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal a.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 30px; font-weight: 600; color: var(--primary); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .console { transform: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid, .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .process-steps li:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 680px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 30px 28px; gap: 22px; font-size: 18px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.25s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
  .nav-cta { align-self: flex-start; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .service-grid, .apps-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps li { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .process-steps li:first-child { border-top: none; padding-top: 0; }
  .about-list li { flex-direction: column; gap: 4px; }
  .about-list span { text-align: left; }
}
