/* ============================================================
   INF Digital | Global Design System
   Dark · Futuristic · Premium
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ── CSS Variables ── */
:root {
  /* Colors */
  --bg-primary:     #0C1829;
  --bg-secondary:   #101F35;
  --bg-card:        #152640;
  --bg-card-hover:  #1B2E50;

  --accent-cyan:    #00D4FF;
  --accent-blue:    #0047CC;
  --accent-mid:     #0088DD;
  --accent-glow:    rgba(0, 212, 255, 0.20);
  --accent-glow-strong: rgba(0, 212, 255, 0.40);

  --gradient-primary: linear-gradient(135deg, #00D4FF 0%, #0088DD 50%, #0047CC 100%);
  --gradient-text:    linear-gradient(135deg, #00D4FF, #0088DD);
  --gradient-border:  linear-gradient(135deg, rgba(0,212,255,0.5), rgba(0,71,204,0.2));

  --text-primary:   #FFFFFF;
  --text-secondary: #92B8D0;
  --text-muted:     #526D85;
  --text-dim:       #3D5870;

  --border:         rgba(0, 212, 255, 0.13);
  --border-hover:   rgba(0, 212, 255, 0.33);
  --border-strong:  rgba(0, 212, 255, 0.55);

  --glass-bg:       rgba(12, 24, 41, 0.75);
  --glass-border:   rgba(0, 212, 255, 0.15);

  /* Typography */
  --font-display:   'Space Grotesk', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-mono:      'Space Mono', monospace;

  /* Spacing */
  --section-pad:    120px;
  --section-pad-sm: 80px;
  --container:      1320px;
  --nav-h:          80px;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Shadows / Glows */
  --glow-sm:  0 0 20px rgba(0, 212, 255, 0.15);
  --glow-md:  0 0 45px rgba(0, 212, 255, 0.20);
  --glow-lg:  0 0 80px rgba(0, 212, 255, 0.18);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.2s;
  --t-med:  0.4s;
  --t-slow: 0.7s;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: default;
}

::selection {
  background: rgba(0, 212, 255, 0.25);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-smooth);
}

img { display: block; max-width: 100%; }

ul { list-style: none; }

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s, width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: screen;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-smooth), width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor.hover { width: 6px; height: 6px; }
.cursor-follower.hover { width: 56px; height: 56px; border-color: rgba(0, 212, 255, 0.3); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ── Typography Scale ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-xl {
  font-size: clamp(52px, 7vw, 112px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.display-lg {
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.display-md {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.display-sm {
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.text-cyan { color: var(--accent-cyan); }
.text-muted { color: var(--text-secondary); }
.text-mono { font-family: var(--font-mono); }

/* ── Section Label ── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent-cyan);
}

/* ── ================================================ ──
   NAVIGATION
── ================================================ ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t-med) var(--ease-smooth),
              border-color var(--t-med) var(--ease-smooth),
              box-shadow var(--t-med) var(--ease-smooth);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 10, 20, 0.92);
  border-bottom-color: var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}

.nav__logo-svg {
  width: 40px;
  height: 40px;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--accent-cyan);
  transform: scaleX(0);
  transition: transform var(--t-med) var(--ease-smooth);
}

.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.active { color: var(--accent-cyan); }

/* Nav CTA */
.nav__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: all var(--t-med) var(--ease-smooth);
}

/* ── Mobile nav open state ── */
.nav--open {
  /* Expand nav to fill entire screen */
  bottom: 0 !important;
  height: 100% !important;
  background: rgb(5, 10, 24) !important;
  overflow: hidden;
}

.nav--open .nav__links {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: transparent;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  animation: mobileMenuIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav--open .nav__links li {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav--open .nav__links .nav__link {
  display: block;
  padding: 22px 32px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav--open .nav__links .nav__link:hover,
.nav--open .nav__links .nav__link.active {
  color: var(--accent-cyan);
}

.nav--open .nav__cta {
  display: flex !important;
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.nav--open .nav__cta .btn {
  padding: 14px 40px;
  font-size: 15px;
}

/* Hamburger → X animation */
.nav--open .nav__hamburger {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 3;
}

.nav--open .nav__hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent-cyan);
}
.nav--open .nav__hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav--open .nav__hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent-cyan);
}

/* ── ================================================ ──
   BUTTONS
── ================================================ ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--t-med) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn:hover::after { opacity: 1; }

/* Primary */
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  padding: 14px 28px;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.45);
  transform: translateY(-1px);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 13px 26px;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  box-shadow: var(--glow-sm);
}

/* Outline Cyan */
.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  padding: 13px 26px;
  border: 1px solid rgba(0, 212, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-sm);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── ================================================ ──
   CANVAS BACKGROUND
── ================================================ ── */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ── ================================================ ──
   HERO SECTION
── ================================================ ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  z-index: 1;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  z-index: 0;
}

.hero__glow-1 {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  z-index: 0;
  pointer-events: none;
}

.hero__glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,71,204,0.12) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,212,255,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0,212,255,0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 12px;
  overflow: hidden;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .word {
  display: inline-block;
  transform: translateY(110%);
}

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

.hero__subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 600px;
  margin: 28px 0 48px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Hero Logo */
.hero__logo-float {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(480px, 45vw);
  opacity: 0;
  z-index: 1;
}

.hero__logo-float img {
  width: 100%;
  filter: drop-shadow(0 0 60px rgba(0, 212, 255, 0.4));
  animation: float-logo 6s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(1deg); }
  66% { transform: translateY(6px) rotate(-0.5deg); }
}

/* ── ================================================ ──
   MARQUEE / TICKER
── ================================================ ── */
.marquee-section {
  position: relative;
  z-index: 2;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 212, 255, 0.02);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.marquee-item span {
  color: var(--accent-cyan);
  font-size: 16px;
  line-height: 1;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── ================================================ ──
   STATS BAR
── ================================================ ── */
.stats-section {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-secondary);
  padding: 40px 36px;
  transition: background var(--t-med);
}

.stat-item:hover { background: var(--bg-card); }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── ================================================ ──
   SERVICES
── ================================================ ── */
.services-section {
  position: relative;
  z-index: 2;
  padding: var(--section-pad) 0;
}

.section-header {
  margin-bottom: 64px;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-med), transform var(--t-med) var(--ease-smooth),
              box-shadow var(--t-med);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--glow-sm);
}

.service-card:hover::before { opacity: 1; }

.service-card__number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}

.service-card:hover .service-card__icon {
  background: rgba(0, 212, 255, 0.14);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-cyan);
}

.service-card__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 100px;
  padding: 5px 12px;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.tag:hover {
  background: rgba(0, 212, 255, 0.14);
  border-color: rgba(0, 212, 255, 0.35);
}

/* Featured service card (spans 2) */
.service-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 40px;
}

/* ── ================================================ ──
   ABOUT TEASER
── ================================================ ── */
.about-teaser {
  position: relative;
  z-index: 2;
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
  overflow-x: clip;
}

.about-teaser__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-teaser__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-teaser__logo {
  width: 340px;
  height: auto;
  filter: drop-shadow(0 0 80px rgba(0, 212, 255, 0.45));
}

.about-teaser__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.12);
  animation: orbit-spin 20s linear infinite;
}

.about-teaser__ring:nth-child(2) { width: 340px; height: 340px; }
.about-teaser__ring:nth-child(3) { width: 440px; height: 440px; animation-direction: reverse; animation-duration: 30s; }
.about-teaser__ring:nth-child(4) { width: 540px; height: 540px; animation-duration: 40s; }

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── ================================================ ──
   RESEARCH / ARTICLES
── ================================================ ── */
.research-section {
  position: relative;
  z-index: 2;
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.research-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t-med), transform var(--t-med) var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.article-card__header {
  padding: 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, transparent 100%);
  flex: 1;
}

.article-card__category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.article-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.article-card--featured .article-card__title {
  font-size: clamp(20px, 2.5vw, 26px);
}

.article-card__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-card__footer {
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.article-card__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.article-card:hover .article-card__arrow {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--accent-cyan);
}

/* ── ================================================ ──
   BOT PERFORMANCE TEASER
── ================================================ ── */
.bot-teaser {
  position: relative;
  z-index: 2;
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.bot-teaser__inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 72px 80px;
  position: relative;
  overflow: hidden;
}

.bot-teaser__inner::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--gradient-primary);
}

.bot-teaser__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.07) 0%, transparent 70%);
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.bot-teaser__content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.bot-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.bot-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00FF88;
  box-shadow: 0 0 8px #00FF88;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.bot-teaser__metrics {
  display: flex;
  gap: 48px;
  margin: 36px 0;
}

.bot-metric__value {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.bot-metric__label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

/* ── ================================================ ──
   CTA SECTION
── ================================================ ── */
.cta-section {
  position: relative;
  z-index: 2;
  padding: var(--section-pad) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(0,212,255,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 50% 100%, rgba(0,71,204,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

/* ── ================================================ ──
   FOOTER
── ================================================ ── */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer__brand-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

.footer__link:hover { color: var(--accent-cyan); }

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ── ================================================ ──
   INNER PAGE HERO
── ================================================ ── */
.page-hero {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  border-bottom: 1px solid var(--border);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── ================================================ ──
   CARDS — GENERAL
── ================================================ ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-med), transform var(--t-med) var(--ease-smooth), box-shadow var(--t-med);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── ================================================ ──
   FORM ELEMENTS
── ================================================ ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.07);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* ── ================================================ ──
   SCROLLTRIGGER ANIMATION CLASSES
   NOTE: Initial invisible states are set by GSAP (fromTo),
   NOT by CSS — prevents flash-of-invisible on inner pages
── ================================================ ── */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-fade,
.reveal-scale {
  will-change: opacity, transform;
}

/* ── ================================================ ──
   PAGE LOADER
── ================================================ ── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.loader__logo {
  width: 64px;
  height: 64px;
  animation: loader-pulse 1.5s ease-in-out infinite;
}

.loader__bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.loader__progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 1px;
  animation: loader-progress 1.8s var(--ease-smooth) forwards;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 20px rgba(0,212,255,0.5)); }
  50% { opacity: 0.6; filter: drop-shadow(0 0 40px rgba(0,212,255,0.3)); }
}

@keyframes loader-progress {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── ================================================ ──
   RESPONSIVE
── ================================================ ── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured { grid-column: span 1; grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero__logo-float { display: none; }
  .about-teaser__inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .bot-teaser__inner { padding: 48px 40px; }
  .bot-teaser__metrics { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  :root { --section-pad: 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .bot-teaser__inner { padding: 40px 28px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}

/* ── ================================================ ──
   BOT PORTAL
── ================================================ ── */
.portal-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.portal-login__box {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  position: relative;
}

.portal-login__box::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.portal-error {
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #FF7070;
  margin-top: 16px;
  display: none;
}

/* Dashboard */
.dashboard {
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.dashboard__header {
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-secondary);
}

.dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.metric-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.metric-card__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.metric-card__change {
  font-size: 12px;
  margin-top: 8px;
  font-family: var(--font-mono);
}

.metric-card__change.positive { color: #00FF88; }
.metric-card__change.negative { color: #FF6060; }

.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
}

.trades-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.trades-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.trades-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0,212,255,0.04);
}

.trades-table tr:hover td { background: rgba(0,212,255,0.02); }

.trade-profit { color: #00FF88; font-family: var(--font-mono); }
.trade-loss { color: #FF6060; font-family: var(--font-mono); }
