/* --- Variables --- */
:root {
  --bg: #0a0b0d;
  --bg-card: #12141a;
  --bg-elevated: #181b22;
  --text: #e8eaed;
  --text-muted: #8b8f99;
  --accent: #00d4aa;
  --accent-dim: #00a884;
  --accent-glow: rgba(0, 212, 170, 0.25);
  --border: #2a2d36;
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Unbounded', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.logo:hover { text-decoration: none; color: var(--accent); }
.logo-bracket { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.nav a:hover { color: var(--text); text-decoration: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 8px 16px; font-size: 0.85rem; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  text-decoration: none;
  color: var(--bg);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-full { width: 100%; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 70%);
  opacity: 0.4;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #00ffcc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-stack span {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* --- Sections --- */
section {
  padding: 80px 0;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 40px;
  text-align: center;
}

/* --- Services --- */
.services { background: var(--bg-card); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--text);
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Why --- */
.why-list {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.why-list li {
  padding: 20px 24px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.why-list li strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

/* --- Cases --- */
.cases { background: var(--bg-card); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.case-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}
.case-card:hover { border-color: var(--accent); }

.case-placeholder {
  height: 160px;
  background: linear-gradient(135deg, var(--border) 0%, var(--bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.case-card p {
  padding: 20px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.case-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.case-card-link:hover { color: inherit; text-decoration: none; }

/* --- Subpages (bots, sites, automation) --- */
.sub-hero {
  padding: 120px 0 60px;
}
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.back-link:hover { color: var(--accent); text-decoration: none; }
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 12px;
}
.page-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
}
.content-section { padding: 40px 0 80px; }
.content-section .section-title { text-align: left; margin-bottom: 24px; }

.work-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}
.work-item { margin-bottom: 12px; }
.work-link {
  display: block;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.2s;
}
.work-link:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.work-link strong {
  display: block;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1rem;
}

.site-showcase { margin-bottom: 48px; }
.site-card {
  display: block;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.site-card:hover { border-color: var(--accent); color: inherit; text-decoration: none; }
.site-card-preview {
  height: 180px;
  background: linear-gradient(135deg, var(--border) 0%, var(--bg-elevated) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-muted);
}
.site-card h3 {
  padding: 20px 24px 0;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
}
.site-card p {
  padding: 0 24px 16px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.site-card-link {
  display: inline-block;
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--accent);
}

.cta-block {
  text-align: center;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cta-block p { margin: 0 0 20px; font-size: 1rem; color: var(--text-muted); }
.cta-block.cta-block-large {
  padding: 48px 32px;
  border-color: rgba(0, 212, 170, 0.3);
  background: rgba(0, 212, 170, 0.05);
}
.cta-block-large p { font-size: 1.1rem; margin-bottom: 24px; }

/* Subpage: value props, pricing, promise */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.benefit-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--text);
}
.benefit-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.pricing-block {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
}
.pricing-block h2 { margin-bottom: 16px; }
.pricing-block p { margin: 0 0 12px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.pricing-block p:last-child { margin-bottom: 0; }

.promise-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.promise-item {
  padding: 24px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.promise-item .promise-emoji { font-size: 2rem; margin-bottom: 12px; display: block; }
.promise-item strong { display: block; margin-bottom: 8px; color: var(--accent); font-size: 1rem; }
.promise-item span { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* --- Contact --- */
.contact-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 40px;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 20px;
}

.contact-form label span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button { margin-top: 8px; }

.contact-alt {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact-alt p { margin: 0 0 8px; }
.contact-link { margin: 0 4px; }
.sep { margin: 0 8px; opacity: 0.5; }

/* --- Footer --- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Form success message --- */
.form-success {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: var(--radius-lg);
  color: var(--accent);
  display: none;
}
.form-success.visible { display: block; }

/* --- Mobile --- */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .burger { display: flex; }

  .form-row { grid-template-columns: 1fr; }

  .hero { padding-top: 100px; }
  .hero-cta { flex-direction: column; }
}
