/* Typography - Space Grotesk for logo */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Colors — Clean and minimal */
  --coral: #fc422b;
  --coral-light: rgba(252, 66, 43, 0.1);
  
  --white: #ffffff;
  --gray-50: #f5f5f7;
  --gray-100: #e8e8ed;
  --gray-200: #d2d2d7;
  --gray-400: #86868b;
  --gray-600: #424245;
  --gray-800: #1d1d1f;
  --black: #000000;
  
  /* Typography — System fonts, clean */
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
  --font-logo: 'Space Grotesk', sans-serif;
  
  /* Spacing — 4px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  
  /* Radius — Soft, Apple-style */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions — Subtle */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows — Soft, diffused */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ═════════════════════════════════════════════════════════════════════════════
   BASE
   ═════════════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--white);
}

::selection {
  background: var(--coral-light);
}

/* ═════════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═════════════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
}

h1 { font-size: 48px; line-height: 1.1; }
h2 { font-size: 32px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.3; }
h4 { font-size: 19px; line-height: 1.4; }

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 21px; }
}

/* Body text */
.text-large {
  font-size: 21px;
  line-height: 1.5;
  color: var(--gray-600);
}

.text-body {
  font-size: 17px;
  line-height: 1.5;
  color: var(--gray-600);
}

.text-small {
  font-size: 14px;
  line-height: 1.4;
  color: var(--gray-400);
}

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
}

/* ═════════════════════════════════════════════════════════════════════════════
   LAYOUT
   ═════════════════════════════════════════════════════════════════════════════ */

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

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

/* ═════════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═════════════════════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
}

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

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}

.nav-logo::after {
  content: '.';
  color: var(--coral);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--coral);
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.menu-btn:hover {
  background: var(--gray-50);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 150;
  padding: var(--space-6);
  transform: translateX(-100%);
  transition: transform 300ms ease;
}

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

.mobile-nav .nav-link {
  display: block;
  padding: var(--space-4) 0;
  font-size: 18px;
  border-bottom: 1px solid var(--gray-100);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .mobile-nav {
    display: block;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═════════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  background: #e63a25;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--gray-800);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--black);
}

.btn-ghost {
  background: transparent;
  color: var(--coral);
  box-shadow: inset 0 0 0 1px var(--coral);
}

.btn-ghost:hover {
  background: var(--coral-light);
}

/* ═════════════════════════════════════════════════════════════════════════════
   CARDS
   ═════════════════════════════════════════════════════════════════════════════ */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-subtle {
  background: var(--gray-50);
  box-shadow: none;
  border-radius: var(--radius-md);
}

.card-subtle:hover {
  background: var(--gray-100);
  transform: none;
  box-shadow: none;
}

/* ═════════════════════════════════════════════════════════════════════════════
   FORMS
   ═════════════════════════════════════════════════════════════════════════════ */

.input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-text);
  font-size: 17px;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-light);
}

.input::placeholder {
  color: var(--gray-400);
}

/* ═════════════════════════════════════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════════════════════════════════════ */

.hero {
  padding-top: 120px;
  padding-bottom: var(--space-20);
  text-align: center;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: 21px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

@media (max-width: 768px) {
  .hero-title { font-size: 40px; }
  .hero { padding-top: 100px; }
}

/* ═════════════════════════════════════════════════════════════════════════════
   GRID
   ═════════════════════════════════════════════════════════════════════════════ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

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

/* ═════════════════════════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════════════════════════ */

.footer {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--gray-100);
  text-align: center;
}

.footer-text {
  font-size: 12px;
  color: var(--gray-400);
}
