:root {
  --bg: #0a0f1c;
  --surface: #0e1424;
  --line: #1c2438;
  --ink: #e7ecf5;
  --muted: #8492a9;
  --brand: #00b4d8;
  --ember: #f97316;
  --whatsapp: #25d366;
  --ink-on-brand: #031019;
  --container: 1120px;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Grain texture — flat color, no gradient */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* Scroll progress bar */
/*.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--brand);
  z-index: 100;
}*/

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled {
  background: rgba(10, 15, 28, 0.88);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  color: var(--brand);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
}

/* Hero — asymmetric grid */
.hero {
  padding: 120px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ember);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 8px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Index strip under hero */
.hero-meta {
  margin-top: 64px;
}

.index-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.index-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.index-list li + li {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.index-list .mono {
  color: var(--brand);
}

/* Buttons & links — flat, squared, borders not shadows */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink-on-brand);
}

.btn-primary:hover {
  background: transparent;
  color: var(--brand);
}

.btn-whatsapp {
  background: transparent;
  border-color: var(--whatsapp);
  color: var(--whatsapp);
}

.btn-whatsapp:hover {
  background: var(--whatsapp);
  color: var(--ink-on-brand);
}

.link-arrow {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s ease;
}

.link-arrow:hover {
  color: var(--ink);
}

/* Sections — varied vertical rhythm */
.section {
  padding: 0;
}

.section-head {
  margin-bottom: 44px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 56ch;
}

/* Services — numbered border rows, not cards */
.services {
  padding: 104px 0;
}

.services-list {
  list-style: none;
}

.service {
  display: grid;
  grid-template-columns: 72px 1.1fr 1.4fr;
  gap: 24px;
  align-items: baseline;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.service:last-child {
  border-bottom: 1px solid var(--line);
}

.service-num {
  color: var(--brand);
  font-size: 0.85rem;
}

.service h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.service p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52ch;
}

.service:hover h3 {
  color: var(--brand);
}

/* About — asymmetric 2-col */
.about {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(32px, 5vw, 72px);
}

.about-copy .lead {
  max-width: 58ch;
}

/* Contact */
.contact {
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-form label .mono {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.form-note {
  font-size: 0.9rem;
  color: var(--brand);
  font-family: var(--mono);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* WhatsApp float — border, no shadow */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg);
  border: 1px solid var(--whatsapp);
  color: var(--whatsapp);
  transition: background 0.15s ease, color 0.15s ease;
}

.whatsapp-float:hover {
  background: var(--whatsapp);
  color: var(--ink-on-brand);
}

/* Reveal on scroll (class added via JS) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--d, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 820px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 88px 0 56px;
  }

  .hero-meta {
    margin-top: 48px;
  }

  .index-list {
    grid-template-columns: 1fr;
  }

  .index-list li + li {
    border-left: none;
    padding-left: 0;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
