@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --bg-deep: #0b0f17;
  --bg-panel: rgba(15, 23, 42, 0.75);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.65);
  --accent-soft: rgba(245, 158, 11, 0.12);
  --border: rgba(148, 163, 184, 0.18);
  --radius: 0.75rem;
  --font-sans: 'Inter', system-ui, sans-serif;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.moe-bg {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -20%, rgba(245, 158, 11, 0.08), transparent 55%),
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section-container {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .section-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.brand-link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover {
  color: var(--text);
  background: rgba(30, 41, 59, 0.6);
}

.btn-header-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0b0f17;
  background: var(--accent);
  border-radius: 0.5rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-header-cta:hover {
  background: #fbbf24;
}

.mobile-menu {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-drawer {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background: rgba(11, 15, 23, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0 1rem;
  z-index: 40;
}

.mobile-drawer a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mobile-drawer a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

main {
  padding-top: 4rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 5.5rem 0 6rem;
  }
}

.pill {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 42rem;
}

.gradient-text {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  margin-top: 1.25rem;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0b0f17;
  background: var(--accent);
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px -6px rgba(245, 158, 11, 0.45);
}

.btn-primary:hover {
  background: #fbbf24;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: var(--accent-soft);
}

/* Sections */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin-top: 0.75rem;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.inline-link:hover {
  color: #fbbf24;
}

.distribution-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Service cards */
.services-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

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

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  padding: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.5);
}

.service-card .number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Expertise list */
.expertise-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .expertise-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.expertise-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.expertise-item::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.expertise-item p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.expertise-item strong {
  color: var(--text);
  font-weight: 600;
}

/* PitBuild product card */
.product-card {
  margin-top: 2rem;
  max-width: 36rem;
  padding: 1.75rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s;
}

.product-link:hover {
  color: #fbbf24;
}

.product-link::after {
  content: '→';
}

/* Consultation form */
.book-section {
  padding-bottom: 5rem;
}

.form-panel {
  margin-top: 2rem;
  max-width: 32rem;
  padding: 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 16px 48px -20px rgba(0, 0, 0, 0.6);
}

.form-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-lead {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-field label span[aria-hidden='true'] {
  color: var(--accent);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #64748b;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-row {
  display: grid;
  gap: 1.125rem;
}

@media (min-width: 480px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-error {
  font-size: 0.875rem;
  color: #f87171;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #0b0f17;
  background: var(--accent);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.form-submit:hover:not(:disabled) {
  background: #fbbf24;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-success-panel {
  margin-top: 2rem;
  max-width: 32rem;
  padding: 2rem;
  text-align: center;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 1rem;
}

.form-success-panel.hidden {
  display: none;
}

.form-panel.hidden {
  display: none;
}

.success-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #86efac;
  margin-bottom: 0.5rem;
}

.success-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.footer-email {
  font-size: 0.8125rem;
  margin-top: 0.35rem;
}

.footer-email a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-email a:hover {
  color: var(--accent);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
