/* ============================================================
   THE STOIC CIRCLE – Website Styles
   Color palette mirrors the iOS app
   Fonts: Self-hosted (DSGVO-konform, kein Google CDN)
   ============================================================ */

/* ── Self-hosted Fonts (Open Font License) ── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/CormorantGaramond-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/CormorantGaramond-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/EBGaramond-Regular.woff2') format('woff2');
}

:root {
  --bg:          #1A1814;
  --bg-light:    #2A2520;
  --bg-deep:     #120F0B;
  --surface:     #E8DCC8;
  --surface-dim: rgba(232, 220, 200, 0.45);
  --accent:      #8B7D5E;
  --accent-bright: #C9A96E;
  --accent-dark: #6B5D3E;
  --marcus:      #8B6914;
  --seneca:      #6B3A3A;
  --epictetus:   #3A5A3A;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   40px;
  --transition:  0.3s ease;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-body:   'EB Garamond', Georgia, serif;
  --font-ui:     -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width:   1140px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--surface);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 68px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(26, 24, 20, 0.85);
  border-bottom: 1px solid rgba(139, 125, 94, 0.15);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.8; }
.nav-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--surface);
  letter-spacing: 0.02em;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(139, 125, 94, 0.12);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.lang-btn {
  padding: 5px 9px;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--surface-dim);
  transition: all var(--transition);
  opacity: 0.55;
  cursor: pointer;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-btn:hover { opacity: 1; transform: scale(1.15); }
.lang-btn.active {
  background: rgba(139, 125, 94, 0.25);
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(139, 125, 94, 0.4);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--surface);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--accent-bright); transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(139, 125, 94, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(139, 125, 94, 0.06) 0%, transparent 50%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: rgba(139, 125, 94, 0.08);
  top: 10%; right: 5%;
}
.hero-glow-2 {
  width: 300px; height: 300px;
  background: rgba(201, 169, 110, 0.06);
  bottom: 20%; left: 10%;
}
.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(139, 125, 94, 0.15);
  border: 1px solid rgba(139, 125, 94, 0.3);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--surface);
  margin-bottom: 24px;
}
.hero-title-gold { color: var(--accent-bright); }
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: rgba(232, 220, 200, 0.65);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--surface);
  color: var(--bg);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.btn-appstore:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
.btn-appstore svg { flex-shrink: 0; }
.btn-appstore span { display: flex; flex-direction: column; line-height: 1.2; }
.btn-appstore small { font-size: 0.7rem; opacity: 0.7; }
.btn-appstore strong { font-size: 0.95rem; }
.btn-appstore-large { padding: 18px 32px; border-radius: var(--radius-lg); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border: 1px solid rgba(139, 125, 94, 0.4);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--surface);
  transition: all var(--transition);
}
.btn-secondary:hover { background: rgba(139, 125, 94, 0.1); border-color: var(--accent); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--surface);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(139, 125, 94, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 125, 94, 0.4); }
.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--surface-dim);
}
.hero-meta-item svg { opacity: 0.6; }

/* ── Phone Mockup ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-mockup {
  position: relative;
  width: 285px;
  height: 605px;
  background: #0D0B08;
  border-radius: 52px;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.8),
    0 0 0 3px rgba(255,255,255,0.04),
    0 40px 80px rgba(0,0,0,0.8),
    0 0 60px rgba(139,125,94,0.15),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 30px;
  background: #0D0B08;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}
.phone-screen {
  width: 100%; height: 100%;
  overflow: hidden;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.phone-large {
  width: 300px;
  height: 636px;
}

/* Floating badges */
.hero-floating {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(42, 37, 32, 0.92);
  border: 1px solid rgba(139, 125, 94, 0.3);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero-floating span { font-size: 1.2rem; }
.hero-floating p {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--surface);
  white-space: nowrap;
}
.hero-floating-1 { top: 60px; right: -20px; animation: float 4s ease-in-out infinite; }
.hero-floating-2 { bottom: 120px; right: -30px; animation: float 4s ease-in-out infinite 1s; }
.hero-floating-3 { bottom: 60px; left: -20px; animation: float 4s ease-in-out infinite 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Quote Section ── */
.quote-section {
  padding: 80px 24px;
  background: var(--bg-deep);
  border-top: 1px solid rgba(139, 125, 94, 0.1);
  border-bottom: 1px solid rgba(139, 125, 94, 0.1);
}
.featured-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--surface);
  line-height: 1.6;
  margin-bottom: 20px;
}
.quote-author {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--accent-bright);
  letter-spacing: 0.05em;
}

/* ── Section Helpers ── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--surface);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--surface-dim);
  max-width: 580px;
  margin: 0 auto;
}

/* ── Features ── */
.features {
  padding: 120px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px;
  background: var(--bg-light);
  border: 1px solid rgba(139, 125, 94, 0.12);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: rgba(139, 125, 94, 0.35);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 125, 94, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--surface);
  margin-bottom: 12px;
}
.feature-desc {
  font-size: 0.98rem;
  color: var(--surface-dim);
  line-height: 1.75;
  margin-bottom: 16px;
}
.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(139, 125, 94, 0.1);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--accent-bright);
}

/* ── Philosophers ── */
.philosophers {
  padding: 120px 0;
  background: var(--bg-deep);
}
.philosophers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.philosopher-card {
  padding: 40px 32px;
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(139, 125, 94, 0.12);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.philosopher-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 125, 94, 0.3);
}
.philosopher-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--surface);
}
.marcus-avatar  { background: linear-gradient(135deg, #8B6914, #5A4410); }
.seneca-avatar  { background: linear-gradient(135deg, #6B3A3A, #4A2020); }
.epictetus-avatar { background: linear-gradient(135deg, #3A5A3A, #2A3A2A); }
.philosopher-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--surface);
  margin-bottom: 4px;
}
.philosopher-dates, .philosopher-role {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--surface-dim);
}
.philosopher-role {
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.philosopher-desc {
  font-size: 0.98rem;
  color: var(--surface-dim);
  line-height: 1.75;
  margin-bottom: 20px;
}
.philosopher-works {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(139, 125, 94, 0.08);
  border: 1px solid rgba(139, 125, 94, 0.2);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--accent-bright);
}

/* ── Showcase ── */
.showcase {
  padding: 120px 0;
}
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.showcase-desc {
  font-size: 1.1rem;
  color: var(--surface-dim);
  line-height: 1.8;
  margin-bottom: 32px;
}
.showcase-list {
  margin-bottom: 40px;
}
.showcase-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(139, 125, 94, 0.1);
  font-size: 1rem;
  color: var(--surface-dim);
}
.showcase-list li:first-child { border-top: 1px solid rgba(139, 125, 94, 0.1); }
.showcase-visual {
  display: flex;
  justify-content: center;
}

/* ── How it works ── */
.howitworks {
  padding: 120px 0;
  background: var(--bg-deep);
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 32px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.step { text-align: center; }
.step-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(139, 125, 94, 0.25);
  line-height: 1;
  margin-bottom: 16px;
}
.step-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--surface);
  margin-bottom: 12px;
}
.step-desc {
  font-size: 0.95rem;
  color: var(--surface-dim);
  line-height: 1.75;
}
.step-arrow {
  font-size: 2rem;
  color: rgba(139, 125, 94, 0.3);
  padding-top: 50px;
  align-self: start;
}

/* ── Download ── */
.download {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}
.download-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(139, 125, 94, 0.12) 0%, transparent 70%);
}
.download-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: rgba(139, 125, 94, 0.06);
  filter: blur(80px);
  border-radius: 50%;
}
.download-inner {
  position: relative;
  text-align: center;
}
.download-logo { margin: 0 auto 32px; }
.download-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--surface);
  margin-bottom: 16px;
  line-height: 1.2;
}
.download-subtitle {
  font-size: 1.2rem;
  color: var(--surface-dim);
  margin-bottom: 48px;
}
.download-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.download-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--surface-dim);
}

/* ── Footer ── */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(139, 125, 94, 0.12);
  padding: 64px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--surface-dim);
  margin-top: 8px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--surface-dim);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--surface); }
.footer-lang {
  display: flex;
  gap: 4px;
}
.lang-btn-footer {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--surface-dim);
  transition: all var(--transition);
  opacity: 0.5;
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-btn-footer:hover { opacity: 1; }
.lang-btn-footer.active {
  background: rgba(139, 125, 94, 0.2);
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(139, 125, 94, 0.35);
}
.footer-bottom {
  border-top: 1px solid rgba(139, 125, 94, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--surface-dim);
}
.footer-stoic {
  font-style: italic;
  text-align: right;
  max-width: 480px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 48px; }
}

@media (max-width: 768px) {
  .nav-cta { display: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
    padding: 60px 24px;
  }
  .hero-subtitle { margin: 0 auto 40px; }
  .hero-ctas { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-visual { display: none; } /* hide phone on mobile hero */
  .features-grid { grid-template-columns: 1fr; }
  .philosophers-grid { grid-template-columns: 1fr; }
  .showcase-inner { grid-template-columns: 1fr; gap: 48px; }
  .showcase-visual { display: none; }
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .step-arrow { display: none; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-stoic { text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .btn-appstore, .btn-secondary { width: 100%; justify-content: center; }
  .hero-badge { font-size: 0.7rem; }
}

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
