/*
Theme Name: GeneratePress Child
Theme URI: https://alp-see.com
Description: Ultimately Professional Dark Mode Child Theme
Author: Gemini CLI
Author URI: https://alp-see.com
Template: generatepress
Version: 2.0.0
Text Domain: generatepress-child
*/

/* ============================================================
   ALP-SEE Web-Engineering — Premium Dark Mode Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;700;800;900&display=swap');

/* ---- Premium Tokens ---------------------------------------- */
:root {
  /* Core Colors */
  --bg-base: #050505;
  --bg-surface: #0e0e0e;
  --bg-surface-elevated: #161616;
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  
  /* Accents & Gradients */
  --accent-glow: rgba(59, 130, 246, 0.5);
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-text: linear-gradient(to right, #f8fafc, #cbd5e1);
  
  /* Borders & Lines */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Fibonacci Base (Fluid) */
  --base-size: clamp(16px, 1.2vw + 12px, 21px);
  
  /* Golden Ratio Scaling (1.618) */
  --phi: 1.618;
  
  /* Fibonacci Typography Scale */
  --step--1: calc(var(--base-size) / var(--phi));           /* ~13px */
  --step-0: var(--base-size);                               /* ~21px */
  --step-1: calc(var(--base-size) * var(--phi));            /* ~34px */
  --step-2: calc(var(--step-1) * var(--phi));               /* ~55px */
  --step-3: calc(var(--step-2) * var(--phi));               /* ~89px */
  --giant: calc(var(--step-3) * var(--phi));                /* ~144px */
  
  /* Fibonacci Spacing / Vertical Rhythm */
  --space-3: calc(1rem / var(--phi));                       /* ~8px */
  --space-5: 1rem;                                          /* ~13px */
  --space-8: calc(1rem * var(--phi));                       /* ~21px */
  --space-13: calc(1rem * var(--phi) * var(--phi));         /* ~34px */
  --space-21: calc(1rem * var(--phi) * var(--phi) * var(--phi)); /* ~55px */
  --space-34: calc(1rem * var(--phi) * var(--phi) * var(--phi) * var(--phi)); /* ~89px */
  --space-55: calc(1rem * var(--phi) * var(--phi) * var(--phi) * var(--phi) * var(--phi)); /* ~144px */
  
  /* Layout */
  --gutter: var(--space-21);
  --margin: var(--space-21);
  --maxw: 1280px;
  --read-w: 65ch;
  
  /* Motion */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--phi);
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle background noise for premium texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient Glow Effects */
.ambient-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
}

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease-smooth); }
button { font: inherit; background: none; border: none; cursor: pointer; }
::selection { background: rgba(59, 130, 246, 0.3); color: #fff; }

/* ---- Typography --------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: calc(var(--phi) / 1.4);
  letter-spacing: -0.03em;
  margin: 0;
  margin-bottom: var(--space-8);
}

.display { font-size: var(--giant); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; margin-bottom: var(--space-5); }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lede {
  font-size: var(--step-1);
  color: var(--text-secondary);
  font-weight: 300;
  max-width: var(--read-w);
  line-height: var(--phi);
}

.kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ---- Layout Primitives -------------------------------------- */
.shell { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }

.golden-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-34); }
@media (min-width: 900px) { .golden-grid { grid-template-columns: 61.8% 38.2%; align-items: center; } }

.golden-grid-rev { display: grid; grid-template-columns: 1fr; gap: var(--space-34); }
@media (min-width: 900px) { .golden-grid-rev { grid-template-columns: 38.2% 61.8%; align-items: center; } }

.rule { height: 1px; background: var(--border-subtle); border: 0; margin: 0; }

/* ---- Header (Glassmorphism) --------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}
.site-head .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.2rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff;
}
.brand .dot {
  width: 6px;
  height: 6px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(2px);
  box-shadow: 0 0 10px var(--accent-glow);
}
.nav { display: flex; gap: 2.5rem; align-items: center; }
.nav a {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.nav a:hover { color: #fff; }
.nav .cta {
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  background: var(--border-subtle);
  border: 1px solid var(--border-strong);
  transition: all 0.3s var(--ease-smooth);
}
.nav .cta:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.menu-toggle { display: none; }

/* ---- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  padding: 1rem 2rem;
  border-radius: 100px;
  background: var(--gradient-primary);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 20px rgba(59, 130, 246, 0.3);
  overflow: hidden;
  position: relative;
}
.btn::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5), 0 0 30px rgba(59, 130, 246, 0.5);
}
.btn:hover::before { opacity: 1; }
.btn .arr { transition: transform 0.4s var(--ease-spring); }
.btn:hover .arr { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.btn--ghost:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ---- Sections & Hero ---------------------------------------- */
.section { padding-block: var(--space-55); position: relative; }
.hero { padding-block: var(--space-55) var(--space-34); }
.hero .golden-grid { align-items: center; }
.hero-head { max-width: 900px; margin-top: var(--space-13); position: relative; z-index: 2; }
.hero-foot {
  margin-top: var(--space-21);
  display: flex;
  flex-direction: column;
  gap: var(--space-13);
}
.hero-foot .aside { display: flex; gap: var(--space-8); flex-wrap: wrap; }

.section-head { margin-bottom: var(--space-34); max-width: 800px; }

/* ---- Premium Service Cards ---------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-13);
}
.svc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--space-8);
  padding: var(--space-13);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
}
.svc-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.svc-card:hover::before { opacity: 1; }
.svc-card .n {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 800;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
  display: block;
}
.svc-card .name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.svc-card .desc {
  color: var(--text-secondary);
  font-size: var(--step--1);
}

/* ---- Tenets (Methodology) ----------------------------------- */
.approach {
  background: #000;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.approach::after {
  content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: radial-gradient(circle at right, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.tenets { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4rem 2rem; }
.tenet {
  grid-column: span 6;
  display: flex;
  gap: 1.5rem;
}
.tenet .n {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-tertiary);
}
.tenet h3 {
  font-size: var(--step-1);
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}
.tenet p {
  color: var(--text-secondary);
  font-size: var(--step--1);
  margin: 0;
  max-width: 45ch;
}

/* ---- Stats -------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-21);
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: var(--giant);
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .num .u { font-size: 0.5em; color: var(--text-tertiary); -webkit-text-fill-color: var(--text-tertiary); }
.stat .lbl {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ---- Quote Band --------------------------------------------- */
.band {
  text-align: center;
  position: relative;
}
.band blockquote {
  margin: 0 auto;
  max-width: 900px;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
}
.band blockquote .em {
  color: transparent;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.band .cite {
  margin-top: 2rem;
  color: var(--text-tertiary);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Footer ------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-34) var(--space-13);
  background: #000;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-13);
}
.foot-brand { grid-column: 1 / 6; }
.foot-brand .big {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.foot-col { grid-column: span 2; display: flex; flex-direction: column; gap: 0.8rem; }
.foot-col h4 {
  font-size: var(--step--1);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.foot-col a {
  color: var(--text-secondary);
  font-size: var(--step--1);
  transition: color 0.3s ease;
}
.foot-col a:hover { color: #fff; }
.foot-end {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* ---- Reveal Animation --------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }

/* ---- Responsive --------------------------------------------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .tenet { grid-column: span 12; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col { grid-column: span 6; }
}
@media (max-width: 600px) {
  .hero-foot .aside { flex-direction: column; }
  .foot-col { grid-column: 1 / -1; }
  .foot-end { flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
}
