/* ═══════════════════════════════════════════════════════
   FULLTREINA — Immersive Dark-Tech Design System
   Inspired by Antigravity / Google's visual language
   ═══════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Palette */
  --black:       #09090b;
  --graphite:    #18181b;
  --graphite-l:  #27272a;
  --slate:       #3f3f46;
  --muted:       #a1a1aa;
  --light:       #e4e4e7;
  --white:       #fafafa;
  --accent:      #3b82f6;
  --accent-deep: #2563eb;
  --teal:        #06b6d4;
  --accent-glow: rgba(59, 130, 246, 0.25);

  /* Surfaces */
  --bg:          #09090b;
  --bg-card:     rgba(24, 24, 27, 0.6);
  --glass:       rgba(9, 9, 11, 0.8);
  --border:      rgba(63, 63, 70, 0.4);
  --border-hover:rgba(59, 130, 246, 0.5);

  /* Layout */
  --max-w: 1400px;

  /* Motion */
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --tr:    all 0.5s var(--ease);
  --tr-fast: all 0.3s var(--ease);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
  font-family: "Outfit", sans-serif;
  line-height: 1.1;
  color: var(--white);
}

h2 { font-weight: 700; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--tr-fast);
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* ─── Utility ─── */
.accent-text {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.centered { text-align: center; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 60px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--tr);
  letter-spacing: 0.02em;
}

.btn-sm { padding: 0.6rem 1.5rem; font-size: 0.85rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: white;
  box-shadow: 0 4px 30px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(59,130,246,0.45);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59,130,246,0.08);
}

.btn-block { display: block; width: 100%; }

/* ═══════════════════ HEADER ═══════════════════ */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--tr);
}

header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.2);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
}
.logo span { color: var(--accent); }

.nav-links {
  display: none;
  list-style: none;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--tr-fast);
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
}
.nav-cta { display: none; }
@media (min-width: 960px) {
  .nav-cta { display: inline-flex; }
}

/* Mobile nav */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--bg);
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 999;
}
.nav-links.open a { font-size: 1.5rem; color: var(--white); }

/* ═══════════════════ 1. HERO ═══════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(59,130,246,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(6,182,212,0.06) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  padding-top: 1rem;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
  min-height: 4em;
  line-height: 1.2;
}

.hero-title .word {
  display: inline;
}
.hero-title .word.accent {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typewriter-wrapper {
  display: inline;
}

.typewriter-cursor {
  display: inline-block;
  font-weight: 300;
  color: var(--accent);
  margin-left: 2px;
  animation: blinkCursor 1s infinite step-end;
  vertical-align: baseline;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 2;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════════ 2. ABOUT ═══════════════════ */
#about {
  padding: 10rem 0;
}

.about-quote {
  text-align: center;
  margin-bottom: 5rem;
}
.about-quote h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1.2fr 0.8fr; }
}

.about-text p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.about-text strong { color: var(--white); }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: var(--tr);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(59,130,246,0.1);
}
.stat-card h3 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}
.stat-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ═══════════════════ SECTION COMMON ═══════════════════ */
section {
  padding: 8rem 0;
  position: relative;
}

.section-label {
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent);
  border-radius: 60px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid rgba(59,130,246,0.15);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 4rem;
}

/* ═══════════════════ 3. SPECIALTIES ═══════════════════ */
#specialties {
  padding: 10rem 0;
}

.specialties-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 960px) {
  .specialties-grid { grid-template-columns: repeat(3, 1fr); }
}

.specialty-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: var(--tr);
  overflow: hidden;
}
.specialty-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59,130,246,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.specialty-card:hover::before { opacity: 1; }
.specialty-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px var(--accent-glow);
}

.card-accent-line {
  position: absolute;
  top: 0; left: 2rem; right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.specialty-card:hover .card-accent-line { opacity: 1; }

.card-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.08);
  border-radius: 16px;
  border: 1px solid rgba(59,130,246,0.15);
}

.specialty-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.specialty-card ul {
  list-style: none;
  margin-bottom: 2rem;
}
.specialty-card li {
  padding: 0.4rem 0 0.4rem 1.8rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}
.specialty-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.card-result {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin: 0;
  font-style: italic;
}

/* ═══════════════════ 4. DIFFERENTIALS / STATEMENTS ═══════════════════ */
#differentials {
  padding: 6rem 0 0;
  position: relative;
  overflow: hidden;
}

#differentials-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.differentials-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 80%, rgba(6,182,212,0.04) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

#differentials .container,
#differentials .statements-wrapper {
  position: relative;
  z-index: 2;
}

.statements-wrapper {
  position: relative;
}

.statement {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.statement p {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  text-align: center;
  color: var(--white);
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.8s var(--ease);
  max-width: 900px;
  margin: 0;
}
.statement.in-view p {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Gradient line between statements */
.statement + .statement::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -30vh;
}

/* ═══════════════════ 5. FOR WHOM ═══════════════════ */
#for-whom {
  padding: 10rem 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.audience-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: var(--tr);
  font-weight: 600;
  font-size: 0.95rem;
}
.audience-card i {
  font-size: 1.3rem;
  color: var(--accent);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.08);
  border-radius: 12px;
  flex-shrink: 0;
}
.audience-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: rgba(59,130,246,0.06);
}

/* ═══════════════════ 6. SOCIAL PROOF ═══════════════════ */
#social-proof {
  padding: 10rem 0;
}

.proof-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 768px) {
  .proof-grid { grid-template-columns: 1.2fr 0.8fr; }
}

.testimonials-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.testimonial-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}
.quote-mark {
  font-family: "Outfit", sans-serif;
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: -1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.author-avatar {
  width: 48px; height: 48px;
  background: rgba(59,130,246,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.testimonial-author strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
}
.testimonial-author span {
  font-size: 0.85rem;
  color: var(--muted);
}

.proof-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.proof-stat {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--tr);
}
.proof-stat:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.proof-stat h3 {
  font-size: 3rem;
  font-weight: 800;
  display: inline;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.proof-stat span {
  font-family: "Outfit", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.proof-stat p { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 0; }

/* ═══════════════════ 7. AUTHORITY ═══════════════════ */
#authority {
  padding: 10rem 0;
}

.authority-block {
  background: linear-gradient(135deg, rgba(24,24,27,0.8), rgba(9,9,11,0.9));
  backdrop-filter: blur(20px);
  padding: clamp(3rem, 6vw, 5rem);
  border-radius: 32px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.authority-block::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--teal), transparent);
}

.authority-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 3rem;
  max-width: 800px;
}

.authority-content {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .authority-content { grid-template-columns: 1fr 1fr; }
}
.authority-col p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.authority-col strong { color: var(--white); }

/* ═══════════════════ 8. CONTACT ═══════════════════ */
#contact {
  padding: 10rem 0;
}

.contact-grid {
  display: grid;
  gap: 4rem;
  align-items: start;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
}
.contact-info p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--tr);
}
.social-btn:hover {
  border-color: var(--border-hover);
  color: var(--accent);
}
.social-btn.whatsapp:hover { border-color: #25d366; color: #25d366; }
.social-btn.linkedin:hover { border-color: #0a66c2; color: #0a66c2; }

.contact-form-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(24,24,27,0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--tr-fast);
}
.form-group input::placeholder { color: var(--slate); }
.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group select option { background: var(--graphite); }

/* ═══════════════════ FOOTER ═══════════════════ */
footer {
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand p {
  color: var(--muted);
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-nav h4, .footer-contact h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.footer-nav a, .footer-contact a {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--slate);
  font-size: 0.85rem;
}

/* ═══════════════════ SCROLL REVEAL ANIMATIONS ═══════════════════ */
.reveal-word {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-word.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-fade.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-slide-up.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 640px) {
  .hero-title { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; gap: 1rem; }
  .hero-btns .btn { width: 100%; }
  section { padding: 5rem 0; }
  .specialty-card { padding: 2rem; }
  .statement { min-height: 40vh; }
  .statement p { font-size: 2rem; }
  .testimonial-card { padding: 2rem; }
  .contact-form-wrapper { padding: 2rem; }
  .authority-block { padding: 2rem; }
}
