/* ============ Tokens ============ */
:root {
  --ink: #F8FAFC;
  --ink-soft: #94A3B8;
  --muted: #64748B;
  --paper: #020617; /* Very dark slate */
  --paper-alt: #0F172A; /* Slate 900 */
  --line: #1E293B; /* Slate 800 */
  --primary: #8B5CF6; /* Violet 500 */
  --primary-dark: #7C3AED; /* Violet 600 */
  --primary-glow: rgba(139, 92, 246, 0.4);
  --primary-soft: rgba(139, 92, 246, 0.15);
  --accent: #2DD4BF; /* Teal 400 */
  --live: #10B981; 
  --live-soft: rgba(16, 185, 129, 0.15);
  --planned: #3B82F6; 
  --planned-soft: rgba(59, 130, 246, 0.15);
  --review: #F59E0B;
  --review-soft: rgba(245, 158, 11, 0.15);
  --draft: #94A3B8;
  --draft-soft: rgba(148, 163, 184, 0.15);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -2px rgba(0,0,0,0.5);
  --shadow-md: 0 20px 25px -5px rgba(0,0,0,0.8), 0 8px 10px -6px rgba(0,0,0,0.8);
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Outfit", "Inter Tight", 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;
  overflow-x: hidden;
}

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; }
}

/* Background gradient mesh */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1000px;
  background: radial-gradient(circle at 15% 10%, rgba(139,92,246,0.15) 0%, transparent 40%),
              radial-gradient(circle at 85% 30%, rgba(45,212,191,0.1) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

.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-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(45, 212, 191, 0.4);
}
.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 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}
.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px 0 var(--primary-glow); 
  background: var(--primary-dark); 
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-soft); background: rgba(255, 255, 255, 0.1); }
.btn-full { width: 100%; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 18px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.brand-name { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; }
.brand-name em { font-style: normal; font-weight: 400; color: var(--accent); margin-left: 4px; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14.5px; font-weight: 500; }
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: rgba(255,255,255,0.05); color: var(--ink) !important;
  padding: 9px 20px; border-radius: 999px; font-weight: 600;
  border: 1px solid var(--line); transition: all 0.2s;
}
.nav-cta:hover { background: var(--primary); border-color: transparent; box-shadow: 0 4px 14px var(--primary-glow); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* ============ Hero ============ */
.hero { padding: 80px 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.8vw, 62px); font-weight: 800; background: linear-gradient(to right, #fff, #94A3B8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 18px; margin-top: 24px; max-width: 480px; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; margin: 48px 0 0; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.05); }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats dt { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin: 0; color: #fff; }
.hero-stats dd { margin: 0; font-size: 14px; color: var(--muted); font-weight: 500; }

/* console mockup */
.hero-panel { animation: floatIn 1s cubic-bezier(0.16, 1, 0.3, 1) both; perspective: 1000px; }
@keyframes floatIn { from { opacity: 0; transform: translateY(30px) rotateX(5deg); } to { opacity: 1; transform: translateY(0) rotateX(0); } }
.console {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
  padding: 10px;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.console:hover { transform: rotateY(0) rotateX(0); }
.console-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 16px;
}
.console-dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.console-dot:nth-child(1) { background: #EF4444; }
.console-dot:nth-child(2) { background: #F59E0B; }
.console-dot:nth-child(3) { background: #10B981; }

.console-title {
  margin-left: 12px; font-size: 12px; color: var(--muted); font-family: monospace;
  letter-spacing: 0.05em;
}
.console-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border-radius: 16px;
  transition: background 0.2s ease;
  background: rgba(255,255,255,0.02);
  margin-bottom: 8px;
}
.console-row:last-child { margin-bottom: 0; }
.console-row:hover { background: rgba(255,255,255,0.06); }
.app-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px; font-family: var(--font-display);
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3);
}
.app-meta { flex: 1; min-width: 0; }
.app-name { margin: 0; font-weight: 700; font-size: 15px; color: #fff; }
.app-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.pill {
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  white-space: nowrap; font-family: var(--font-display); letter-spacing: 0.02em;
}
.pill-live { background: var(--live-soft); color: var(--live); border: 1px solid rgba(16, 185, 129, 0.2); }
.pill-review { background: var(--review-soft); color: var(--review); border: 1px solid rgba(245, 158, 11, 0.2); }
.pill-draft { background: var(--draft-soft); color: var(--draft); border: 1px solid rgba(148, 163, 184, 0.2); }
.pill-planned { background: var(--planned-soft); color: var(--planned); border: 1px solid rgba(59, 130, 246, 0.2); }
.pill-dev { background: var(--review-soft); color: var(--review); border: 1px solid rgba(245, 158, 11, 0.2); }
.pill-concept { background: var(--draft-soft); color: var(--draft); border: 1px solid rgba(148, 163, 184, 0.2); }

/* ============ Strip ============ */
.strip { border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); background: rgba(15,23,42,0.4); }
.strip-inner {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 24px 28px; font-size: 14px; color: var(--muted);
}
.strip-item { font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.strip-sep { color: var(--line); }

/* ============ About ============ */
.about { padding: 110px 0; position: relative; }
.about::after { content: ''; position: absolute; right: 0; top: 30%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(45,212,191,0.05) 0%, transparent 60%); z-index: -1; pointer-events: none; }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.about h2 { font-size: clamp(32px, 3.5vw, 44px); margin-bottom: 24px; }
.about p { margin-bottom: 16px; max-width: 520px; font-size: 16px; }
.about-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.about-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 15px;
}
.about-list strong { color: var(--ink-soft); font-weight: 500; }
.about-list span { text-align: right; font-weight: 600; color: #fff; }

.about-card {
  background: linear-gradient(145deg, rgba(30,41,59,0.4), rgba(15,23,42,0.6));
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.about-card h3 { color: #fff; font-size: 22px; margin-bottom: 16px; }
.about-card p { color: var(--ink-soft); margin-bottom: 12px; font-size: 15px; }

/* ============ Services ============ */
.services { padding: 40px 0 110px; }
.services h2 { font-size: clamp(32px, 3.5vw, 44px); margin-bottom: 20px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.service-card {
  background: rgba(15,23,42,0.3); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-lg);
  padding: 32px 24px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; z-index: 1;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.05), transparent); z-index: -1; opacity: 0; transition: 0.3s;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(139,92,246,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #4F46E5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; box-shadow: 0 8px 16px var(--primary-soft);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; color: #fff; }
.service-card p { font-size: 14.5px; line-height: 1.6; }

/* ============ Apps ============ */
.apps { padding: 80px 0 110px; background: rgba(15,23,42,0.4); border-top: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03); }
.apps h2 { font-size: clamp(32px, 3.5vw, 44px); }
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.app-card {
  background: rgba(2,6,23,0.5); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg);
  padding: 28px; display: block; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.15); background: rgba(30,41,59,0.3); }
.app-card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-family: var(--font-display); margin-bottom: 20px; font-size: 18px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3);
}
.app-card h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.app-card p { font-size: 14px; margin-bottom: 20px; min-height: 42px; line-height: 1.5; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--muted); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 16px; }

/* ============ Process ============ */
.process { padding: 110px 0; }
.process h2 { font-size: clamp(32px, 3.5vw, 44px); }
.process-steps {
  list-style: none; margin: 60px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.process-steps li {
  padding: 0 28px; position: relative;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.process-steps li:first-child { border-left: none; padding-left: 0; }
.step-num {
  display: inline-block; font-family: var(--font-display); font-weight: 900;
  font-size: 14px; color: #fff; background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 999px; letter-spacing: 0.05em; margin-bottom: 20px; transition: 0.3s;
}
.process-steps li:hover .step-num { background: var(--primary); box-shadow: 0 0 14px var(--primary-glow); }
.process-steps h3 { font-size: 20px; margin-bottom: 12px; color: #fff; }
.process-steps p { font-size: 15px; }

/* ============ Contact ============ */
.contact { padding: 110px 0 120px; background: rgba(15,23,42,0.6); border-top: 1px solid rgba(255,255,255,0.03); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; }
.contact h2 { color: #fff; font-size: clamp(32px, 3.5vw, 44px); margin: 12px 0 0; }
.contact .section-sub { color: var(--ink-soft); }
.contact-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 24px; }
.contact-list li { display: flex; flex-direction: column; gap: 6px; }
.contact-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 800; font-family: var(--font-display); }
.contact-list a, .contact-list span:not(.contact-label) { font-size: 17px; font-weight: 600; color: #fff; }
.contact-list a:hover { color: var(--primary); }

.contact-form {
  background: rgba(2,6,23,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid; gap: 20px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
}
.contact-form label { display: grid; gap: 10px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.contact-form input, .contact-form textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
  transition: all 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.05); box-shadow: 0 0 0 3px var(--primary-soft); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 4px; text-align: center; }

/* ============ Footer ============ */
.footer { padding: 48px 0; background: #020617; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer .brand-mark { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: none; border-radius: 8px; width: 30px; height: 30px; font-size: 16px; }
.footer .brand-name { color: #fff; font-weight: 700; }
.footer .brand-name em { color: var(--accent); }
.footer-copy { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 24px; font-size: 14.5px; font-weight: 500; }
.footer-links a { color: var(--ink-soft); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

/* ============ Legal pages ============ */
.legal { padding: 130px 0 110px; max-width: 800px; }
.legal h1 { font-size: clamp(34px, 4.5vw, 48px); margin-bottom: 12px; background: linear-gradient(to right, #fff, #94A3B8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.legal .updated { color: var(--accent); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 48px; }
.legal h2 { font-size: 24px; margin: 48px 0 16px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; margin-bottom: 16px; line-height: 1.7; }
.legal ul { padding-left: 24px; }
.legal a { color: var(--primary); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(139,92,246,0.3); text-underline-offset: 4px; transition: all 0.2s; }
.legal a:hover { color: #fff; text-decoration-color: var(--primary); }
.legal a.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px; font-weight: 600; color: #fff; text-decoration: none; padding: 10px 20px; background: rgba(255,255,255,0.05); border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); }
.legal a.back:hover { background: rgba(255,255,255,0.1); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .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: 40px; }
  .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: rgba(2,6,23,0.95); backdrop-filter: blur(20px); flex-direction: column; align-items: flex-start; padding: 40px 28px; gap: 28px; font-size: 20px; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all 0.3s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
  .nav-cta { align-self: flex-start; }
  .hero { padding: 50px 0 40px; }
  .hero-stats { gap: 24px; 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 rgba(255,255,255,0.1); padding-top: 24px; }
  .process-steps li:first-child { border-top: none; padding-top: 0; }
  .about-list li { flex-direction: column; gap: 6px; }
  .about-list span { text-align: left; }
  .contact-form { padding: 24px; }
}
