/* Theme: Black & White with Accent */
:root {
  --color-bg: #0b0b0c;
  --color-surface: #141416;
  --color-text: #f5f5f7;
  --color-muted: #b3b3b8;
  --color-border: #2a2a2e;
  --color-accent: #7c5cff; /* purple accent for contrast */

  --max-content: 1200px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.2);
  --shadow-md: 0 6px 24px rgba(0,0,0,.28);

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
}

/* CSS Reset (modern) */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }

/* Base */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }

/* Typography */
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin-bottom: var(--space-3); }
h1 { font-size: clamp(34px, 5.6vw, 56px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.01em; margin-bottom: var(--space-4); }
h3 { font-size: 18px; margin-bottom: var(--space-3); }
p { font-size: 16px; margin-bottom: var(--space-3); line-height: 1.6; }
@media (min-width: 1024px) { p { font-size: 17px; } }

/* Remove bottom margin from last paragraph in containers */
.card p:last-child,
.section-header p:last-child,
.hero p:last-child { margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, #1b1b1f 0%, #141416 100%);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.btn.accent { background: var(--color-accent); color: #0b0b0c; border-color: transparent; }
.btn.accent:hover { filter: brightness(1.05); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff; /* light header to suit white logo background */
  color: #0b0b0c;
  border-bottom: 1px solid #e7e7ea;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  min-height: 72px;
}
.logo { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-weight: 700; 
  letter-spacing: .3px; 
}
.logo img { 
  height: clamp(64px, 18vw, 160px);
  width: auto; 
  transition: opacity 0.2s ease;
}
.logo:hover img { 
  opacity: 0.8; 
}
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: #2b2b2f; font-weight: 700; }
.nav-links a.active, .nav-links a:hover { color: var(--color-accent); }
.nav-cta { display: block; }
.menu-btn { display: none; }

/* Mobile menu */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 8px 12px; 
    border-radius: 999px; 
    border: 1px solid #e7e7ea; 
    background: #f6f6f8; 
    color: #0b0b0c;
    transition: all 0.2s ease;
  }
  .menu-btn:hover { background: #e7e7ea; }
  .menu-btn[aria-expanded="true"] { background: var(--color-accent); color: white; }
  
  .mobile-drawer { 
    position: fixed; 
    inset: 96px 0 0 0; 
    background: #ffffff; 
    border-top: 1px solid #e7e7ea; 
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }
  .mobile-drawer.open { 
    display: block; 
    opacity: 1;
    transform: translateY(0);
  }
  .mobile-drawer ul { 
    padding: 20px; 
    display: grid; 
    gap: 8px; 
  }
  .mobile-drawer a { 
    display: block; 
    padding: 14px 16px; 
    border-radius: 10px; 
    color: #2b2b2f; 
    font-weight: 700;
    transition: all 0.2s ease;
  }
  .mobile-drawer a:hover { 
    background: #f2f2f5; 
    color: #0b0b0c; 
    transform: translateX(4px);
  }
}

/* Very small screens: ensure drawer clears taller header */
@media (max-width: 480px) {
  .mobile-drawer { inset: 112px 0 0 0; }
}

/* Ensure mobile drawer is hidden on desktop */
@media (min-width: 861px) {
  .mobile-drawer { 
    display: none !important; 
    opacity: 0 !important;
  }
  .menu-btn { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  padding: var(--space-8) 0 var(--space-7);
  background: radial-gradient(1200px 500px at 20% -10%, rgba(124,92,255,.15), transparent 60%),
              radial-gradient(1000px 400px at 90% 0%, rgba(124,92,255,.1), transparent 60%);
  border-bottom: 1px solid var(--color-border);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-7); align-items: center; }
.eyebrow { 
  color: var(--color-accent); 
  font-weight: 600; 
  letter-spacing: .2px; 
  margin-bottom: var(--space-2);
  font-size: 14px;
  text-transform: uppercase;
}
.hero h1 { margin-top: 0; margin-bottom: var(--space-4); }
.hero p { 
  color: var(--color-muted); 
  margin-top: 0; 
  margin-bottom: var(--space-5); 
  font-size: 18px; 
  line-height: 1.6;
}
.hero-cta { 
  display: flex; 
  gap: var(--space-3); 
  margin-top: 0; 
  margin-bottom: var(--space-6);
  flex-wrap: wrap; 
}
.hero-card {
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.0) 100%);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-4);
}
.hero-img {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #0f0f12 center/cover no-repeat;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }

@media (max-width: 860px) {
  .hero { padding: var(--space-7) 0 var(--space-6); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* Sections */
section { padding: var(--space-8) 0; }
.section--alt { background: #0f0f12; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-header { 
  display: flex; 
  align-items: end; 
  justify-content: space-between; 
  gap: var(--space-3); 
  margin-bottom: var(--space-6); 
}
.section-header h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: var(--space-2); }
.section-header p { 
  color: var(--color-muted); 
  margin-top: 0; 
  margin-bottom: 0; 
  font-size: 16px;
}
@media (max-width: 640px) { 
  .section-header { 
    align-items: start; 
    flex-direction: column; 
    gap: var(--space-2); 
    margin-bottom: var(--space-5);
  } 
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.cards.cards--two { grid-template-columns: repeat(2, 1fr); }
.cards.cards--four { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
.card {
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.0) 100%);
  border-radius: var(--radius);
  padding: var(--space-6);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover { 
  transform: translateY(-2px); 
  border-color: var(--color-accent); 
  box-shadow: var(--shadow-md);
}
.card h3 { font-size: 18px; margin-bottom: var(--space-3); }
.card p { 
  color: var(--color-muted); 
  font-size: 15px; 
  line-height: 1.5; 
  margin-bottom: 0;
}

/* Feature rows (title + description rows) */
.feature-rows { display: grid; gap: var(--space-4); }
.feature-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,0) 100%);
}
.feature-row h3 { margin: 0; font-size: 18px; }
.feature-row p { margin: 0; color: var(--color-muted); }
@media (max-width: 640px) { .feature-row { grid-template-columns: 1fr; } }

/* Split layout (media + text) */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: center; }
.split .media { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: #0f0f12; aspect-ratio: 16/10; }
.split .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Quotes list */
.quotes { display: grid; gap: var(--space-4); }
.quote { border-left: 3px solid var(--color-accent); padding: var(--space-3) var(--space-4); background: rgba(255,255,255,.02); border-radius: 8px; }
.quote strong { display: block; margin-top: var(--space-2); color: var(--color-muted); font-weight: 600; }

@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .cards.cards--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards.cards--four { grid-template-columns: 1fr; } }

/* Small-screen padding adjustments for dense grids */
@media (max-width: 520px) {
  .cards .card { padding: var(--space-5); }
}

/* Footer */
.site-footer { background: #ffffff; border-top: 1px solid #e7e7ea; padding: var(--space-5) 0; color: #2b2b2f; }
.site-footer .grid { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
@media (max-width: 640px) { .site-footer .grid { grid-template-columns: 1fr; } }

/* Utilities */
.muted { color: var(--color-muted); }
.divider { 
  height: 1px; 
  background: var(--color-border); 
  margin: var(--space-4) 0; 
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* Forms */
label { 
  display: inline-block; 
  font-size: 13px; 
  margin-bottom: var(--space-1); 
  color: var(--color-muted); 
}
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #0f0f12;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
input::placeholder, textarea::placeholder { color: #8d8d92; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Rhythm helpers */
.stack > * + * { margin-top: var(--space-3); }

/* Additional spacing improvements */
.hero-card .grid-2 > div {
  margin-bottom: var(--space-2);
}
.hero-card .grid-2 > div:last-child {
  margin-bottom: 0;
}



