/* ═══════════════════════════════════════════
   JORDAN PALEN — Premium Dark Landing
   ═══════════════════════════════════════════ */

/* === FONTS === */
/* Syne: bold display headers
   Space Mono: monospace accents/tags
   Inter: body text */

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

:root {
  /* Core palette */
  --bg-void:        #070709;
  --bg-deep:        #0a0b0f;
  --bg-surface:     #10121a;
  --bg-elevated:    #14171f;
  --bg-card:        #0f111a;

  /* Borders */
  --border-subtle:  rgba(255,255,255,0.05);
  --border-soft:    rgba(255,255,255,0.08);
  --border-medium:  rgba(255,255,255,0.12);

  /* Text */
  --text-primary:   #e8eaf0;
  --text-secondary: #8a8fa8;
  --text-muted:     #4a4f68;
  --text-dim:       #2a2d3e;

  /* Accent — electric blue-violet */
  --accent:         #4f7cff;
  --accent-soft:    rgba(79,124,255,0.12);
  --accent-glow:    rgba(79,124,255,0.25);
  --accent-bright:  #6b92ff;

  /* Accent 2 — cyan dark */
  --cyan:           #00b4d8;
  --cyan-soft:      rgba(0,180,216,0.10);

  /* Accent 3 — violet */
  --violet:         #7c3aed;
  --violet-soft:    rgba(124,58,237,0.12);
  --violet-glow:    rgba(124,58,237,0.20);

  /* Spacing */
  --max-w:          1160px;
  --section-pad:    clamp(80px, 10vw, 140px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === NOISE TEXTURE === */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* === GRID BACKGROUND === */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(79,124,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,124,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 30%, transparent 100%);
}

/* === AMBIENT GLOWS === */
.glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
}
.glow-1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, rgba(79,124,255,0.08) 0%, transparent 70%);
}
.glow-2 {
  width: 500px; height: 500px;
  top: 30%; right: -150px;
  background: radial-gradient(circle, rgba(124,58,237,0.07) 0%, transparent 70%);
}
.glow-3 {
  width: 400px; height: 400px;
  bottom: 10%; left: 20%;
  background: radial-gradient(circle, rgba(0,180,216,0.05) 0%, transparent 70%);
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: linear-gradient(to bottom, rgba(7,7,9,0.95) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--border-subtle);
  border: 1px solid var(--border-soft);
  padding: 6px 14px;
  border-radius: 100px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === HERO === */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 48px) 80px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* Eyebrow */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
}
.eyebrow-line {
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.eyebrow-text {
  font-family: 'Space Mono', monospace;
  font-size: clamp(10px, 1.5vw, 12px);
  color: var(--accent-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Hero Title */
.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}
.title-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 9vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #8fa8ff 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.title-sub {
  font-family: 'Syne', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}

/* Reveal animations */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.32s; }
.delay-4 { animation-delay: 0.44s; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero desc */
.hero-desc {
  max-width: 600px;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
}

/* CTA Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  width: fit-content;
  position: relative;
  overflow: hidden;
}
.hero-metrics::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}
.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  gap: 4px;
}
.metric:first-child { padding-left: 0; }
.metric:last-child { padding-right: 0; }
.metric-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent-bright), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.metric-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border-soft);
  flex-shrink: 0;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #3d5fe0);
  color: #fff;
  box-shadow: 0 4px 24px rgba(79,124,255,0.30), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,124,255,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}
.btn-outline:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}
.btn-large {
  padding: 16px 32px;
  font-size: 15px;
  border-radius: 12px;
}

/* === COMING SOON BANNER === */
.coming-soon {
  position: relative;
  z-index: 1;
  padding: 0 clamp(20px, 5vw, 48px) 80px;
}
.cs-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(79,124,255,0.06), rgba(124,58,237,0.06));
  border: 1px solid rgba(79,124,255,0.18);
  border-radius: 20px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cs-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.cs-icon {
  color: var(--accent-bright);
  flex-shrink: 0;
  margin-top: 2px;
}
.cs-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cs-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 500px;
}
.cs-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}
.progress-bar {
  height: 4px;
  background: var(--border-soft);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  border-radius: 100px;
  position: relative;
  animation: shimmer 2.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.progress-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: right;
}

/* === SERVICES === */
.services {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) clamp(20px, 5vw, 48px);
}
.services-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  margin-bottom: 56px;
}
.section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-bright), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 32px;
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,124,255,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.service-card:hover {
  border-color: rgba(79,124,255,0.25);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

.card-featured {
  background: linear-gradient(135deg, rgba(79,124,255,0.08), rgba(124,58,237,0.06));
  border-color: rgba(79,124,255,0.20);
}
.card-featured .card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,124,255,0.20) 0%, transparent 70%);
  pointer-events: none;
}
.card-wide {
  grid-column: span 6;
}
/* Make 4th card span 6 too */
.service-card:nth-child(4) {
  grid-column: span 6;
}

.card-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(79,124,255,0.15);
  border-radius: 14px;
  color: var(--accent-bright);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.service-card:hover .card-icon {
  background: rgba(79,124,255,0.18);
  border-color: rgba(79,124,255,0.30);
  box-shadow: 0 0 20px rgba(79,124,255,0.15);
}
.card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-tags span {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  background: var(--border-subtle);
  border: 1px solid var(--border-soft);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.service-card:hover .card-tags span {
  color: var(--accent-bright);
  border-color: rgba(79,124,255,0.20);
}

/* === CONTACT === */
.contact {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--border-subtle);
}
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 16px 0 20px;
}
.contact-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-bright), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
}
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Contact visual card */
.cv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.cv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}
.cv-card::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,124,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.cv-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cv-value {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cv-available { color: #4ade80; }
.cv-divider {
  height: 1px;
  background: var(--border-subtle);
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* === FOOTER === */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 40px clamp(20px, 5vw, 48px);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-align: center;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { grid-column: span 1 !important; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding-top: 100px; }
  .hero-metrics {
    flex-direction: column;
    width: 100%;
    padding: 20px;
    gap: 16px;
  }
  .metric { flex-direction: row; justify-content: space-between; width: 100%; padding: 0; }
  .metric-divider { width: 100%; height: 1px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .cs-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-tagline { text-align: left; }
  .header-badge span:last-child { display: none; }
}

@media (max-width: 480px) {
  .eyebrow { display: none; }
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .contact-actions { flex-direction: column; }
  .btn-large { width: 100%; justify-content: center; }
  .hero-metrics { display: none; }
}
