/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #faf6f0;
  --bg-surface: #f2ece3;
  --bg-elevated: #fff;
  --bg-card: #ffffff;
  --border: #e0d8cc;
  --border-accent: #072ac833;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #8a8a96;
  --accent: #072ac8;
  --accent-light: #1e96fc;
  --accent-glow: #072ac80a;
  --accent-warm: #ffc600;
  --accent-red: #e8453c;
  --font-sans: 'DM Sans', 'Inter', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1100px;
  --section-padding: 5rem 2rem;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* ===== Progress Bar ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent-red);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Content Wrappers ===== */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-surface);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===== Hero ===== */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
  position: relative;
}

.hero-content {
  max-width: 520px;
}

.hero-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-visual .service-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-visual .service-pill .pill-icon {
  font-size: 1.25rem;
}

.hero-visual .service-pill strong {
  color: var(--text-primary);
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero h1 span {
  color: var(--accent-red);
}

.hero .tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  color: var(--text-muted);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== Two-Column Section Layout ===== */
.section-two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-top: 1rem;
}

.section-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.section-sidebar .section-label {
  margin-bottom: 0.25rem;
}

.section-sidebar .section-title {
  font-size: 1.5rem;
}

.section-sidebar .section-subtitle {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ===== Typography ===== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
  color: var(--text-primary);
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card h4 {
  margin-top: 0;
}

.card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ===== Team Grid ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  margin: 0 auto 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-card h4 {
  margin-top: 0;
  font-size: 1.0625rem;
}

.team-card .team-service {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.team-card .team-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
}

/* ===== Service Cards ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.service-card .service-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.service-card h4 {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
}

.service-card p {
  font-size: 0.8125rem;
}

/* ===== Quote Blocks ===== */
.quote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quote p {
  font-style: italic;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.quote cite {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ===== Persona Card ===== */
.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  margin: 2rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.persona-avatar {
  width: 220px;
  height: 280px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.persona-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.persona-info h4 {
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: 1.375rem;
}

.persona-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.persona-section {
  margin-bottom: 1rem;
}

.persona-section h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.375rem;
}

.persona-section ul {
  list-style: none;
  padding: 0;
}

.persona-section li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 0.2rem 0 0.2rem 1rem;
  position: relative;
}

.persona-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== Figma Embeds ===== */
.figma-embed {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.figma-embed iframe {
  display: block;
}

.figma-embed p {
  margin: 0;
}

/* ===== Design System Showcase ===== */
.ds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.ds-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ds-card h4 {
  margin-top: 0;
}

.color-swatches {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.swatch {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ===== Integration Table ===== */
.flow-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.flow-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flow-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

/* ===== Placeholder Section ===== */
.placeholder-notice {
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  margin: 2rem 0;
}

.placeholder-notice p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  background: var(--bg-surface);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 1.25rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(250, 246, 240, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-visual {
    display: none;
  }

  .section-two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-sidebar {
    position: static;
  }

  .persona-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .persona-avatar {
    margin: 0 auto;
    width: min(100%, 260px);
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}
