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

:root {
  --bg-primary: #121416;
  --bg-secondary: #0f1113;
  --bg-tertiary: #0a0b0d;
  --bg-hero: linear-gradient(155deg, #1a1d1f 0%, #121416 40%, #161a1c 100%);
  --text-primary: #ebe6e1;
  --text-secondary: rgba(235,230,225,0.65);
  --text-muted: rgba(235,230,225,0.55);
  --text-faint: rgba(235,230,225,0.4);
  --accent: #c8a08c;
  --accent-secondary: #b8917b;
  --accent-green: #8c9b82;
  --border-color: rgba(235,230,225,0.06);
  --border-light: rgba(235,230,225,0.08);
  --border-medium: rgba(235,230,225,0.18);
  --glow-color: rgba(200,160,140,0.07);
  --card-bg: rgba(235,230,225,0.02);
  --nav-link: rgba(235,230,225,0.55);
  --nav-link-hover: rgba(235,230,225,0.9);
}

[data-theme="light"] {
  --bg-primary: #f8f6f4;
  --bg-secondary: #f0ece8;
  --bg-tertiary: #e8e4e0;
  --bg-hero: linear-gradient(155deg, #ffffff 0%, #f8f6f4 40%, #f4f0ec 100%);
  --text-primary: #1a1d1f;
  --text-secondary: rgba(26,29,31,0.75);
  --text-muted: rgba(26,29,31,0.65);
  --text-faint: rgba(26,29,31,0.5);
  --accent: #a07860;
  --accent-secondary: #8a6850;
  --accent-green: #6a7a62;
  --border-color: rgba(26,29,31,0.08);
  --border-light: rgba(26,29,31,0.1);
  --border-medium: rgba(26,29,31,0.15);
  --glow-color: rgba(160,120,96,0.1);
  --card-bg: rgba(26,29,31,0.03);
  --nav-link: rgba(26,29,31,0.6);
  --nav-link-hover: rgba(26,29,31,0.9);
}

body {
  background: var(--bg-primary);
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
}

.italic {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px;
}

section {
  position: relative;
}

.section-padding {
  padding: 120px 64px;
}

.section-padding-sm {
  padding: 100px 64px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  padding: 16px 32px;
  background: linear-gradient(135deg, #c8a08c 0%, #b8917b 100%);
  border: none;
  border-radius: 6px;
  color: #1a1d1f;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary {
  padding: 16px 32px;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-label.green { color: var(--accent-green); }
.section-label.coral { color: var(--accent); }

/* ============================================
   GRAIN OVERLAY
   ============================================ */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUAAAAAAAAAAAAAAAAAAAAAAADgKxmiAAAABnRSTlMFBQUFBQVBAXIxAAAASklEQVQ4y2MgErCAMCjAxMDAFMJAGhgFo2AUjIJRMApGwSgYBaNgFIyCUTAKRsEoGAWjYBSMglEwCkbBKBgFo2AUDDkAAgYGJgYAMbwD4cdfP+YAAAAASUVORK5CYII=");
  background-repeat: repeat;
  pointer-events: none;
  will-change: auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 64px;
  position: relative;
  z-index: 10;
  background: transparent;
}

.logo {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 44px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--nav-link);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-links a.albert {
  color: var(--accent);
  opacity: 0.7;
}

.nav-links a.lang {
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.nav-links a.lang:hover {
  color: var(--text-muted);
}

.nav-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  border: none;
  border-radius: 6px;
  color: #1a1d1f;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-link);
  transition: color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  color: var(--nav-link-hover);
  border-color: var(--nav-link);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--bg-hero);
  padding: 0 0 140px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--glow-color) 0%, rgba(180,140,120,0.03) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 65vh;
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(140,155,130,0.08);
  border: 1px solid rgba(140,155,130,0.15);
  border-radius: 4px;
  margin-bottom: 36px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #8c9b82;
  border-radius: 50%;
}

.badge-text {
  font-size: 12px;
  color: #8c9b82;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.12;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-subhead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 44px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 64px;
}

.trust-row {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.trust-item h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 12px;
  color: var(--text-faint);
}

/* ============================================
   HERO VISUAL
   ============================================ */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,160,140,0.06) 0%, transparent 70%);
}

.visual-container {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(200,160,140,0.08) 0%, rgba(200,160,140,0.02) 100%);
  border: 1px solid rgba(200,160,140,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(235,230,225,0.04);
}

.blob-main {
  width: 180px;
  height: 180px;
  background: linear-gradient(145deg, #ebe6e1 0%, #d4ccc4 40%, #c8a08c 100%);
  border-radius: 42% 58% 55% 45% / 52% 45% 55% 48%;
  box-shadow:
    0 25px 50px rgba(0,0,0,0.25),
    0 10px 20px rgba(0,0,0,0.15),
    inset 0 -8px 20px rgba(0,0,0,0.08),
    inset 0 8px 20px rgba(255,255,255,0.15);
  animation: float 7s ease-in-out infinite, morph 10s ease-in-out infinite;
  will-change: transform, border-radius;
}

.blob-accent {
  position: absolute;
  bottom: 65px;
  right: 70px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8c9b82 0%, #7a8972 100%);
  border-radius: 50%;
  opacity: 0.7;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  animation: float 5s ease-in-out infinite reverse;
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes morph {
  0%, 100% { border-radius: 42% 58% 55% 45% / 52% 45% 55% 48%; }
  25% { border-radius: 55% 45% 48% 52% / 45% 55% 45% 55%; }
  50% { border-radius: 48% 52% 45% 55% / 55% 48% 52% 45%; }
  75% { border-radius: 45% 55% 52% 48% / 48% 52% 48% 52%; }
}

/* ============================================
   PHILOSOPHY
   ============================================ */
.philosophy {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  text-align: center;
}

.philosophy-content {
  max-width: 900px;
  margin: 0 auto;
}

.philosophy h2 {
  font-size: 42px;
  line-height: 1.35;
  margin-bottom: 24px;
}

.philosophy p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================
   SOLUTION
   ============================================ */
.solution {
  background: var(--bg-secondary);
}

.solution h2 {
  font-size: 44px;
  line-height: 1.3;
  max-width: 700px;
  margin-bottom: 80px;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.diagram {
  padding: 48px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.diagram-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.diagram-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.diagram-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(140,155,130,0.15);
  border: 1px solid rgba(140,155,130,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-icon svg {
  stroke: var(--accent-green);
}

.diagram-text h4 {
  font-size: 14px;
  font-weight: 500;
}

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

.diagram-arrow {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.diagram-arrow svg {
  stroke: var(--text-faint);
}

.diagram-box {
  padding: 24px;
  background: rgba(200,160,140,0.08);
  border: 1px solid rgba(200,160,140,0.2);
  border-radius: 8px;
}

.diagram-box-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.diagram-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.diagram-tag {
  padding: 6px 12px;
  background: var(--card-bg);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature {
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  opacity: 0.8;
}

.feature h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================
   USE CASES
   ============================================ */
.use-cases {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.use-cases h2 {
  font-size: 44px;
  line-height: 1.3;
  margin-bottom: 64px;
}

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

.case-card {
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.case-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.3;
}

.case-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--bg-primary);
  text-align: center;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about h2 {
  font-size: 36px;
  line-height: 1.35;
  margin-bottom: 24px;
}

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

.about p:last-child {
  margin-bottom: 0;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  background: var(--bg-secondary);
}

.process-header {
  text-align: center;
  margin-bottom: 80px;
}

.process h2 {
  font-size: 44px;
  line-height: 1.3;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step {
  text-align: center;
}

.step-number {
  font-size: 48px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 24px;
}

.step h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================
   CREDENTIALS
   ============================================ */
.credentials {
  background: var(--bg-tertiary);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.credential h4 {
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 4px;
}

.credential h5 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.credential p {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  text-align: center;
  position: relative;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(200,160,140,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.cta h2 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.25;
}

.cta p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta .btn-primary {
  padding: 18px 44px;
  font-size: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 48px 64px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
}

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

.footer-logo {
  font-size: 18px;
  font-weight: 300;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: none;
}

.footer-links a.albert {
  color: var(--accent);
  opacity: 0.6;
}

.footer-links a.lang {
  color: var(--text-faint);
  opacity: 0.75;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-content,
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-visual {
    order: -1;
  }

  .cases-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .section-padding,
  .section-padding-sm {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .philosophy h2,
  .solution h2,
  .use-cases h2,
  .process h2,
  .cta h2 {
    font-size: 32px;
  }

  .trust-row {
    flex-direction: column;
    gap: 24px;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

  footer {
    padding: 32px 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
