/* ========================================
   MIDNIGHT GOLD Design System
   ======================================== */

:root {
  --primary: #d4a853;
  --primary-light: #f5d485;
  --accent: #b8860b;
  --bg: #09090b;
  --surface: #18181b;
  --surface-light: #1e1e22;
  --text: #fafaf9;
  --text-body: #a8a29e;
  --text-muted: #78716c;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Satoshi', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 300ms ease;
  --gold-glow: rgba(212, 168, 83, 0.3);
  --gold-glow-strong: rgba(212, 168, 83, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* ---- Full-Page Neural Grid ---- */
#neural-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- ASCII Art Background ---- */
#ascii-art-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 14px;
  color: var(--primary);
  white-space: pre;
  overflow: hidden;
  user-select: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, 14px);
  grid-auto-rows: 14px;
  padding: 0;
  margin: 0;
}

#ascii-art-bg span {
  display: inline-block;
  animation: asciiFloat 12s ease-in-out infinite;
  opacity: 0.06;
  animation-fill-mode: forwards;
}

#ascii-art-bg span:nth-child(3n) {
  animation: asciiPulse 10s ease-in-out infinite;
}

#ascii-art-bg span:nth-child(5n) {
  animation: asciiSlide 14s linear infinite;
}

#ascii-art-bg span:nth-child(7n) {
  animation: asciiRotate 16s linear infinite;
}

@keyframes asciiFloat {
  0%, 100% {
    transform: translateY(0px);
    opacity: 0.04;
  }
  50% {
    transform: translateY(-8px);
    opacity: 0.1;
  }
}

@keyframes asciiPulse {
  0%, 100% {
    opacity: 0.03;
    transform: scale(1);
  }
  50% {
    opacity: 0.12;
    transform: scale(1.1);
  }
}

@keyframes asciiSlide {
  0% {
    transform: translateX(-4px);
    opacity: 0.04;
  }
  50% {
    transform: translateX(4px);
    opacity: 0.1;
  }
  100% {
    transform: translateX(-4px);
    opacity: 0.04;
  }
}

@keyframes asciiRotate {
  0% {
    transform: rotate(0deg);
    opacity: 0.04;
  }
  50% {
    transform: rotate(5deg);
    opacity: 0.1;
  }
  100% {
    transform: rotate(0deg);
    opacity: 0.04;
  }
}

/* ---- Floating Accent Shapes ---- */
#floating-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border: 1px solid rgba(212, 168, 83, 0.12);
  pointer-events: none;
  animation: floatDrift linear infinite;
}

.floating-shape.circle {
  border-radius: 50%;
}

.floating-shape.diamond {
  transform: rotate(45deg);
}

.floating-shape.line {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.15), transparent);
}

@keyframes floatDrift {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ---- Cursor Trail ---- */
.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  box-shadow: 0 0 6px var(--gold-glow);
  transition: none;
}

/* ---- Scroll Progress Bar ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  z-index: 9999;
  transition: width 50ms linear;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
  line-height: 1.7;
}

.text-primary {
  color: var(--primary);
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Italic Gold Accent ---- */
h1 em, h2 em {
  font-style: italic;
}

h1 em .word, h2 em .word,
h1 em, h2 em {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Text Reveal ---- */
.text-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.text-reveal .word.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Typewriter Cursor ---- */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

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

/* ---- Card Spotlight ---- */
.card-spotlight {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212, 168, 83, 0.15) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.card:hover .card-spotlight {
  opacity: 1;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--bg);
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--gold-glow-strong), 0 0 60px rgba(212, 168, 83, 0.15);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 14px 36px;
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn-outline:hover {
  background: rgba(212, 168, 83, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 25px rgba(212, 168, 83, 0.15);
  transform: translateY(-3px);
}

.btn-outline:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ---- Card ---- */
.card {
  background: var(--surface);
  border: 1px solid rgba(212, 168, 83, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: conic-gradient(from var(--shimmer-angle, 0deg), transparent 0%, rgba(212, 168, 83, 0.4) 10%, transparent 20%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
}

.card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(212, 168, 83, 0.08), inset 0 1px 0 rgba(212, 168, 83, 0.1);
  border-color: rgba(212, 168, 83, 0.15);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 1;
}

/* ---- Glowing Divider ---- */
.scan-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 0 0 4rem;
  width: 0;
  position: relative;
  box-shadow: 0 0 8px var(--gold-glow), 0 0 20px rgba(212, 168, 83, 0.1);
}

.scan-line::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.15), transparent);
  filter: blur(3px);
}

/* ---- Section ---- */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ---- Grid Utilities ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ---- Navigation ---- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.nav-solid {
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(212, 168, 83, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 40%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition);
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.nav-link {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.nav-cta {
  font-size: 0.85rem;
  padding: 10px 24px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--gold-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  color: var(--text);
  text-shadow: 0 0 80px rgba(212, 168, 83, 0.12);
}

.hero-subtitle {
  color: var(--text-body);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Content sits above the fixed background layers */
#hero, .section, #footer {
  position: relative;
  z-index: 1;
}

/* ---- Service Cards ---- */
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Secondary Services ---- */
.secondary-services {
  text-align: center;
  margin-top: 3rem;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.pill {
  background: rgba(212, 168, 83, 0.03);
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: 50px;
  padding: 0.65rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-body);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  backdrop-filter: blur(4px);
}

.pill span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 0.5rem;
  font-weight: 500;
}

.pill:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.1);
}

/* ---- Portfolio Cards ---- */
.portfolio-preview {
  height: 200px;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -2rem -2rem 1.5rem -2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 168, 83, 0.06);
}

.portfolio-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.portfolio-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.portfolio-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(212, 168, 83, 0.06);
  color: var(--primary);
  border: 1px solid rgba(212, 168, 83, 0.12);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(212, 168, 83, 0.12);
  border-color: rgba(212, 168, 83, 0.3);
}

.portfolio-link {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.portfolio-link:hover {
  color: var(--primary-light);
  text-shadow: 0 0 12px var(--gold-glow);
}

/* ---- Stats Bar ---- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  padding: 2.5rem 3rem;
  background: rgba(212, 168, 83, 0.02);
  border: 1px solid rgba(212, 168, 83, 0.06);
  border-radius: var(--radius);
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.3), transparent);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  display: inline;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus,
.stat-prefix {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ---- Pricing Table ---- */
.pricing-table {
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.pricing-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 0.8fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(212, 168, 83, 0.04);
  transition: background 0.3s ease;
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row:not(.pricing-header):hover {
  background: rgba(212, 168, 83, 0.04);
  box-shadow: inset 3px 0 0 var(--primary);
}

.pricing-row.popular {
  background: rgba(212, 168, 83, 0.04);
  box-shadow: inset 3px 0 0 var(--primary);
}

.pricing-header {
  background: rgba(212, 168, 83, 0.04);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pricing-service {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

.pricing-includes {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1), 0 0 20px rgba(212, 168, 83, 0.05);
}

.form-group select {
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid rgba(212, 168, 83, 0.08);
  border-radius: var(--radius);
  align-self: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-value {
  color: var(--primary);
  font-weight: 500;
  transition: all var(--transition);
}

.contact-value:hover {
  color: var(--primary-light);
  text-shadow: 0 0 12px var(--gold-glow);
}

.contact-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* ---- Footer ---- */
#footer {
  background: var(--surface);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(212, 168, 83, 0.08);
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.25), transparent);
  filter: blur(1px);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand h3 {
  background: linear-gradient(135deg, var(--text) 40%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 168, 83, 0.06);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ---- Testimonials Carousel ---- */
.testimonial-carousel {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.testimonial-track {
  position: relative;
  min-height: 340px;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid rgba(212, 168, 83, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.testimonial-card.exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

.testimonial-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: center;
}

.testimonial-content {
  min-width: 0;
}

.testimonial-stars {
  color: var(--primary);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ---- Preview Cards ---- */
.testimonial-preview {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 83, 0.1);
  background: #111113;
  text-decoration: none;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-preview:hover {
  border-color: rgba(212, 168, 83, 0.3);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.1);
}

.preview-browser {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 12px;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.preview-dots {
  display: flex;
  gap: 4px;
}

.preview-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.preview-dots span:first-child { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #eab308; }
.preview-dots span:last-child { background: #22c55e; }

.preview-url {
  font-size: 0.6rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 8px;
  border-radius: 4px;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 9, 11, 0);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
}

.testimonial-preview:hover .preview-overlay {
  background: rgba(9, 9, 11, 0.7);
  opacity: 1;
}

.preview-overlay-static {
  opacity: 0;
}

/* ---- Terminal Mock ---- */
.preview-mock {
  height: 180px;
  padding: 12px;
  overflow: hidden;
}

.preview-mock-terminal {
  background: #0d1117;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.65rem;
  line-height: 1.8;
}

.mock-line {
  color: var(--text);
}

.mock-prompt {
  color: var(--primary);
  margin-right: 0.4rem;
}

.mock-dim {
  color: var(--text-muted);
}

.mock-success {
  color: #22c55e;
}

/* ---- Website Mock ---- */
.preview-mock-site {
  background: #111113;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.mock-nav {
  height: 6px;
  width: 60%;
  background: rgba(212, 168, 83, 0.15);
  border-radius: 3px;
}

.mock-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
}

.mock-hero-text {
  height: 8px;
  width: 80%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.mock-hero-text.short {
  width: 50%;
}

.mock-hero-btn {
  height: 12px;
  width: 35%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  margin-top: 4px;
}

.mock-cards {
  display: flex;
  gap: 6px;
}

.mock-card {
  flex: 1;
  height: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

/* ---- App/Accounting Mock ---- */
.preview-mock-app {
  display: flex;
  gap: 0;
  background: #0d1117;
}

.mock-app-sidebar {
  width: 50px;
  background: rgba(212, 168, 83, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-sidebar-item {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.mock-sidebar-item.active {
  background: var(--primary);
}

.mock-app-main {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mock-app-header {
  height: 8px;
  width: 40%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  margin-bottom: 4px;
}

.mock-app-row {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mock-app-cell {
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  width: 40px;
}

.mock-app-cell.wide { flex: 1; }

.mock-app-cell.num {
  width: 35px;
  text-align: right;
  background: rgba(255, 255, 255, 0.05);
}

.mock-app-cell.highlight {
  background: rgba(34, 197, 94, 0.3);
}

.mock-app-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(212, 168, 83, 0.15);
}

.mock-app-total span:first-child {
  font-size: 0.55rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- Carousel Controls ---- */
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 83, 0.2);
  background: transparent;
  color: var(--text-body);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(212, 168, 83, 0.05);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 83, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: var(--surface);
    transition: right var(--transition);
    z-index: 1000;
    border-left: 1px solid rgba(212, 168, 83, 0.08);
  }
  .nav-menu.active { right: 0; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .pricing-row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.25rem; }
  .pricing-header { display: none; }
  .pricing-price { font-size: 1.25rem; }

  .testimonial-card { padding: 1.5rem; }
  .testimonial-body { grid-template-columns: 1fr; gap: 1.25rem; }
  .testimonial-quote { font-size: 0.95rem; }
  .testimonial-track { min-height: auto; }
  .preview-frame { height: 140px; }
  .preview-mock { height: 140px; }

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

  .footer-grid { grid-template-columns: 1fr; text-align: center; }

  .stats-bar {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .video-cta {
    padding: 2rem 1.5rem;
  }

  .video-cta-text {
    font-size: 1.25rem;
  }

  .video-play-btn {
    width: 60px;
    height: 60px;
  }

  .video-play-btn svg {
    width: 24px;
    height: 24px;
  }

  .sticky-cta-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0;
    width: 56px;
    height: 56px;
    justify-content: center;
    border-radius: 50%;
  }

  .sticky-cta-btn span {
    display: none;
  }
}

/* ========================================
   STICKY CTA BUTTON
   ======================================== */

.sticky-cta-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: var(--bg);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 32px rgba(212, 168, 83, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(100px);
  pointer-events: none;
}

.sticky-cta-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 168, 83, 0.5);
  background: var(--primary-light);
}

.sticky-cta-btn svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   VIDEO SHOWCASE SECTION
   ======================================== */

#video-showcase {
  position: relative;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.video-card {
  background: var(--surface);
  border: 1px solid rgba(212, 168, 83, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 168, 83, 0.2);
  box-shadow: 0 20px 60px rgba(212, 168, 83, 0.15);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: var(--bg);
  overflow: hidden;
}

.video-loading-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  animation: pulse 1.5s ease-in-out infinite;
}

.video-loading-placeholder::after {
  content: '';
  width: 60px;
  height: 60px;
  border: 3px solid rgba(212, 168, 83, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

.showcase-video {
  z-index: 2;
}

.showcase-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .showcase-video {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(9, 9, 11, 0.3) 50%, rgba(9, 9, 11, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-card:hover .video-overlay {
  opacity: 1;
  pointer-events: auto;
}

.video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid rgba(255, 255, 255, 0.2);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(212, 168, 83, 0.3);
}

.video-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(212, 168, 83, 0.5);
}

.video-play-btn svg {
  margin-left: 3px;
  width: 28px;
  height: 28px;
}

.video-info {
  padding: 1.75rem;
}

.video-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.video-desc {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.video-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.video-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.stat-icon {
  font-size: 1rem;
}

.video-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.08) 0%, rgba(212, 168, 83, 0.02) 100%);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: var(--radius);
}

.video-cta-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1;
    transform: translateY(0);
  }

  .scan-line {
    width: 100%;
  }

  #scroll-progress {
    display: none;
  }
}
