/* ==========================================================================
   SHERVIN TAHMASEBI — Personal Brand Hub
   Premium Dark Minimal Executive Design System
   ========================================================================== */

:root {
  /* Colors */
  --bg: #070807;
  --bg-elevated: #0D0E0D;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-hover: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #F2F3ED;
  --text-secondary: #7A8078;
  --muted: #5A6058;
  --accent: #C9FF55;
  --accent-dim: rgba(201, 255, 85, 0.15);
  --accent-glow: rgba(201, 255, 85, 0.08);

  /* Typography */
  --font-sans: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-fa: 'Tahoma', 'Iranian Sans', 'Segoe UI', sans-serif;

  /* Sizing */
  --max-width: 1080px;
  --header-height: 72px;
  --section-padding: 104px;
  --container-padding: 28px;

  /* Animation */
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 280ms var(--ease);
  --transition-fast: 180ms var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

h1 { font-size: clamp(36px, 7vw, 64px); }
h2 { font-size: clamp(28px, 5vw, 42px); }
h3 { font-size: clamp(22px, 4vw, 32px); }
h4 { font-size: clamp(18px, 3vw, 24px); }

p { margin: 0 0 1.5em; color: var(--text-secondary); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}

.fa {
  font-family: var(--font-fa);
  direction: rtl;
  unicode-bidi: isolate;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 1;
}

section {
  padding: var(--section-padding) 0;
  border-top: 1px solid var(--line-soft);
}

section:first-of-type { border-top: none; }

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 50;
  background: rgba(7, 8, 7, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}

.logo:hover { color: var(--accent); transition: color var(--transition-fast); }

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

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg { width: 24px; height: 24px; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-content { max-width: 720px; }
.hero h1 { margin-bottom: 8px; }

.hero .fa-name {
  font-family: var(--font-fa);
  font-size: clamp(24px, 5vw, 42px);
  color: var(--text-secondary);
  margin-bottom: 32px;
  direction: rtl;
}

.hero-label {
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}

.hero-statement {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 520px;
}

/* ==========================================================================
   CARDS & PANELS
   ========================================================================== */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  background: var(--panel-hover);
  border-color: var(--line-strong);
}

.card-sm { padding: 24px; }

/* ==========================================================================
   GRID SYSTEM
   ========================================================================== */

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

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

/* ==========================================================================
   EXPERTISE SECTION
   ========================================================================== */

.expertise-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.expertise-item {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expertise-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.expertise-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.expertise-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.hero-founder {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.hero-founder strong { color: var(--text-secondary); font-weight: 500; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  background: transparent;
  color: var(--text);
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #b8f044;
  border-color: #b8f044;
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--line);
}

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

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow { transform: translateX(4px); }

/* ==========================================================================
   TIMELINE / JOURNEY
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-2px);
}

.timeline-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   VENTURES
   ========================================================================== */

.venture-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 40px;
  display: grid;
  gap: 24px;
  transition: all var(--transition);
}

.venture-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-hover);
}

.venture-card.current {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}

.venture-current-badge {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 2px;
  display: inline-block;
  width: fit-content;
}

.venture-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}

.venture-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

/* ==========================================================================
   INSIGHTS / BLOG
   ========================================================================== */

.article-card {
  display: grid;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: all var(--transition);
}

.article-card:hover { border-color: var(--line); }
.article-card:last-child { border-bottom: none; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.article-category {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 600;
}

.article-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.article-card:hover .article-title { color: var(--accent); }

.article-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Article body typography */
.article-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.article-body h2 { font-size: 28px; color: var(--text); margin: 48px 0 24px; }
.article-body h3 { font-size: 22px; color: var(--text); margin: 40px 0 20px; }
.article-body p { margin-bottom: 1.5em; }

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover { text-decoration: none; }

.article-body blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  border-left: 2px solid var(--accent);
  background: var(--panel);
  font-size: 20px;
  font-style: italic;
  color: var(--text);
}

.article-body ul, .article-body ol { margin: 24px 0; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }

.article-body code {
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.article-body pre {
  background: var(--panel);
  padding: 24px;
  border-radius: 2px;
  overflow-x: auto;
  margin: 24px 0;
}

.article-body pre code { padding: 0; background: none; }
.article-body img { margin: 32px 0; border-radius: 2px; }

.article-body figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

/* ==========================================================================
   NOW PAGE
   ========================================================================== */

.now-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.now-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: all var(--transition);
}

.now-item:hover {
  border-color: var(--line-strong);
  background: var(--panel-hover);
}

.now-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}

.now-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   PRESS / MEDIA KIT
   ========================================================================== */

.press-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 32px;
}

.press-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.press-value {
  font-size: 16px;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.press-value a { color: var(--accent); }

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-grid { display: grid; gap: 24px; }

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: all var(--transition);
}

.contact-item:hover {
  border-color: var(--line-strong);
  background: var(--panel-hover);
}

.contact-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  font-size: 16px;
  color: var(--text);
}

.contact-value a {
  color: var(--accent);
  transition: color var(--transition-fast);
}

.contact-value a:hover { color: var(--text); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  padding: 64px 0;

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 60;
  width: 0;
  transition: width 100ms linear;
}

/* ==========================================================================
   LOADER
   ========================================================================== */

#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  animation: loaderOut 0.5s var(--ease) 0.85s forwards;
}

#loader .lname {
  font-size: clamp(20px, 4.4vw, 34px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text);
}

#loader .lbar {
  width: clamp(120px, 30vw, 200px);
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

#loader .lbar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 40%;
  background: var(--accent);
  animation: loaderBar 1s var(--ease) forwards;
}

@keyframes loaderOut {
  to { opacity: 0; visibility: hidden; }
}

@keyframes loaderBar {
  to { left: 60%; }
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ==========================================================================
   BACKGROUND VISUAL SYSTEM
   ========================================================================== */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.025);
}

.bg-grid-line.horizontal {
  width: 100%;
  height: 1px;
}

.bg-grid-line.vertical {
  width: 1px;
  height: 100%;
}

.bg-grid-point {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-founder {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.footer-founder a { color: var(--accent); }

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

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

.footer-link {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover { color: var(--text); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
    --section-padding: 72px;
    --container-padding: 20px;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 32px var(--container-padding);
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav.open { transform: translateX(0); }

  .nav-link {
    padding: 16px 0;
    font-size: 18px;
    width: 100%;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-toggle { display: block; }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 48px;
  }

  .bg-grid { display: none; }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@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;
  }

  .reveal { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  z-index: 200;
  transition: top var(--transition-fast);
}

.skip-link:focus { top: 0; }

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .header, .footer, .bg-grid, #loader, .progress-bar {
    display: none !important;
  }

  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}