/* ═══════════════════════════════════════════
   Active Vision — styles.css
   2026 Rebrand: Warm editorial + Playfair Display
   ═══════════════════════════════════════════ */

/* ═══ Variables ═══ */
:root {
  --av-gold: #fcb813;
  --av-orange: #f05a22;
  --av-blue: #0088cf;

  --av-cream: #f7f5f0;
  --av-warm-white: #fdfcf9;
  --av-sand: #ece9e1;
  --av-gold-soft: #fdf4dd;

  --av-ink: #1a1a18;
  --av-text: #3d3d3a;
  --av-caption: #8a877e;

  --f-display: 'Playfair Display', Georgia, serif;
  --f-heavy: 'H-FuturaHeavy', 'Arial Black', sans-serif;
  --f-body: 'DM Sans', Arial, sans-serif;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --max-w: 1080px;
}

/* ═══ Reset ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--av-text);
  background: var(--av-cream);
}
img { max-width: 100%; display: block; }
a { color: var(--av-blue); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--av-ink); }
strong { font-weight: 500; }
::selection { background: var(--av-gold); color: var(--av-ink); }

/* ═══ Layout ═══ */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .wrap { padding: 0 20px; } }

/* ═══ Navigation ═══ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(247, 245, 240, 0.6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-nav.scrolled {
  background: rgba(247, 245, 240, 0.95);
  box-shadow: 0 1px 0 var(--av-sand);
}
.site-nav .nav-logo { height: 28px; }
.site-nav .nav-links { list-style: none; display: flex; gap: 28px; }
.site-nav .nav-links a {
  font-family: var(--f-heavy);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--av-caption);
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a.active { color: var(--av-ink); }
.site-nav .nav-right { display: flex; align-items: center; gap: 16px; }
.site-nav .lang-toggle {
  font-family: var(--f-body); font-weight: 300; font-size: 13px;
  color: var(--av-caption);
}
.site-nav .lang-toggle span { color: var(--av-ink); font-weight: 500; }
.site-nav .nav-cta {
  font-family: var(--f-heavy);
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--av-gold); color: var(--av-ink);
  padding: 10px 20px; border-radius: 5px;
  transition: all 0.3s var(--ease);
}
.site-nav .nav-cta:hover {
  background: #e5a611; color: var(--av-ink);
  transform: translateY(-1px);
}

/* Mobile nav */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: var(--av-ink);
  position: absolute; left: 0; transition: all 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 9px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--av-cream);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--f-display); font-weight: 400;
  font-size: 28px; color: var(--av-ink);
}

@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .site-nav .nav-links,
  .site-nav .nav-cta { display: none; }
  .menu-toggle { display: block; }
}

/* ═══ Sections ═══ */
.sec { padding: 100px 0; }
.sec--sm { padding: 64px 0; }
@media (max-width: 768px) { .sec { padding: 72px 0; } .sec--sm { padding: 48px 0; } }

.sec--cream { background: var(--av-cream); }
.sec--white { background: var(--av-warm-white); }
.sec--gold-soft { background: var(--av-gold-soft); }
.sec--ink { background: var(--av-ink); color: #d4d0c8; }
.sec--ink h2, .sec--ink h3 { color: var(--av-warm-white); }
.sec--ink .overline { color: var(--av-gold); }
.sec--gradient { background: linear-gradient(135deg, var(--av-gold), var(--av-orange)); color: var(--av-ink); }

/* ═══ Typography ═══ */
.overline {
  font-family: var(--f-heavy);
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--av-caption);
  display: block; margin-bottom: 12px;
}
h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2; color: var(--av-ink);
  margin-bottom: 16px;
}
h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.3; color: var(--av-ink);
  margin-bottom: 12px;
}
.lead {
  font-size: 19px; line-height: 1.7;
  color: var(--av-caption); max-width: 600px;
}

/* ═══ Decorative divider — gold→orange gradient ═══ */
.divider-gold {
  height: 3px; border: none;
  background: linear-gradient(90deg, var(--av-gold), var(--av-orange));
  margin: 0; width: 100%;
}
.divider-gold--short {
  width: 60px; height: 3px; border: none;
  background: linear-gradient(90deg, var(--av-gold), var(--av-orange));
  margin: 24px 0;
}
/* Diamond divider */
.divider-diamond {
  display: flex; align-items: center; justify-content: center;
  padding: 0; margin: 0;
  background: linear-gradient(135deg, var(--av-gold), var(--av-orange));
  height: 4px; position: relative;
}
.divider-diamond::after {
  content: '';
  width: 16px; height: 16px;
  background: linear-gradient(135deg, var(--av-gold), var(--av-orange));
  transform: rotate(45deg) scaleY(0.5);
  position: absolute;
  border-radius: 2px;
}

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex; align-items: center;
  font-family: var(--f-heavy);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 16px 36px; border-radius: 6px;
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.3s var(--ease); text-decoration: none;
}
.btn--gold {
  background: var(--av-gold); color: var(--av-ink); border-color: var(--av-gold);
}
.btn--gold:hover {
  background: #e5a611; border-color: #e5a611;
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(252,184,19,0.2);
  color: var(--av-ink);
}
.btn--outline {
  background: transparent; color: var(--av-ink); border-color: var(--av-sand);
}
.btn--outline:hover {
  border-color: var(--av-ink); transform: translateY(-2px); color: var(--av-ink);
}
.btn--outline-white {
  background: transparent; color: var(--av-warm-white); border-color: rgba(255,255,255,0.25);
}
.btn--outline-white:hover {
  border-color: var(--av-gold); color: var(--av-gold); transform: translateY(-2px);
}
.btn--dark {
  background: var(--av-ink); color: var(--av-warm-white); border-color: var(--av-ink);
}
.btn--dark:hover {
  background: #2a2a28; transform: translateY(-2px); color: var(--av-warm-white);
}

/* ═══ Hero ═══ */
.hero-split { padding-top: 100px; padding-bottom: 60px; }
.hero-split-inner {
  display: flex; align-items: center; gap: 48px;
}
.hero-split .hero-img {
  flex: 0 0 380px; height: 420px; overflow: hidden;
  background: var(--av-warm-white); border-radius: 12px;
  border: 1px solid var(--av-sand);
  box-shadow: 0 10px 32px rgba(0,0,0,0.05);
}
.hero-split .hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 28%; }
.hero-split .hero-text { flex: 1; }
.hero-split h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15; color: var(--av-ink);
  margin-bottom: 20px;
}
.hero-split .lead { margin-bottom: 24px; }
.hero-split .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .hero-split { padding-top: 80px; }
  .hero-split-inner { flex-direction: column; }
  .hero-split .hero-img { flex: none; width: 100%; height: 300px; margin: 0; }
  .hero-split h1 { font-size: clamp(28px, 6vw, 38px); }
}

/* ═══ Cards ═══ */
.card {
  background: var(--av-warm-white); border-radius: 12px; padding: 36px;
  border: 1px solid var(--av-sand);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.05);
}
.card-illustration {
  width: 100%; max-height: 220px; object-fit: cover;
  border-radius: 12px; margin-bottom: 20px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--av-caption); line-height: 1.7; }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--av-gold-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 18px; color: var(--av-gold);
}

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .cards-3 { grid-template-columns: 1fr; } }

/* ═══ News / Featured ═══ */
.news-claude-logo { height: 64px; margin-bottom: 24px; }

/* ═══ Founder ═══ */
.founder-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start;
}
.founder-photo {
  border-radius: 12px; overflow: hidden; aspect-ratio: 3/4;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.founder-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px;
}
.stat {
  text-align: center; padding: 16px 8px;
  background: var(--av-warm-white); border-radius: 8px;
  border: 1px solid var(--av-sand);
}
.stat-num {
  font-family: var(--f-display); font-weight: 400;
  font-size: 28px; color: var(--av-ink); display: block;
}
.stat-label {
  font-family: var(--f-body); font-weight: 300;
  font-size: 12px; color: var(--av-caption);
}
@media (max-width: 768px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 360px; margin: 0 auto; }
  .founder-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ Client logos ═══ */
.logos-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 32px;
}
.client-logo {
  height: 36px; opacity: 0.35;
  filter: grayscale(100%);
  transition: all 0.4s var(--ease);
}
.client-logo:hover { opacity: 0.7; filter: grayscale(0%); }
.client-logo.active { opacity: 1; filter: grayscale(0%); }

/* ═══ Timeline ═══ */
.timeline { margin-top: 36px; }
.tl-item {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--av-sand);
}
.tl-year {
  font-family: var(--f-display); font-weight: 400;
  font-size: 22px; color: var(--av-gold);
}
.tl-text { font-size: 16px; }
@media (max-width: 600px) {
  .tl-item { grid-template-columns: 56px 1fr; gap: 12px; }
  .tl-year { font-size: 18px; }
}

/* ═══ Media section ═══ */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.media-card {
  background: var(--av-cream); border-radius: 10px; padding: 28px;
  border: 1px solid var(--av-sand);
}
.media-card h4 {
  font-family: var(--f-heavy);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--av-gold); margin-bottom: 12px;
}
.media-card p, .media-card li { font-size: 15px; color: var(--av-text); }
.media-card ul { list-style: none; }
.media-card li { padding: 4px 0; }
@media (max-width: 768px) { .media-grid { grid-template-columns: 1fr; } }

/* ═══ Books ═══ */
.books-row {
  display: flex; gap: 20px; overflow-x: auto;
  padding: 20px 0; margin-top: 24px;
  -webkit-overflow-scrolling: touch;
}
.book-cover {
  flex: 0 0 auto; width: 140px;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s var(--ease);
}
.book-cover:hover { transform: translateY(-4px); }
.book-cover img { width: 100%; }

/* ═══ Partner pills ═══ */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill {
  font-family: var(--f-body); font-weight: 300; font-size: 13px;
  color: var(--av-caption);
  background: var(--av-warm-white); border: 1px solid var(--av-sand);
  padding: 6px 16px; border-radius: 20px;
}
.pill--highlight {
  background: var(--av-gold-soft); border-color: rgba(252,184,19,0.2);
  color: var(--av-text);
}

/* ═══ Ecosystem (dark section) ═══ */
.eco-claude {
  display: flex; align-items: center; gap: 40px;
  margin-bottom: 40px;
}
.eco-claude-logo {
  height: 48px;
  background: var(--av-cream);
  padding: 12px 20px;
  border-radius: 8px;
}
.eco-claude-text { max-width: 560px; }
.eco-tech-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}
.eco-logo {
  height: 28px; width: auto; opacity: 0.6;
  transition: opacity 0.3s ease;
}
.eco-logo:hover { opacity: 1; }
@media (max-width: 768px) {
  .eco-claude { flex-direction: column; gap: 20px; align-items: flex-start; }
}

/* ═══ Contact (gradient section) ═══ */
.contact-section { text-align: center; }
.contact-section h2 { color: var(--av-ink); }
.contact-section .lead { color: var(--av-ink); opacity: 0.8; margin: 0 auto 32px; }
.contact-info {
  font-family: var(--f-body); font-weight: 300; font-size: 15px;
  color: var(--av-ink); opacity: 0.6;
  margin-top: 24px; line-height: 1.8;
}

/* ═══ Footer ═══ */
.site-footer {
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--av-sand);
}
.site-footer p {
  font-family: var(--f-body); font-weight: 300;
  font-size: 12px; color: var(--av-caption);
}
.site-footer .built-with { opacity: 0.5; display: flex; align-items: center; }
@media (max-width: 768px) {
  .site-footer { flex-direction: column; gap: 8px; padding: 24px 20px; }
}

/* ═══ Scroll reveal ═══ */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ═══ Utility ═══ */
.text-center { text-align: center; }
.mt-48 { margin-top: 48px; }
.mt-32 { margin-top: 32px; }
.mt-16 { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; gap: 24px; } }
