/* ==============================================
   TAWI.AI — Dark Minimal
   ============================================== */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --green: #22c55e;
  --green-dim: #166534;
  --green-glow: rgba(34,197,94,0.08);
  --amber: #eab308;
  --blue: #60a5fa;
  --text: #e5e5e5;
  --text-mid: #888888;
  --text-dim: #555555;
  --white: #ffffff;

  --mono: 'Space Mono', 'SF Mono', 'Fira Code', monospace;
  --sans: 'DM Sans', system-ui, sans-serif;

  --space: clamp(80px, 10vw, 140px);
  --container: 1040px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.05s; } .d2 { transition-delay: 0.1s; }
.d3 { transition-delay: 0.15s; } .d4 { transition-delay: 0.2s; }
.d5 { transition-delay: 0.25s; } .d6 { transition-delay: 0.35s; }

/* ==============================================
   NAV
   ============================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: all 0.3s;
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 1.1rem; font-weight: 700;
  color: var(--white);
}
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--green);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.85rem; font-weight: 700;
  border-radius: 6px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--text-mid); transition: color 0.3s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--green) !important;
  color: var(--bg) !important;
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { width: 20px; height: 1.5px; background: var(--white); transition: all 0.3s; }

/* ==============================================
   HERO
   ============================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-dim);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero-title span { display: block; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 12px; }

/* Terminal */
.terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-dim); }
.terminal-dot:first-child { background: #ef4444; }
.terminal-dot:nth-child(2) { background: #eab308; }
.terminal-dot:nth-child(3) { background: #22c55e; }
.terminal-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}
.terminal-body { padding: 20px; font-family: var(--mono); font-size: 0.78rem; line-height: 1.8; }
.terminal-line { white-space: nowrap; overflow: hidden; }
.t-prompt { color: var(--green); }
.t-text { color: var(--text); }
.t-muted { color: var(--text-dim); }
.t-green { color: var(--green); }
.t-accent { color: var(--amber); }
.t-blue { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px;
  font-size: 0.88rem; font-weight: 600;
  border-radius: 10px;
  background: var(--green);
  color: var(--bg);
  transition: all 0.3s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(34,197,94,0.2); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--text-mid); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline:hover { border-color: var(--green); color: var(--green); }

/* ==============================================
   SECTIONS
   ============================================== */
.section { padding: var(--space) 0; }
.section--dark { background: var(--bg-elevated); }

.tag {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}

.heading {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.heading--light { color: var(--white); }

.section-intro {
  max-width: 500px;
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 48px;
}

.body-text { font-size: 1rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 24px; }

/* ==============================================
   FEATURES
   ============================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
}
.feature:hover { border-color: var(--border-hover); }
.feature-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green); margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.feature p { font-size: 0.86rem; color: var(--text-mid); line-height: 1.6; }

/* ==============================================
   HOW IT WORKS
   ============================================== */
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.mode {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.mode-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.mode h3 { font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.mode p { font-size: 0.86rem; color: var(--text-mid); line-height: 1.6; }

/* ==============================================
   MODELS
   ============================================== */
.wells {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
.well {
  text-align: center;
  padding: 24px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}
.well:hover { border-color: var(--green-dim); background: var(--green-glow); }
.well-role {
  display: block;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}
.well-desc { font-size: 0.72rem; color: var(--text-dim); }

.model-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.model-feature {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.model-feature h3 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.model-feature p { font-size: 0.84rem; color: var(--text-mid); line-height: 1.6; }

/* ==============================================
   PRICING
   ============================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.price-card {
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  border-color: var(--green-dim);
  background: var(--green-glow);
}
.price-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.price {
  font-size: 2.8rem; font-weight: 700; color: var(--white);
  line-height: 1; margin-bottom: 8px;
}
.price span { font-size: 1rem; font-weight: 400; color: var(--text-mid); }
.price-desc { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 24px; }
.price-card ul { margin-bottom: 28px; flex: 1; }
.price-card li {
  font-size: 0.84rem; color: var(--text-mid);
  padding: 6px 0 6px 18px; position: relative;
}
.price-card li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); opacity: 0.5;
}
.price-card .btn { width: 100%; }

/* ==============================================
   CTA
   ============================================== */
.cta-section { text-align: center; }
.cta-inner { max-width: 560px; }
.cta-inner .heading { margin-bottom: 16px; }
.cta-inner .hero-actions { justify-content: center; }

/* ==============================================
   FOOTER
   ============================================== */
.footer { padding: 40px 0 28px; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: start; gap: 24px;
}
.footer-sub { font-size: 0.8rem; color: var(--text-dim); margin-top: 6px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.8rem; color: var(--text-dim); transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  width: 100%; font-size: 0.72rem; color: var(--text-dim);
  margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--border);
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .features-grid, .modes, .model-features, .pricing-grid { grid-template-columns: 1fr; }
  .wells { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 75%; max-width: 280px; height: 100vh;
    background: var(--bg-elevated);
    flex-direction: column; justify-content: center;
    padding: 40px; gap: 20px;
    transition: right 0.3s;
    box-shadow: -8px 0 30px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
  .nav-toggle.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .wells { grid-template-columns: repeat(2, 1fr); }
  .terminal-body { font-size: 0.68rem; overflow-x: auto; }

  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
}
