/* ---------- Tokens ---------- */
:root {
  --teal: #01a49d;
  --teal-dark: #087974;
  --teal-soft: #e3f5f4;
  --blue: #2f7cf6;
  --violet: #7c5cff;
  --red: #e5483d;
  --whatsapp: #25d366;

  --ink: #0b1514;
  --ink-2: #13201f;
  --muted: #55625f;
  --line: #e2e8e7;
  --bg: #fafbfb;
  --surface: #ffffff;

  --gradient: linear-gradient(100deg, var(--teal) 0%, var(--blue) 55%, var(--violet) 100%);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(11 21 20 / 0.04), 0 10px 30px -14px rgb(11 21 20 / 0.14);
  --shadow-hover: 0 2px 4px rgb(11 21 20 / 0.05), 0 24px 48px -20px rgb(1 164 157 / 0.35);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.eyebrow::before { content: "// "; opacity: 0.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform 0.2s ease; }
.btn:hover svg:last-child { transform: translateX(2px); }

.btn-sm { min-height: 38px; padding: 0.5rem 1rem; font-size: 0.925rem; }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(11 21 20 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.btn-primary:hover { background: var(--teal-dark); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--teal-dark); }

.btn-ghost {
  background: rgb(255 255 255 / 0.7);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--whatsapp); }
.wa-icon { color: var(--whatsapp); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--teal-soft); }

.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / 0.3); }
.btn-outline-light:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(250 251 251 / 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgb(226 232 231 / 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand img { width: 100px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-image:
    linear-gradient(rgb(11 21 20 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(11 21 20 / 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-bg::before { top: -120px; right: 5%; background: var(--teal); }
.hero-bg::after { top: 120px; right: 25%; background: var(--violet); opacity: 0.22; animation-delay: -9s; }

@keyframes drift {
  to { transform: translate(-60px, 40px) scale(1.1); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.badge:hover { border-color: var(--teal); color: var(--ink); }

.badge-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  font-weight: 700;
}

.lead {
  max-width: 34rem;
  margin: 1.5rem 0 2.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Console mock-up */
.hero-visual {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin-inline: auto;
}

.console {
  position: relative;
  border-radius: var(--radius);
  background: var(--ink);
  color: #e6efee;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.06) inset,
    0 40px 80px -30px rgb(11 21 20 / 0.55),
    0 0 0 8px rgb(255 255 255 / 0.6);
  overflow: hidden;
}

.console::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgb(124 92 255 / 0.22), transparent 45%),
              radial-gradient(circle at 0% 100%, rgb(1 164 157 / 0.22), transparent 50%);
  pointer-events: none;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.console-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
}
.console-bar p {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgb(230 239 238 / 0.5);
}

.console-body {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  font-size: 0.9rem;
}

.msg-user {
  justify-self: end;
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px 14px 4px 14px;
  background: rgb(255 255 255 / 0.1);
}

.msg-ai {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
}

.ai-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
}

.msg-ai strong { color: #fff; }

.mini-table {
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.mini-table li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
}
.mini-table li + li { border-top: 1px solid rgb(255 255 255 / 0.06); }
.mini-table li span:last-child { color: #7fe3dd; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgb(1 164 157 / 0.18);
  color: #9beee8;
  font-size: 0.75rem;
}

.console-input {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 12px;
  color: rgb(230 239 238 / 0.45);
  font-size: 0.85rem;
}
.caret {
  width: 2px;
  height: 1em;
  background: var(--teal);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.825rem;
  font-weight: 600;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-a { top: -18px; left: -28px; }
.float-b { bottom: -18px; right: -20px; animation-delay: -3s; }

@keyframes bob { 50% { transform: translateY(-8px); } }

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--teal);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { to { transform: scale(3); opacity: 0; } }

/* Tech strip */
.stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Section heads ---------- */
.section-head {
  max-width: 680px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

/* ---------- Services ---------- */
.services { padding-block: clamp(4rem, 9vw, 7rem); }

.ai-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(1rem, 2.5vw, 1.25rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--ink);
  color: #e6efee;
  overflow: hidden;
  isolation: isolate;
}

.ai-card-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 0% 0%, rgb(1 164 157 / 0.28), transparent 55%),
    radial-gradient(500px circle at 100% 100%, rgb(124 92 255 / 0.25), transparent 55%);
}

.ai-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgb(1 164 157 / 0.6), transparent 40%, rgb(124 92 255 / 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.ai-card h3 {
  margin: 1.25rem 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #fff;
}

.ai-card p { color: rgb(230 239 238 / 0.75); }

.ai-card .service-icon {
  background: var(--gradient);
  color: #fff;
}

.ai-list {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-list li {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.04);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ai-list li:hover {
  background: rgb(255 255 255 / 0.07);
  border-color: rgb(1 164 157 / 0.5);
}
.ai-list strong { color: #fff; font-weight: 600; }
.ai-list span { font-size: 0.9rem; color: rgb(230 239 238 / 0.65); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgb(1 164 157 / 0.35);
  box-shadow: var(--shadow-hover);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.service-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: rgb(11 21 20 / 0.35);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 650;
}

.service-card p {
  color: var(--muted);
  font-size: 0.96rem;
  hyphens: auto;
}

/* ---------- Method ---------- */
.method {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line);
}

.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--gradient);
}

.step-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--teal-dark);
}

.step h3 {
  margin: 0.6rem 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 650;
}

.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta { padding-block: clamp(4rem, 8vw, 6rem); }

.cta-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) + 8px);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.cta-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(500px circle at 85% 0%, rgb(124 92 255 / 0.35), transparent 60%),
    radial-gradient(500px circle at 10% 120%, rgb(1 164 157 / 0.45), transparent 60%);
}

.cta-card h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
}

.cta-card p {
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 0.7);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-inner img { width: 92px; }

.site-footer address {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-style: normal;
  font-size: 0.925rem;
  color: var(--muted);
}

.site-footer address a {
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer address a:hover { color: var(--teal-dark); }

/* ---------- Scroll reveal (progressive enhancement, no JS) ---------- */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .ai-card { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
}

@media (max-width: 700px) {
  .service-grid { grid-template-columns: 1fr; }
  .float-a { left: -6px; }
  .float-b { right: -6px; }
}

@media (max-width: 520px) {
  .hide-sm { display: none; }
  .steps { grid-template-columns: 1fr; }
  .hero .actions .btn,
  .cta .actions,
  .cta .actions .btn { width: 100%; }
  .site-footer address { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
