/* ============================================================
   SEAMBUILD – styles.css
   Luxury dark gold design system
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --bg-base:        #0a0a0a;
  --bg-surface:     #1a1a1a;
  --bg-elevated:    #222222;
  --gold:           #d4af37;
  --gold-bright:    #ffaa00;
  --gold-dim:       #a07c20;
  --white:          #ffffff;
  --text-primary:   #f0f0f0;
  --text-secondary: #cccccc;
  --text-muted:     #666666;

  /* Glass */
  --glass-bg:       rgba(255, 255, 255, 0.04);
  --glass-border:   rgba(212, 175, 55, 0.18);
  --glass-blur:     18px;
  --glass-glow:     rgba(212, 175, 55, 0.12);

  /* Spacing */
  --section-pad: clamp(5rem, 10vw, 9rem);
  --container:   1180px;
  --gap:         2rem;

  /* Typography */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --ease:   cubic-bezier(0.23, 1, 0.32, 1);
  --dur:    0.4s;
}

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

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

body {
  font-family: var(--font);
  background-color: var(--bg-base);
  color: var(--text-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

/* ---------- Utility ---------- */
.gold-text {
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: none;
  outline: none;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Gold button */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #0a0a0a;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(212, 175, 55, 0.5);
}
.btn-gold:active { transform: translateY(0); }

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

/* Large size */
.btn-large { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: 10px; }

/* Full width */
.btn-full { width: 100%; margin-top: 1.75rem; }

/* Shimmer animation */
.btn-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(255,255,255,0.45) 50%,
    transparent 60%);
  transform: translateX(-100%);
  animation: shimmer 3s infinite 1s;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Pulse animation for Pro button */
.btn-pulse {
  animation: pulse-glow 2.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 24px rgba(212, 175, 55, 0.3); }
  50%       { box-shadow: 0 8px 50px rgba(255, 170, 0, 0.65); }
}

.btn-icon { display: flex; align-items: center; flex-shrink: 0; }

.btn-trial-note {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.05em;
  margin-top: 1px;
}

/* ---------- Glass Cards ---------- */
.glass-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.glass-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 50px rgba(212, 175, 55, 0.12),
              0 2px 12px rgba(0,0,0,0.5);
}

/* Glow orb inside cards */
.card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
  opacity: 0;
}
.glass-card:hover .card-glow { opacity: 1; }

/* ---------- Section Shared ---------- */
.section-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,175,55,0.08);
  transition: background 0.4s ease;
}
.site-header.scrolled {
  background: rgba(10,10,10,0.92);
  border-bottom-color: rgba(212,175,55,0.18);
}

.nav-container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gold);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-right: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta { padding: 0.55rem 1.25rem; font-size: 0.88rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
    rgba(212,175,55,0.07) 0%,
    transparent 70%),
    linear-gradient(180deg, var(--bg-base) 0%, #0d0d0d 100%);
  padding: 7rem 1.5rem 4rem;
}

/* Mesh / dot grid background */
.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(212,175,55,0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.75rem;
  background: rgba(212,175,55,0.06);
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-platform-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 4px;
  animation: scroll-bob 2s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%       { transform: translateY(10px); opacity: 0.3; }
}

/* ============================================================
   HERO – FLOATING 3D SHAPES
   ============================================================ */
.shapes-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.18;
  filter: blur(1px);
  will-change: transform;
}

/* --- Cube base --- */
.shape-cube {
  width: 70px; height: 70px;
  border: 1.5px solid var(--gold);
  background: linear-gradient(135deg,
    rgba(212,175,55,0.12) 0%,
    rgba(255,170,0,0.04) 100%);
  animation: spin-cube 20s linear infinite;
  box-shadow: inset 0 0 20px rgba(212,175,55,0.1),
              0 0 20px rgba(212,175,55,0.08);
}
@keyframes spin-cube {
  from { transform: rotate3d(1, 1, 0.5, 0deg); }
  to   { transform: rotate3d(1, 1, 0.5, 360deg); }
}

/* --- Sphere base --- */
.shape-sphere {
  border-radius: 50%;
  border: 1.5px solid rgba(212,175,55,0.6);
  background: radial-gradient(circle at 35% 35%,
    rgba(212,175,55,0.25) 0%,
    rgba(255,170,0,0.05) 60%,
    transparent 100%);
  animation: float-sphere 14s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(212,175,55,0.12);
}
@keyframes float-sphere {
  0%,100% { transform: translateY(0px) scale(1); }
  50%     { transform: translateY(-22px) scale(1.04); }
}

/* --- Ring --- */
.shape-ring {
  border-radius: 50%;
  border: 3px solid rgba(212,175,55,0.45);
  background: transparent;
  animation: spin-ring 28s linear infinite;
  box-shadow: 0 0 18px rgba(212,175,55,0.15);
}
@keyframes spin-ring {
  from { transform: rotate(0deg) rotateX(60deg); }
  to   { transform: rotate(360deg) rotateX(60deg); }
}

/* Individual shape positions & sizes */
.shape-1 { width:90px; height:90px; top:12%; left:8%;  animation-duration:22s; }
.shape-2 { width:55px; height:55px; top:60%; left:5%;  animation-duration:18s; animation-direction:reverse; opacity:0.12; }
.shape-3 { width:120px;height:120px;top:10%; right:10%;animation-duration:16s; filter:blur(2px); }
.shape-4 { width:70px; height:70px; top:65%; right:8%; animation-duration:20s; animation-delay:-5s; }
.shape-5 { width:40px; height:40px; top:40%; left:50%; animation-duration:15s; animation-delay:-8s; opacity:0.1; }
.shape-6 { width:160px;height:160px;top:38%; right:22%;animation-duration:32s; opacity:0.1; }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.feature-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold);
  flex-shrink: 0;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: var(--section-pad) 0;
  background: var(--bg-surface);
  position: relative;
}

.steps-track { position: relative; }

/* Connecting line */
.steps-line {
  display: none; /* shown on desktop */
  position: absolute;
  top: 2.2rem;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 1px;
  background: rgba(212,175,55,0.12);
  overflow: hidden;
  z-index: 0;
}
.steps-line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: width 1.2s var(--ease);
}
.steps-line-fill.animated { width: 100%; }

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  position: relative;
  z-index: 1;
}

.step { display: flex; flex-direction: column; align-items: center; text-align: center; }

.step-number {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(212,175,55,0.2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-card {
  padding: 2rem 1.75rem;
  width: 100%;
}

.step-verb {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  max-width: 760px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.pricing-card--pro {
  background: rgba(212,175,55,0.05);
  border-color: rgba(212,175,55,0.4);
  transform: scale(1.025);
  box-shadow: 0 0 60px rgba(212,175,55,0.1);
}

.pricing-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-radius: 100px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 1rem;
}

.pricing-tier {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.price-amount {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pricing-features li.muted {
  color: var(--text-muted);
}

.check-icon {
  color: var(--gold);
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--bg-base);
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse,
    rgba(212,175,55,0.1) 0%,
    transparent 70%);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.cta-btn { min-width: 280px; }

.cta-platform {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid rgba(212,175,55,0.1);
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE – TABLET & MOBILE
   ============================================================ */

/* Show steps connecting line on desktop */
@media (min-width: 900px) {
  .steps-line { display: block; }
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .steps-list {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .step { align-items: flex-start; text-align: left; flex-direction: row; gap: 1.25rem; }
  .step-number { font-size: 2.5rem; min-width: 3.5rem; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .pricing-card--pro { transform: scale(1); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }

  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-actions .btn { justify-content: center; }

  .btn-large { padding: 0.9rem 1.75rem; font-size: 0.98rem; }

  .site-header { height: 60px; }

  .shape-5, .shape-6 { display: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
