/* === TYPOGRAPHY === */
:root {
  --bg: #080C1A;
  --bg-2: #0D1425;
  --bg-3: #111D33;
  --fg: #E8EEF8;
  --fg-2: #8A9BB5;
  --fg-3: #4A5A72;
  --accent: #00FFD0;
  --accent-2: #FF6B2C;
  --accent-glow: rgba(0, 255, 208, 0.15);
  --border: rgba(0, 255, 208, 0.1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 12, 26, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.status-label {
  font-size: 0.8rem;
  color: var(--fg-3);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 100vh;
  padding: 140px 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(0, 255, 208, 0.08);
  border: 1px solid rgba(0, 255, 208, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 500;
  margin-bottom: 28px;
  width: fit-content;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.4;
}

.hero-body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 520px;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

.stat:first-child { padding-left: 0; }

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* === NEXUS GRID === */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nexus-grid {
  position: relative;
  width: 400px;
  height: 320px;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 255, 208, 0.06) 0%, transparent 70%);
  border-radius: 24px;
}

.grid-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.grid-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 208, 0.3));
}

.grid-core svg {
  animation: rotate-slow 20s linear infinite;
}

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

.grid-core-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.node-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg-2);
  transition: all 0.3s ease;
}

.node:hover .node-icon {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 208, 0.05);
  box-shadow: 0 0 20px rgba(0, 255, 208, 0.15);
}

.node-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-align: center;
}

.node-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}

/* Position nodes in hexagonal layout */
.node-db { top: 8px; left: 50%; transform: translateX(-50%); }
.node-sms { top: 55px; right: 20px; }
.node-pay { bottom: 55px; right: 20px; }
.node-host { bottom: 8px; left: 50%; transform: translateX(-50%); }
.node-email { bottom: 55px; left: 20px; }
.node-ai { top: 55px; left: 20px; }

.grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.con-line {
  stroke-dasharray: 4 4;
  animation: dash-march 3s linear infinite;
}

@keyframes dash-march {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 16; }
}

/* === SECTION TAGS === */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

/* === PROVISION SECTION === */
.provision {
  padding: 100px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.provision-header {
  text-align: center;
  margin-bottom: 72px;
}

.provision-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  max-width: 640px;
  margin: 0 auto;
  letter-spacing: -0.02em;
}

.provision-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 64px;
  position: relative;
}

.flow-step {
  flex: 1;
  padding: 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
}

.flow-left { border-radius: 16px 0 0 16px; }
.flow-right { border-radius: 0 16px 16px 0; }

.flow-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.flow-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.flow-content p {
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.flow-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
}

.flow-badge.outdated {
  background: rgba(255, 107, 44, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(255, 107, 44, 0.2);
}

.flow-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 107, 44, 0.06);
  border: 1px solid rgba(255, 107, 44, 0.15);
  border-radius: 10px;
  padding: 14px;
  margin-top: 16px;
}

.block-icon {
  color: var(--accent-2);
  flex-shrink: 0;
  margin-top: 1px;
}

.flow-block span {
  font-size: 0.85rem;
  color: var(--fg-2);
  line-height: 1.5;
}

.flow-arrow {
  flex-shrink: 0;
  padding: 0 8px;
  z-index: 2;
  margin-top: -40px;
}

/* Nexus divider */
.provision-nexus {
  background: linear-gradient(135deg, rgba(0, 255, 208, 0.03) 0%, rgba(8, 12, 26, 0) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 60px;
}

.nexus-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.divider-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nexus-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nexus-step {
  flex: 1;
  max-width: 260px;
  text-align: center;
}

.nexus-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(0, 255, 208, 0.08);
  border: 1px solid rgba(0, 255, 208, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.nexus-step h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.nexus-step p {
  font-size: 0.85rem;
  color: var(--fg-2);
  line-height: 1.5;
}

.nexus-arrow {
  padding: 0 16px;
  flex-shrink: 0;
  margin-top: -16px;
}

/* === HOW SECTION === */
.how {
  padding: 100px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.how-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--fg);
  max-width: 600px;
  margin-bottom: 64px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 48px;
}

.how-card {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  position: relative;
}

.how-card:last-child { border-right: none; }

.how-card-center {
  background: rgba(0, 255, 208, 0.03);
  border-right: 1px solid rgba(0, 255, 208, 0.15);
}

.how-card-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.how-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
}

.how-card p {
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 24px;
}

.how-card-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.how-card-detail span {
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(0, 255, 208, 0.08);
  border: 1px solid rgba(0, 255, 208, 0.15);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.how-quote {
  border-left: 2px solid var(--accent);
  padding-left: 28px;
}

.how-quote p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--fg-2);
  line-height: 1.6;
  font-weight: 300;
}

/* === SERVICES SECTION === */
.services {
  padding: 100px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 72px;
}

.services-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  letter-spacing: -0.02em;
}

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

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: rgba(0, 255, 208, 0.25);
  box-shadow: 0 0 40px rgba(0, 255, 208, 0.05);
}

.service-card-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}

.service-card-wide .service-icon {
  margin-top: 4px;
}

.service-card-wide h4,
.service-card-wide p,
.service-card-wide .service-providers {
  grid-column: 2;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon-db { background: rgba(0, 255, 208, 0.1); color: var(--accent); }
.service-icon-sms { background: rgba(167, 139, 250, 0.1); color: #A78BFA; }
.service-icon-pay { background: rgba(255, 107, 44, 0.1); color: var(--accent-2); }
.service-icon-host { background: rgba(52, 211, 153, 0.1); color: #34D399; }
.service-icon-brain { background: rgba(251, 191, 36, 0.1); color: #FBBF24; }
.service-icon-email { background: rgba(96, 165, 250, 0.1); color: #60A5FA; }

.service-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-providers {
  font-size: 0.7rem;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

/* === CLOSING SECTION === */
.closing {
  padding: 120px 48px 100px;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.closing-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.closing-body {
  font-size: 1.1rem;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.closing-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
  text-align: left;
}

.value {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--fg-2);
}

.closing-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 255, 208, 0.2);
  display: inline-block;
  padding: 10px 24px;
  border-radius: 100px;
  background: rgba(0, 255, 208, 0.05);
}

/* === FOOTER === */
.footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fg-2);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--fg-3);
  font-style: italic;
}

.footer-meta {
  font-size: 0.75rem;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 120px 32px 80px;
  }

  .hero-right {
    order: -1;
  }

  .nexus-grid {
    width: 320px;
    height: 260px;
  }

  .node-icon { width: 38px; height: 38px; }
  .node-db { top: 5px; }
  .node-host { bottom: 5px; }

  .provision-flow {
    flex-direction: column;
  }

  .flow-left, .flow-right {
    border-radius: 16px;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }

  .nexus-flow {
    flex-direction: column;
    gap: 24px;
  }

  .nexus-step { max-width: 100%; }
  .nexus-arrow { transform: rotate(90deg); }

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

  .how-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .how-card:last-child { border-bottom: none; }

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

  .service-card-wide {
    grid-column: 1;
    display: flex;
    flex-direction: column;
  }

  .closing-values {
    grid-template-columns: 1fr;
  }

  .nav { padding: 16px 24px; }
  .nav-status { display: none; }
  .provision, .how, .services, .closing { padding-left: 32px; padding-right: 32px; }
  .footer { padding: 24px 32px; flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .stat-sep { display: none; }

  .provision-nexus { padding: 32px 24px; }
}
