/* ==========================================
   BENJAMIN ORTAIS - ADVISORY PRACTICE
   Design System & Styles
   ========================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
  /* Colors - Founder OS Theme */
  --navy:          #050505;
  --navy-light:    #0F0F0F;
  --navy-lighter:  #1A1A1A;
  --gold:          #E2FF31; /* Neon Yellow/Lime */
  --gold-light:    #E9FF5C;
  --gold-dim:      rgba(226, 255, 49, 0.1);
  --gold-glow:     rgba(226, 255, 49, 0.2);
  --teal:          #FFFFFF; /* Swapped to white for stark contrast */
  --teal-dim:      rgba(255, 255, 255, 0.05);
  --red-alert:     #FF3366;
  --green:         #22c55e;
  --white:         #ffffff;
  --white-90:      rgba(255, 255, 255, 0.9);
  --white-70:      rgba(255, 255, 255, 0.7);
  --white-50:      rgba(255, 255, 255, 0.5);
  --white-20:      rgba(255, 255, 255, 0.2);
  --white-10:      rgba(255, 255, 255, 0.1);
  --white-05:      rgba(255, 255, 255, 0.05);
  --text-primary:  #FFFFFF;
  --text-secondary:#999999;
  --text-muted:    #666666;

  /* Typography */
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:  'Inter', -apple-system, sans-serif; /* Dropping serif for modern tech look */

  /* Spacing */
  --section-padding: 120px 0;
  --section-padding-mobile: 72px 0;
  --container-width: 1120px;
  --container-padding: 0 24px;

  /* Borders & Radius - Sharper for Founder OS look */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.8);
  --shadow-glow:  0 0 40px rgba(226, 255, 49, 0.15);

  /* Transitions */
  --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--white); } /* Inverse hover to white for stark contrast */

/* --- Layout --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

section {
  padding: var(--section-padding);
  position: relative;
  scroll-margin-top: 100px;
}

/* --- Typography --- */
.section-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--gold);
  color: #000000;
  box-shadow: 0 4px 16px rgba(226, 255, 49, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(226, 255, 49, 0.4);
  color: #000000;
  background: var(--gold-light);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-20);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --- Glass Cards (Made more brutalist/solid) --- */
.glass-card {
  background: var(--navy-light);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-medium);
}

.glass-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Divider --- */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 24px 0;
  border-radius: 2px;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-medium);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--white-10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-brand span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

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

.nav-cta {
  padding: 10px 20px !important;
  font-size: 12px !important;
  letter-spacing: 0.5px;
}

.lang-switch {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

.lang-switch a {
  color: var(--text-muted);
  font-weight: 500;
}

.lang-switch a.active {
  color: var(--gold);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 168, 83, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(78, 205, 196, 0.04) 0%, transparent 50%),
    var(--navy);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--white-05) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-05) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--gold);
  position: relative;
}

.dynamic-text {
  display: inline-block;
  border-right: 3px solid var(--gold);
  padding-right: 4px;
  animation: blinkCursor 0.75s step-end infinite;
  white-space: nowrap;
}

@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--gold); }
}

.hero-text {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--white-10);
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat-value span {
  color: var(--gold);
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================
   PROBLEM SECTION
   ========================================== */
.problems {
  background: var(--navy-light);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.problem-card {
  padding: 32px 28px;
}

.problem-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.problem-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.problem-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================
   SOLUTION / PROCESS SECTION
   ========================================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-dim));
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

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

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
  background: var(--navy-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.service-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
}

.service-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
  border-radius: var(--radius-md);
}

.service-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.service-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================
   RESULTS / SOCIAL PROOF
   ========================================== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.result-card {
  padding: 28px;
  border-left: 3px solid var(--gold);
}

.result-profile {
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.result-highlight {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.result-detail {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--white-10);
}

.stat-block { text-align: center; }

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
  background: var(--navy-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--white-10);
  background: var(--navy-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.about-quote {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.5;
}

.about-bio {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-tag {
  padding: 6px 14px;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing-card {
  max-width: 560px;
  margin: 48px auto 0;
  padding: 48px;
  border: 2px solid rgba(212, 168, 83, 0.4);
  background: linear-gradient(145deg, var(--gold-dim) 0%, var(--white-05) 100%);
  border-radius: var(--radius-xl);
  text-align: center;
}

.pricing-tier {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 24px;
}

.pricing-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.pricing-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  font-size: 15px;
  color: var(--text-primary);
  padding: 10px 0;
  border-bottom: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}

.pricing-sub {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--white-10);
}

.pricing-sub-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.pricing-sub-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}

.pricing-sub-note {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==========================================
   CTA FINAL SECTION
   ========================================== */
.cta-final {
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(212, 168, 83, 0.08) 0%, transparent 60%),
    var(--navy);
}

.cta-final .section-title {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .section-subtitle {
  margin: 0 auto 40px;
  text-align: center;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--white-10);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==========================================
   BLOG ARCHITECTURE
   ========================================== */
.blog-header {
  padding: 160px 0 64px;
  background: var(--navy);
  border-bottom: 1px solid var(--white-10);
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.blog-card {
  background: var(--navy-light);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.blog-meta {
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 700;
}

.blog-title {
  font-size: 22px;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.blog-link {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Single Article Prosa */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 24px 80px;
}

.article-header {
  margin-bottom: 64px;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--white);
  line-height: 1.1;
  margin: 16px 0 24px;
}

.article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content h2 {
  font-size: 28px;
  color: var(--white);
  margin: 48px 0 24px;
  line-height: 1.2;
}

.article-content h3 {
  font-size: 22px;
  color: var(--white);
  margin: 32px 0 16px;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 12px;
}

.article-content a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 0 16px 24px;
  margin: 32px 0;
  font-style: italic;
  font-size: 19px;
  color: var(--white);
  background: var(--white-05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  section {
    padding: var(--section-padding-mobile);
  }

  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--white-10);
  }

  .hero-title { font-size: clamp(32px, 8vw, 48px); }
  .hero-stats { flex-direction: column; gap: 24px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; justify-content: center; }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-steps::before { display: none; }

  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .stats-row {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-text { font-size: 16px; }
  .pricing-card { padding: 32px 24px; }
  .pricing-amount { font-size: 36px; }
}
