/* ============================================================
   TERAZUL — Stylesheet
   ============================================================ */

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

:root {
  --bg:              #06091a;
  --surface:         #0c1130;
  --border:          rgba(255, 255, 255, 0.08);
  --primary:         #3b82f6;
  --primary-hover:   #2563eb;
  --primary-light:   rgba(59, 130, 246, 0.12);
  --accent:          #60a5fa;
  --grad-start:      #3b82f6;
  --grad-end:        #8b5cf6;
  --text:            #f1f5f9;
  --text-muted:      #94a3b8;
  --text-faint:      #475569;
  --radius:          12px;
  --radius-lg:       20px;
  --ease:            0.2s ease;
  --shadow-glow:     0 0 40px rgba(59, 130, 246, 0.18);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p  { color: var(--text-muted); line-height: 1.8; }
a  { text-decoration: none; color: inherit; }

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

.section { padding: 100px 0; }
.section--alt { background: var(--surface); }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__header h2  { margin: 12px 0 16px; }
.section__header p   { max-width: 520px; margin: 0 auto; }

/* ---- Badge ---- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--primary-light);
  border: 1px solid rgba(59, 130, 246, 0.28);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ---- Gradient text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}

.btn--sm  { font-size: 0.82rem; padding: 6px 14px; }
.btn--lg  { font-size: 1rem; padding: 14px 28px; }

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--ease), border-color var(--ease);
}

.nav.scrolled {
  background: rgba(6, 9, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
}
.nav__links a:hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all var(--ease);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Subtle grid mesh overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.18;
}
.hero__glow--1 {
  width: 640px;
  height: 640px;
  background: #3b82f6;
  top: -120px;
  right: -80px;
}
.hero__glow--2 {
  width: 420px;
  height: 420px;
  background: #8b5cf6;
  bottom: 0;
  left: -60px;
}

.hero__content {
  position: relative;
  max-width: 800px;
  padding: 130px 0 80px;
}

.hero__title   { margin-bottom: 24px; }
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Grid ---- */
.grid--2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}
.card h3 { margin-bottom: 10px; }

/* ---- About ---- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: center;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.stat__number {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label {
  display: block;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
}

.about__content h2          { margin: 12px 0 20px; }
.about__content p           { margin-bottom: 16px; }
.about__content p:last-of-type { margin-bottom: 32px; }

/* ---- Contact ---- */
.contact {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.contact h2 { margin: 12px 0 16px; }
.contact p  { margin-bottom: 40px; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer__copy {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav__links  { display: none; }
  .nav__toggle { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    inset: 0;
    top: 64px;
    background: var(--bg);
    padding: 32px 24px;
    gap: 24px;
    border-top: 1px solid var(--border);
  }

  .grid--2 { grid-template-columns: 1fr; }

  .about {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero__actions       { flex-direction: column; }
  .hero__actions .btn  { width: 100%; justify-content: center; }

  .footer__inner { flex-direction: column; text-align: center; }
}
