/* Tarazel — static marketing site
   Self-contained: no external fonts, scripts, or assets. Theme-aware. */

:root {
  color-scheme: light dark;

  /* Palette — light (default) */
  --bg:        #f7f9fc;
  --bg-elev:   #ffffff;
  --surface:   #ffffff;
  --border:    #e2e8f2;
  --text:      #0b1020;
  --muted:     #55617c;
  --accent:    #c2410c;   /* beacon amber, darkened for light-mode contrast */
  --accent-2:  #b45309;
  --accent-fg: #ffffff;
  --glow:      rgba(217, 119, 6, 0.16);
  --shadow:    0 1px 2px rgba(11, 16, 32, 0.06), 0 8px 24px rgba(11, 16, 32, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0a0e1a;
    --bg-elev:   #0f1524;
    --surface:   #131a2c;
    --border:    #23304d;
    --text:      #e8edf7;
    --muted:     #9aa6c2;
    --accent:    #ffb347;   /* warm beacon amber */
    --accent-2:  #ffca7a;
    --accent-fg: #1a1204;
    --glow:      rgba(255, 179, 71, 0.14);
    --shadow:    0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
               Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 26px; height: 26px; display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 6px 20px var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(60% 60% at 50% 0%, var(--glow), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 18ch;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.alt { background: var(--bg-elev); border-block: 1px solid var(--border); }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--glow);
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 760px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--accent); }
.plan .tier { font-weight: 700; font-size: 1.2rem; }
.badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-fg);
  background: var(--accent); padding: 3px 9px; border-radius: 999px;
  margin-left: 8px; vertical-align: middle;
}
.plan .price { font-size: 2rem; font-weight: 700; margin: 14px 0 4px; letter-spacing: -0.02em; }
.plan .price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan .price-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; flex: 1; }
.plan li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); }
.plan li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-card .email {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 760px; padding-block: 56px 72px; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 8px; }
.prose .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 36px; }
.prose h2 { font-size: 1.25rem; margin: 36px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose a { font-weight: 500; }

@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding-top: 64px; }
}
