/* ============================
   ANIS CHERIET — MINIMAL
   ============================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --bg-dark: #111111;
  --text: #111111;
  --text-mid: #555555;
  --text-light: #999999;
  --text-white: #eeeeee;
  --accent: #111111;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --card: #ffffff;
  --radius: 8px;
  --shadow: 0 1px 4px rgba(0,0,0,0.04);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ============================
   NAV
   ============================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.nav-scrolled { border-bottom-color: var(--border-light); }

.nav-inner {
  max-width: 1060px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { font-weight: 700; font-size: 0.9rem; letter-spacing: -0.2px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: var(--text-light); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--text); color: white !important;
  padding: 7px 16px; border-radius: 6px; font-weight: 600 !important;
  font-size: 0.82rem !important;
}
.nav-cta:hover { opacity: 0.85 !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 4px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text); border-radius: 1px; }

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

.hero { padding: 120px 24px 50px; max-width: 1060px; margin: 0 auto; }

.hero-content {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 56px; align-items: center;
}

.hero-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-light); margin-bottom: 14px;
}

.hero-text h1 {
  font-size: 2.4rem; font-weight: 800; line-height: 1.2;
  letter-spacing: -1px; margin-bottom: 20px;
}

.highlight { color: var(--text); border-bottom: 2px solid var(--text); }

.hero-sub {
  font-size: 1rem; color: var(--text-mid); line-height: 1.8;
  margin-bottom: 32px; max-width: 500px;
}

.hero-actions { display: flex; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; padding: 11px 22px;
  border-radius: 6px; font-weight: 600; font-size: 0.85rem;
  transition: all 0.2s var(--ease); border: none; cursor: pointer;
}
.btn-primary { background: var(--text); color: white; }
.btn-primary:hover { opacity: 0.85; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text); }

.hero-image { position: relative; }
.hero-image img {
  border-radius: var(--radius); object-fit: cover; width: 100%;
  aspect-ratio: 4/5;
}

/* ============================
   NUMBERS BAR
   ============================ */

.numbers { padding: 40px 0; border-top: 1px solid var(--border-light); }

.numbers-grid {
  display: flex; justify-content: space-between; gap: 20px;
  margin-bottom: 28px;
}

.number-item { text-align: center; flex: 1; }
.number-value { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; }
.number-label { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }

.logos-row {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
}
.logo-text { font-size: 0.78rem; font-weight: 600; color: var(--text-light); letter-spacing: 0.3px; text-transform: uppercase; }
.logo-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

/* ============================
   SECTIONS
   ============================ */

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-white); }

.section-title {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.3px;
  margin-bottom: 8px; text-align: center;
}
.section-title.light { color: white; }
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 40px; font-size: 0.92rem; }
.section-sub.light { color: #777; }

/* ============================
   MY STORY
   ============================ */

.story-heading {
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.story-intro {
  font-size: 1.1rem; color: var(--text-mid); line-height: 1.7;
  margin-bottom: 48px;
}

.chapter {
  margin-bottom: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
  opacity: 0; transform: translateY(20px);
  transition: all 0.5s var(--ease);
}
.chapter.visible { opacity: 1; transform: translateY(0); }
.chapter:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.chapter-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  color: var(--text-light); text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.chapter h3 {
  font-size: 1.3rem; font-weight: 700; line-height: 1.35;
  letter-spacing: -0.3px; margin-bottom: 16px;
}

.chapter p {
  font-size: 0.95rem; color: var(--text-mid); line-height: 1.8;
  margin-bottom: 12px;
}

.chapter p strong { color: var(--text); }

.story-list {
  list-style: none; padding: 0; margin: 12px 0;
}

.story-list li {
  position: relative; padding-left: 20px; margin-bottom: 12px;
  font-size: 0.95rem; color: var(--text-mid); line-height: 1.7;
}

.story-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-light);
}

.story-list li strong { color: var(--text); }

.story-images {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 24px;
}

.story-images img {
  border-radius: var(--radius); object-fit: cover;
  height: 220px; width: 100%;
}

.story-images img:only-child {
  grid-column: 1 / -1; height: 280px;
}

/* ============================
   PROOF / TRACK RECORD
   ============================ */

.proof-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 40px;
}

.proof-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 24px;
  transition: all 0.3s var(--ease);
  opacity: 0; transform: translateY(16px);
}
.proof-card.visible { opacity: 1; transform: translateY(0); }
.proof-card:hover { background: rgba(255,255,255,0.08); }

.proof-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.proof-tags span {
  font-size: 0.65rem; font-weight: 600; padding: 2px 8px;
  border-radius: 4px; background: rgba(255,255,255,0.12); color: #ccc;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.proof-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: white; }
.proof-card p { font-size: 0.84rem; color: #888; line-height: 1.6; margin-bottom: 14px; }
.proof-company { font-size: 0.75rem; color: #555; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }

/* ============================
   VALUE PROPS
   ============================ */

.value-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 40px;
}

.value-card {
  padding: 24px; background: var(--bg-alt); border: 1px solid var(--border-light);
  border-radius: var(--radius); transition: all 0.3s var(--ease);
  opacity: 0; transform: translateY(16px);
}
.value-card.visible { opacity: 1; transform: translateY(0); }

.value-icon { font-size: 1.2rem; margin-bottom: 10px; }
.value-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.value-card p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.7; }

/* ============================
   EDUCATION
   ============================ */

.edu-grid { display: flex; flex-direction: column; gap: 0; margin-top: 40px; max-width: 640px; margin-left: auto; margin-right: auto; }

.edu-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--border-light);
  opacity: 0; transform: translateY(12px);
  transition: all 0.4s var(--ease);
}
.edu-item.visible { opacity: 1; transform: translateY(0); }
.edu-item:last-child { border-bottom: none; }

.edu-year {
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  min-width: 60px;
}
.edu-item strong { font-size: 0.88rem; display: block; margin-bottom: 3px; }
.edu-item p { font-size: 0.82rem; color: var(--text-light); margin: 0; }

/* ============================
   WHAT I'M BUILDING
   ============================ */

.now-single { margin-bottom: 40px; }

.now-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 56px;
}

.previous-title {
  font-size: 0.85rem; font-weight: 600; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}

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

.previous-card {
  padding: 20px; background: var(--bg-alt); border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.previous-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.previous-card p { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }

.now-card {
  padding: 24px; background: var(--bg-alt); border: 1px solid var(--border-light);
  border-radius: var(--radius); transition: all 0.3s var(--ease);
  opacity: 0; transform: translateY(16px);
}
.now-card.visible { opacity: 1; transform: translateY(0); }

.now-card-featured { border-color: var(--text); }

.now-tag {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-light); margin-bottom: 10px; display: block;
}

.now-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.now-card p { font-size: 0.84rem; color: var(--text-mid); line-height: 1.6; }

/* ============================
   30 APPS
   ============================ */

.apps-section { margin-top: 16px; }

.apps-title {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}

.apps-counter {
  font-size: 0.72rem; font-weight: 600; background: var(--text);
  color: white; padding: 2px 10px; border-radius: 4px;
}

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

.app-card {
  background: var(--bg-alt); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 16px; display: block;
  transition: all 0.2s var(--ease); color: inherit;
}
.app-card:hover { border-color: var(--text); }
.app-card-locked { opacity: 0.35; pointer-events: none; }

.app-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.app-icon { font-size: 1.1rem; }

.app-badge {
  font-size: 0.6rem; font-weight: 600; padding: 2px 7px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-done { background: #e8f5e9; color: #2e7d32; }
.badge-active { background: #e3f2fd; color: #1565c0; }
.badge-new { background: #fff8e1; color: #f57f17; }

.app-card h4 { font-size: 0.84rem; font-weight: 600; margin-bottom: 4px; }
.app-card p { font-size: 0.78rem; color: var(--text-light); line-height: 1.5; margin-bottom: 6px; }
.app-day { font-size: 0.68rem; color: var(--text-light); }

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

.contact-text {
  color: #777; max-width: 460px; margin: 0 auto 36px;
  font-size: 0.95rem; line-height: 1.7;
}

.contact-links {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-bottom: 36px;
}

.contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: #ccc; font-size: 0.88rem; font-weight: 500;
  padding: 10px 24px; background: rgba(255,255,255,0.05);
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s var(--ease);
}
.contact-link:hover { background: rgba(255,255,255,0.1); color: white; }

.contact-social { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }

.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 6px;
  background: rgba(255,255,255,0.06); color: #999;
  transition: all 0.2s var(--ease);
}
.social-icon:hover { background: rgba(255,255,255,0.12); color: white; }

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

.footer {
  text-align: center; padding: 16px 24px;
  background: #0a0a0a; color: #444; font-size: 0.75rem;
}

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

@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr 280px; gap: 40px; }
  .hero-text h1 { font-size: 2rem; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 60px; left: 0; right: 0;
    background: white; flex-direction: column; padding: 16px 20px;
    gap: 12px; border-bottom: 1px solid var(--border-light);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { padding: 100px 24px 32px; }
  .hero-content { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; max-width: 240px; margin: 0 auto; }
  .hero-image img { aspect-ratio: 1/1; border-radius: 50%; }

  .numbers-grid { flex-wrap: wrap; gap: 12px; }
  .number-item { flex: 1 1 40%; }

  .story-heading { font-size: 1.5rem; }
  .chapter h3 { font-size: 1.15rem; }
  .story-images { grid-template-columns: 1fr; }
  .story-images img { height: 180px; }

  .proof-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .now-grid { grid-template-columns: 1fr; }
  .previous-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .numbers-grid { flex-direction: column; }
  .apps-grid { grid-template-columns: 1fr; }
}
