/* ============================================
   TEAM TAIGUN — Design System
   Palette: Alpine Frost / Deep Navy Tech
   Fonts: Syne + Plus Jakarta Sans
   ============================================ */

:root {
  --navy-900: #050D1A;
  --navy-800: #0A1929;
  --navy-700: #0D2137;
  --navy-600: #122845;
  --navy-500: #1A3A5C;
  --blue-600: #1E4D8C;
  --blue-500: #2E5090;
  --blue-400: #3A6BC4;
  --blue-300: #5B8FD4;
  --accent: #4FC3F7;
  --accent-glow: rgba(79, 195, 247, 0.25);
  --accent-dim: rgba(79, 195, 247, 0.12);
  --ice-100: #F0F7FF;
  --ice-200: #E3EDF7;
  --ice-300: #C8DCF0;
  --ice-400: #A8C4E0;
  --white: #FFFFFF;
  --text-primary: #E8F1FB;
  --text-secondary: #8BAFD4;
  --text-muted: #4A6A8A;
  --border: rgba(79, 195, 247, 0.15);
  --border-strong: rgba(79, 195, 247, 0.3);
  --glass: rgba(10, 25, 41, 0.7);
  --glass-light: rgba(30, 77, 140, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 40px rgba(79, 195, 247, 0.15);
}

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

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--navy-900);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-800); }
::-webkit-scrollbar-thumb { background: var(--blue-400); border-radius: 3px; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.15; }

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(5, 13, 26, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--blue-400));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--navy-900);
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  text-transform: uppercase;
}

.nav-links a:hover { color: var(--accent); }

.nav-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  padding: 5px 12px;
  border-radius: 20px;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #0D2137 0%, var(--navy-900) 70%);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 600px at 20% 50%, rgba(79,195,247,0.06) 0%, transparent 70%),
    radial-gradient(circle 400px at 80% 30%, rgba(46,80,144,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,195,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,195,247,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 32px;
  padding-top: 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 32px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-title .line {
  display: block;
  color: var(--text-primary);
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--blue-300) 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 48px;
  padding: 28px 48px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  display: inline-flex;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--accent), var(--blue-300));
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(79,195,247,0.3);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(79,195,247,0.5);
}

.arrow { font-size: 18px; transition: transform 0.3s; }
.hero-cta:hover .arrow { transform: translateY(3px); }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
  animation: fadeUpDown 2s ease-in-out infinite;
}

@keyframes fadeUpDown {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-6px); }
}

/* ---- SECTIONS ---- */
.section {
  padding: 120px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ---- SERVICES ---- */
.services-section {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-900) 100%);
}

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

.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), rgba(79,195,247,0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}

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

.service-icon {
  width: 52px; height: 52px;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.8;
}

.service-icon svg { width: 100%; height: 100%; }

.service-code {
  position: absolute;
  top: 28px; right: 28px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.service-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.service-full {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

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

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

.service-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-300);
  background: rgba(46,80,144,0.2);
  border: 1px solid rgba(46,80,144,0.4);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ---- STRUCTURE ---- */
.structure-section {
  background: var(--navy-800);
  position: relative;
  overflow: hidden;
}

.structure-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,195,247,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.structure-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.struct-tier {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.struct-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, var(--border-strong), var(--border));
  position: relative;
}

.struct-connector::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.struct-node {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  text-align: center;
  min-width: 200px;
  transition: all 0.3s ease;
  position: relative;
}

.struct-node:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(79,195,247,0.1);
}

.struct-node.lead {
  border-color: var(--accent);
  background: rgba(79,195,247,0.08);
  box-shadow: 0 0 30px rgba(79,195,247,0.1);
}

.struct-node.senior {
  border-color: rgba(91,143,212,0.4);
  background: rgba(46,80,144,0.15);
}

.struct-node.engineer {
  border-color: var(--border);
}

.struct-node.support {
  border-color: rgba(74,106,138,0.4);
  background: rgba(74,106,138,0.08);
}

.node-icon { font-size: 24px; margin-bottom: 8px; }

.node-label {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.node-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ---- TEAM ---- */
.team-section {
  background: var(--navy-900);
}

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

.member-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.member-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 300px at 50% 0%, rgba(79,195,247,0.05), transparent);
  pointer-events: none;
}

.member-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}

.member-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    hsl(var(--hue), 60%, 35%),
    hsl(var(--hue), 80%, 55%)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  position: relative;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, hsl(var(--hue), 80%, 55%), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.member-card:hover .avatar-ring { opacity: 1; }

.member-badge {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.lead-badge { background: rgba(79,195,247,0.15); color: var(--accent); border: 1px solid rgba(79,195,247,0.3); }
.senior-badge { background: rgba(91,143,212,0.15); color: var(--blue-300); border: 1px solid rgba(91,143,212,0.3); }
.eng-badge { background: rgba(46,80,144,0.2); color: #7EB3E8; border: 1px solid rgba(46,80,144,0.4); }
.ops-badge { background: rgba(74,106,138,0.2); color: var(--ice-400); border: 1px solid rgba(74,106,138,0.4); }

.member-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.member-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.member-bio {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.member-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.member-services span {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-300);
  background: rgba(46,80,144,0.2);
  border: 1px solid rgba(46,80,144,0.35);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.member-footer {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.member-stat {
  font-size: 12px;
  color: var(--text-muted);
}

.member-stat strong {
  color: var(--text-primary);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
}

/* ---- WORKFLOW ---- */
.workflow-section {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
}

.workflow-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 80px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.flow-step {
  flex: 1;
  min-width: 160px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.flow-step:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(79,195,247,0.08);
}

.flow-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.flow-icon { font-size: 28px; margin-bottom: 12px; }

.flow-step h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 20px;
  color: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: 60px;
}

/* ---- MATRIX ---- */
.matrix-section { margin-top: 20px; }

.matrix-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
  text-align: center;
}

.matrix-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.matrix-table thead {
  background: rgba(46,80,144,0.2);
}

.matrix-table th {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.matrix-table td {
  padding: 16px 24px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(79,195,247,0.06);
  transition: background 0.2s;
}

.matrix-table tr:last-child td { border-bottom: none; }

.matrix-table tbody tr:hover td {
  background: rgba(79,195,247,0.04);
  color: var(--text-primary);
}

.svc-pill {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.sla {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.sla-high { background: rgba(239,68,68,0.15); color: #F87171; border: 1px solid rgba(239,68,68,0.3); }
.sla-med  { background: rgba(251,191,36,0.12); color: #FCD34D; border: 1px solid rgba(251,191,36,0.3); }
.sla-low  { background: rgba(52,211,153,0.12); color: #6EE7B7; border: 1px solid rgba(52,211,153,0.3); }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-900);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.footer .nav-logo {
  justify-content: center;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.footer-services {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-services span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card.reveal,
.member-card.reveal {
  transition-delay: calc(var(--i, 0) * 0.08s);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; padding: 24px 32px; }
  .stat-divider { width: 40px; height: 1px; }
  .workflow-flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); margin: 0 auto; }
  .struct-tier { flex-direction: column; align-items: center; }
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
}