/* ============================================================
   SMARTINTELIA — Dark theme
   ============================================================ */

:root {
  --bg:          #0a0a0b;
  --bg-wash:     #0f0f11;
  --bg-card:     #111114;
  --fg:          #f0f0f0;
  --fg-dim:      #9898a6;
  --fg-muted:    #5a5a6e;
  --border:      rgba(255,255,255,0.07);
  --border-hi:   rgba(255,255,255,0.14);
  --accent:      #6366f1;
  --accent2:     #a78bfa;
  --max:         1100px;
  --r:           12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 680px; }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10,10,11,0.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-logo-img {
  height: 76px;
  width: auto;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s;
}
.nav-link:hover { color: var(--fg); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  line-height: 1;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  box-shadow: 0 0 20px rgba(99,102,241,0.25);
}
.btn-primary:hover {
  box-shadow: 0 0 28px rgba(99,102,241,0.38);
}
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-hi);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.03);
}
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---- MOBILE MENU ---- */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 4px;
  align-items: center;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  background: var(--bg-wash);
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.mobile-menu a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}
.mobile-menu a:last-child { border-bottom: none; padding-top: 8px; }
.mobile-menu.open { display: flex; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-link { display: none; }
  .nav-right > .btn-primary { display: none; }
}

/* ---- GRADIENT TEXT ---- */
.accent-gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- EYEBROW ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  flex-shrink: 0;
}
.dash {
  flex: 1;
  height: 1px;
  background: var(--border-hi);
  max-width: 48px;
}

/* ---- TYPE SCALE ---- */
.h-display {
  font-size: clamp(42px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.14;
}
.h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.lede {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* ---- SECTION BASE ---- */
.section { padding: 88px 0; position: relative; }
.section--wash { background: var(--bg-wash); }
.section--aurora { overflow: hidden; }
.section--aurora::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.section-head { margin-bottom: 44px; }

/* ---- SEPARATORS ---- */
.grad-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 25%, var(--border) 75%, transparent);
  margin: 0;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 40% -5%, rgba(99,102,241,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 65%, rgba(167,139,250,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 45% 25%, black 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 45% 25%, black 10%, transparent 100%);
  pointer-events: none;
}
.hero-bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 140px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero-title { line-height: 1.04; }
.hero-copy > p {
  font-size: 18px;
  color: var(--fg-dim);
  line-height: 1.65;
  max-width: 460px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--fg) 40%, var(--fg-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl { font-size: 12px; color: var(--fg-muted); font-weight: 500; letter-spacing: 0.02em; }

.hero-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-hi);
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.1),
    0 0 60px rgba(99,102,241,0.18),
    0 24px 64px rgba(0,0,0,0.55);
}
.portrait {
  width: 300px;
  height: 390px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--fg-muted), transparent);
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* ---- TRUSTED MARQUEE ---- */
.trusted { padding: 40px 0; }
.trusted-head { text-align: center; margin-bottom: 24px; }
.trusted-label {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.tline {
  width: 48px;
  height: 1px;
  background: var(--border-hi);
  flex-shrink: 0;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-dim);
  padding: 0 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.marquee-sep {
  color: var(--fg-muted);
  font-size: 11px;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 8px 36px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}

/* Platform cards */
.platform-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}
.platform-card > div:nth-child(2) { flex: 1; min-width: 0; }
.platform-card p {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin: 0;
}
.stat-line {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.card-arrow {
  color: var(--fg-muted);
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.2s, transform 0.15s;
}
.platform-card:hover .card-arrow {
  color: var(--fg);
  transform: translate(2px, -2px);
}

/* Icon tile */
.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--fg-dim);
}
.icon-tile-lg {
  width: 56px;
  height: 56px;
}

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

/* ---- HONORS / BENTO ---- */
.honors-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.proceso-bento {
  grid-template-columns: repeat(2, 1fr);
}
.honor-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.honor-card-hero {
  grid-column: span 2;
  grid-row: span 2;
  padding: 32px;
}
.honor-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.honor-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.honor-card h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.honor-card-hero h4 { font-size: 24px; }
.sub {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 6px;
  line-height: 1.5;
}
.honor-card-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.2s;
}
.honor-card:hover .honor-card-accent { opacity: 1; }

/* ---- DECORATIVE ---- */
.grid-horizon {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.25;
  pointer-events: none;
}
.starfield {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.1) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 75%, rgba(255,255,255,0.08) 0%, transparent 100%);
  pointer-events: none;
}

/* ---- BIO ---- */
.bio-text {
  color: var(--fg-dim);
  font-size: 16.5px;
  line-height: 1.72;
}
.bio-text p + p { margin-top: 18px; }

/* ---- CONTACT ---- */
.contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(99,102,241,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.contact-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.contact-form-full {
  flex-direction: column;
  max-width: 560px;
  gap: 14px;
  text-align: left;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-dim);
  letter-spacing: 0.01em;
}
.label-opt {
  font-weight: 400;
  color: var(--fg-muted);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-hi);
  background: rgba(255,255,255,0.05);
  color: var(--fg);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(99,102,241,0.06);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--fg-muted); }
.btn-full { width: 100%; justify-content: center; margin-top: 4px; padding: 13px 18px; font-size: 15px; }
.form-note {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 14px;
}
.form-success-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 0 16px;
  color: var(--accent2);
}
.form-success {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}
.form-success-sub {
  font-size: 15px;
  color: var(--fg-dim);
  margin: 0;
}
.form-success-sub strong { color: var(--fg); font-weight: 600; }

@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.social-row { display: flex; gap: 8px; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--fg-dim);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.social-btn:hover {
  border-color: var(--border-hi);
  color: var(--fg);
  background: rgba(255,255,255,0.04);
}
.copyright {
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-legal-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-legal-link {
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-legal-link:hover { color: var(--fg-dim); }
.footer-legal-sep {
  font-size: 11px;
  color: var(--fg-muted);
  opacity: 0.5;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 100px;
    text-align: center;
  }
  .hero-photo { order: -1; }
  .portrait { width: 220px; height: 286px; }
  .portrait-frame { margin: 0 auto; }
  .hero-copy > p { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .eyebrow { justify-content: center; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .honors-bento { grid-template-columns: 1fr 1fr; }
  .proceso-bento { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .honors-bento, .proceso-bento { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; flex-direction: column; }
  .hero-stats { gap: 24px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .contact-form { flex-direction: column; }
  .contact-form button { width: 100%; justify-content: center; }
  .section { padding: 64px 0; }
}
