/* ═══════════════════════════════════════════════════════════════════════════
   TEDORA ADVISORY — Landing Page Styles
   Design: Dark gradient-accent, glass-morphism cards
   Typography: Plus Jakarta Sans + JetBrains Mono
   Palette: Inherited from trade.16021996.xyz
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  --bg-primary:    #0a0d14;
  --bg-secondary:  #101520;
  --bg-card:       #141b29;
  --bg-card-hover: #1a2336;
  --border-color:  rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(255, 255, 255, 0.14);

  --text-primary:   #e6edf3;
  --text-secondary: #8b949e;
  --text-muted:     #586069;

  --accent-cyan:    #00e5ff;
  --accent-blue:    #38bdf8;
  --accent-violet:  #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber:   #f59e0b;

  --gradient-brand: linear-gradient(135deg, #00e5ff 0%, #3b82f6 50%, #8b5cf6 100%);
  --glass-bg:       rgba(20, 27, 41, 0.6);
  --glass-border:   rgba(255, 255, 255, 0.1);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --container: 1120px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

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

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.scrolled {
  border-bottom-color: var(--border-color);
  background: rgba(10, 13, 20, 0.92);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ── Brand ─────────────────────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { flex-shrink: 0; line-height: 0; }
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  gap: 8px;
}
.nav-link {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

/* ── Header Actions ────────────────────────────────────────────────────── */
.header-actions {
  display: flex;
  gap: 8px;
}

/* ── Mobile Menu Toggle ────────────────────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border-hover);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24);
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 48px) 24px 80px;
  overflow: hidden;
}

/* ── Animated Background ───────────────────────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: var(--accent-cyan);
  top: -15%; left: -10%;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: var(--accent-blue);
  top: 30%; right: -15%;
  animation-delay: -7s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: var(--accent-violet);
  bottom: -10%; left: 30%;
  animation-delay: -14s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
}

/* ── Hero Content ──────────────────────────────────────────────────────── */
.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ── Hero Stats ────────────────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 20px 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-color);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════════════════════════════════════ */
.section {
  padding: 96px 0;
}
.section-dark {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES GRID
   ═══════════════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  cursor: pointer;
}
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.1);
  margin-bottom: 20px;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-cyan);
}
.card-icon.icon-blue { background: rgba(56, 189, 248, 0.1); }
.card-icon.icon-blue svg { stroke: var(--accent-blue); }
.card-icon.icon-violet { background: rgba(139, 92, 246, 0.1); }
.card-icon.icon-violet svg { stroke: var(--accent-violet); }
.card-icon.icon-emerald { background: rgba(16, 185, 129, 0.1); }
.card-icon.icon-emerald svg { stroke: var(--accent-emerald); }

.card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}
.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.card-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  padding: 3px 10px;
  background: rgba(0, 229, 255, 0.08);
  border-radius: 100px;
}
.card-domain {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.card-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
}
.service-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--accent-cyan);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLATFORM DIAGRAM
   ═══════════════════════════════════════════════════════════════════════ */
.platform-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 48px 0;
}

.platform-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--gradient-brand);
  position: relative;
}
.platform-hub::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0.3;
  filter: blur(16px);
}
.hub-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
}
.hub-label {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.platform-nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 700px;
}
.platform-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}
.platform-node:hover { border-color: var(--border-hover); }

.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex-shrink: 0;
}
.node-dot.dot-blue { background: var(--accent-blue); }
.node-dot.dot-violet { background: var(--accent-violet); }
.node-dot.dot-emerald { background: var(--accent-emerald); }

.node-domain {
  display: block;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-primary);
}
.node-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Tech Badges ───────────────────────────────────────────────────────── */
.tech-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.tech-badge {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 16px;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.08);
}
.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-cyan);
}
.feature-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.feature-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 56px 0 32px;
  background: var(--bg-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
}
.footer-heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ═══════════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delay for service cards */
.service-card.reveal {
  transition-delay: calc(var(--delay, 0) * 100ms);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  /* Header → hamburger */
  .nav, .header-actions { display: none; }
  .menu-toggle { display: flex; }

  /* Mobile nav overlay */
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    background: rgba(10, 13, 20, 0.97);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 8px;
    z-index: 999;
  }
  .nav.open .nav-link {
    font-size: 18px;
    padding: 14px 16px;
  }
  .header-actions.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 24px;
    left: 24px; right: 24px;
    z-index: 999;
    gap: 12px;
  }
  .header-actions.open .btn { justify-content: center; width: 100%; }

  /* Hero */
  .hero { min-height: auto; padding: calc(var(--header-h) + 56px) 20px 64px; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 20px 24px; }
  .stat-divider { width: 48px; height: 1px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }

  /* Platform */
  .platform-nodes { grid-template-columns: 1fr 1fr; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Section padding */
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .platform-nodes { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .platform-hub { width: 110px; height: 110px; }
}
