/* ============================================
   APOLAKI Brand Stylesheet
   Colors: #B8860B amber · #1A1200 dark · #FFFFFF white
   ============================================ */

:root {
  --amber:        #B8860B;
  --amber-light:  #D4A017;
  --amber-dim:    #8C6508;
  --amber-glow:   rgba(184,134,11,0.12);
  --dark:         #1A1200;
  --dark-mid:     #2C1F00;
  --dark-soft:    #3D2E05;
  --white:        #FFFFFF;
  --off-white:    #FDFAF4;
  --gray-100:     #F5F2EA;
  --gray-300:     #D4CFC0;
  --gray-500:     #8E8A7A;
  --gray-700:     #4A4538;
  --text:         #1A1200;
  --text-muted:   #6B6455;

  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono:    'Courier New', Courier, monospace;

  --radius:       3px;
  --radius-lg:    6px;
  --shadow:       0 1px 3px rgba(26,18,0,0.12), 0 4px 16px rgba(26,18,0,0.08);
  --shadow-lg:    0 4px 24px rgba(26,18,0,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-light); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 600; font-family: var(--font-body); }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); }

p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }
section.alt { background: var(--off-white); }
section.dark { background: var(--dark); }

/* ── Navigation ── */
nav {
  background: var(--dark);
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--dark-soft);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.nav-logo {
  width: 154px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--gray-300);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--amber); border-bottom-color: var(--amber); }

.nav-cta {
  background: var(--amber);
  color: var(--dark) !important;
  font-weight: 600;
  padding: 0.4rem 1.1rem !important;
  border-radius: var(--radius) !important;
  border-bottom: none !important;
}

.nav-cta:hover { background: var(--amber-light) !important; color: var(--dark) !important; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--amber);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--amber-light);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,134,11,0.35);
}

.btn-outline {
  border: 1.5px solid var(--amber);
  color: var(--amber);
  background: transparent;
}

.btn-outline:hover {
  background: var(--amber-glow);
  color: var(--amber-light);
}

.btn-ghost {
  color: var(--gray-300);
  background: transparent;
  border: 1.5px solid var(--gray-700);
}

.btn-ghost:hover {
  border-color: var(--gray-500);
  color: var(--white);
}

/* ── Hero ── */
.hero {
  background: var(--dark);
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184,134,11,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-300);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-rule {
  width: 48px;
  height: 2px;
  background: var(--amber);
  margin: 3rem 0 0;
}

/* ── Code snippet ── */
.code-block {
  background: var(--dark-mid);
  border: 1px solid var(--dark-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gray-300);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.code-block .comment { color: var(--gray-500); }
.code-block .string  { color: var(--amber-light); }
.code-block .keyword { color: #7BA4D9; }

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--amber-glow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg { width: 20px; height: 20px; stroke: var(--amber); fill: none; stroke-width: 1.5; }

.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.feature-card p  { font-size: 0.9rem; margin: 0; }

/* ── Comparison table ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.5rem;
  font-size: 0.9rem;
}

.compare-table th {
  text-align: left;
  padding: 0.85rem 1.25rem;
  background: var(--dark);
  color: var(--gray-300);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-table th:first-child { border-radius: var(--radius) 0 0 0; }
.compare-table th:last-child  { border-radius: 0 var(--radius) 0 0; }

.compare-table th.highlight { color: var(--amber); }

.compare-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-muted);
  vertical-align: middle;
}

.compare-table td.highlight {
  color: var(--amber);
  font-weight: 600;
}

.compare-table tr:hover td { background: var(--off-white); }

.check { color: #2E7D32; font-size: 1.1rem; }
.cross { color: var(--gray-500); }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.pricing-card {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  background: var(--white);
}

.pricing-card.featured {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.75rem; }
.pricing-price { font-size: 2.25rem; font-weight: 700; color: var(--dark); line-height: 1; margin-bottom: 0.25rem; }
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--gray-500); }
.pricing-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; min-height: 40px; }

.pricing-features { list-style: none; margin-bottom: 1.75rem; }
.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-features li::before { content: ''; width: 0.35rem; height: 0.35rem; border-radius: 999px; background: var(--amber); flex-shrink: 0; }
.feature-marker { width: 0.4rem; height: 0.4rem; margin-top: 0.55rem; border-radius: 999px; background: var(--amber); flex-shrink: 0; }

/* ── Section header ── */
.section-header { margin-bottom: 3rem; }
.section-header h4 { margin-bottom: 0.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p  { font-size: 1.05rem; max-width: 560px; }

/* ── Stat row ── */
.stat-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2.5rem 0;
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  margin: 3rem 0;
}

.stat { flex: 1; min-width: 140px; }
.stat-number { font-size: 2.25rem; font-weight: 700; color: var(--amber); line-height: 1; font-family: var(--font-display); }
.stat-label  { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ── Team / About ── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-split p { font-size: 1.05rem; line-height: 1.75; }


/* ── Status and validation blocks ── */
.status-note {
  max-width: 560px;
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.status-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.status-card {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.status-card div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.status-card div:last-child { border-bottom: none; }
.status-card strong { color: var(--dark); }
.status-card span { color: var(--amber); font-weight: 600; text-align: right; }

.video-brief-callout {
  border: 1px solid var(--amber);
  border-radius: var(--radius-lg);
  background: var(--amber-glow);
  padding: 1.5rem;
}

/* ── Contact form ── */
.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

.form-textarea { resize: vertical; min-height: 140px; }

.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }

.form-success {
  display: none;
  padding: 1.25rem 1.5rem;
  background: rgba(46,125,50,0.08);
  border: 1px solid rgba(46,125,50,0.3);
  border-radius: var(--radius);
  color: #2E7D32;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.form-error {
  display: none;
  padding: 1.25rem 1.5rem;
  background: rgba(198,40,40,0.08);
  border: 1px solid rgba(198,40,40,0.25);
  border-radius: var(--radius);
  color: #C62828;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
footer {
  background: var(--dark);
  color: var(--gray-500);
  padding: 3rem 0;
  border-top: 1px solid var(--dark-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  font-size: 0.9rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer-links a:hover { color: var(--amber); }

.footer-copy {
  font-size: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-soft);
  text-align: center;
  color: var(--gray-700);
}

/* ── 404 ── */
.not-found {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  background: var(--dark);
}

.not-found-inner { text-align: center; }

.not-found-code {
  font-size: clamp(6rem, 15vw, 10rem);
  font-family: var(--font-display);
  color: var(--amber);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: -1rem;
}

.not-found h2 { color: var(--white); margin-bottom: 1rem; }
.not-found p  { color: var(--gray-500); margin-bottom: 2rem; }

/* ── Utilities ── */
.text-amber  { color: var(--amber); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-logo { width: 132px; }
  .nav-links { gap: 1.25rem; }
  .nav-links .nav-cta { display: none; }

  .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .status-grid { grid-template-columns: 1fr; gap: 2rem; }

  .stat-row { gap: 2rem; }

  .hero { padding: 4rem 0 3.5rem; }

  .compare-table { font-size: 0.8rem; }
  .compare-table th,
  .compare-table td { padding: 0.65rem 0.85rem; }

  footer .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav-logo { width: 118px; }
  .container { padding: 0 1.25rem; }
  .container--narrow { padding: 0 1.25rem; }
  section { padding: 3.5rem 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
