/* ============ Saide Labs — dark tech theme ============ */
:root {
  --bg: #04070e;
  --bg-2: #070d18;
  --panel: rgba(255, 255, 255, 0.028);
  --ink: #e9eff8;
  --muted: #8b98ad;
  --line: rgba(148, 163, 184, 0.14);
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-dim: rgba(56, 189, 248, 0.12);
  --glow: 0 0 24px rgba(56, 189, 248, 0.35);
  --radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(56, 189, 248, 0.07), transparent 60%),
    radial-gradient(800px 500px at 90% 10%, rgba(129, 140, 248, 0.06), transparent 60%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(56, 189, 248, 0.55); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; font-size: 16px; padding: 15px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(4, 7, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
}
.logo-text { font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14.5px; transition: color 0.15s; }
.nav-links a:hover { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; padding: 8px 14px; cursor: pointer;
  transition: all 0.15s ease;
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); box-shadow: var(--glow); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 170px 0 110px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, transparent 40%, var(--bg) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 8px 18px; border-radius: 999px;
  margin-bottom: 28px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 24px;
}
.grad {
  background: linear-gradient(100deg, #38bdf8, #818cf8 60%, #c084fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17.5px; color: var(--muted); margin-bottom: 36px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-points { display: flex; gap: 44px; flex-wrap: wrap; }
.hero-point { display: flex; flex-direction: column; }
.hero-point strong { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--ink); }
.hero-point span { font-size: 13.5px; color: var(--muted); }

/* Terminal card */
.terminal {
  background: rgba(7, 12, 22, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(56, 189, 248, 0.08);
  overflow: hidden;
  font-family: var(--mono);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #f87171; } .dot.y { background: #fbbf24; } .dot.g { background: #34d399; }
.term-title { margin-left: 8px; font-size: 12.5px; color: var(--muted); }
.term-body {
  padding: 22px 20px; font-size: 13.5px; line-height: 2;
  min-height: 220px; white-space: pre-wrap; word-break: break-all;
  color: #c9d6e8;
}
.term-body .cmd { color: var(--accent); }
.term-body .ok { color: #34d399; }
.term-body .url { color: #c084fc; text-decoration: underline; }
.term-cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1; }
.hero-scroll span {
  display: block; width: 24px; height: 38px; border: 2px solid rgba(139, 152, 173, 0.4);
  border-radius: 14px; position: relative;
}
.hero-scroll span::after {
  content: ''; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--accent); animation: scroll 1.8s infinite;
}
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Tech stack strip ---------- */
.stack {
  padding: 44px 0; text-align: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.stack-label {
  font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin-bottom: 22px;
}
.stack-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.stack-badges span {
  font-family: var(--mono); font-size: 13px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 16px; color: #b8c5d8;
  transition: all 0.15s ease;
}
.stack-badges span:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: rgba(255, 255, 255, 0.015); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: '// '; opacity: 0.6; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 18px; }
.section-sub { font-size: 17px; color: var(--muted); }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), 0 0 28px rgba(56, 189, 248, 0.1);
}
.card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--accent);
}
.card-icon svg { width: 25px; height: 25px; }

.card-highlight { border: 1px solid rgba(56, 189, 248, 0.55); box-shadow: 0 0 32px rgba(56, 189, 248, 0.12); }
.popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
}

.model-desc { margin-bottom: 18px; }
.check-list { list-style: none; }
.check-list li { font-size: 14.5px; color: #c2cede; padding: 7px 0 7px 30px; position: relative; }
.check-list li::before {
  content: '▸'; position: absolute; left: 4px; top: 7px;
  color: var(--accent); font-weight: 700;
}
.pricing-note { text-align: center; margin-top: 38px; color: var(--muted); }
.pricing-note a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ---------- Why us ---------- */
.why-item {
  padding: 30px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.why-item:hover { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 0 28px rgba(56, 189, 248, 0.08); }
.why-num { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 12px; letter-spacing: 0.1em; }
.why-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.why-item p { color: var(--muted); font-size: 15px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step {
  padding: 26px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step:hover { border-color: rgba(56, 189, 248, 0.45); transform: translateY(-4px); }
.step-num {
  display: inline-block; font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px; border-radius: 8px; margin-bottom: 16px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- Work cards ---------- */
.work-tag {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.work-stack { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.work-stack span {
  font-family: var(--mono); font-size: 12px;
  background: rgba(56, 189, 248, 0.06); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 8px; color: var(--muted);
}

/* ---------- Testimonials ---------- */
.quote-text { font-size: 16.5px; font-style: italic; color: #d4deec; margin-bottom: 18px; line-height: 1.75; }
.quote-author { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.open { border-color: rgba(56, 189, 248, 0.4); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--ink); font-family: var(--font);
}
.faq-plus { font-size: 24px; font-weight: 300; color: var(--accent); transition: transform 0.25s ease; flex-shrink: 0; font-family: var(--mono); }
.faq-item.open .faq-plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 24px 24px; color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-section {
  background:
    radial-gradient(700px 400px at 50% 100%, rgba(56, 189, 248, 0.08), transparent 65%),
    transparent;
}
.contact-form {
  background: rgba(7, 12, 22, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 18px; padding: 42px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: #c2cede; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink); font-size: 15px; font-family: var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #5a6a82; }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.form-field textarea { resize: vertical; }
.form-alt { text-align: center; margin-top: 20px; color: var(--muted); font-size: 14.5px; }
.form-alt a { color: var(--accent); font-weight: 600; text-decoration: none; font-family: var(--mono); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: #020409; border-top: 1px solid var(--line); padding: 60px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 44px; }
.footer-brand p { font-size: 14.5px; margin-top: 16px; color: var(--muted); }
.footer-links { display: flex; gap: 64px; }
.footer-title { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 16px; }
.footer-links a { display: block; color: var(--muted); text-decoration: none; font-size: 14.5px; margin-bottom: 10px; transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 24px; font-size: 13px; color: var(--muted); font-family: var(--mono); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .terminal { max-width: 560px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(4, 7, 14, 0.97); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 460px; }
  .nav-links a { padding: 15px 24px; border-top: 1px solid var(--line); }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 22px; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .hero { padding: 140px 0 90px; }
  .hero-points { gap: 26px; }
  .hero-scroll { display: none; }
}
