/* ===========================
   TUNEDECK — THEME CSS
   =========================== */

:root {
  --bg: #F8F4EE;
  --bg-dark: #F0EBE3;
  --fg: #1E0F0F;
  --fg-muted: #6B4747;
  --accent: #C8963E;
  --accent-dark: #A07830;
  --accent-light: rgba(200, 150, 62, 0.12);
  --card-bg: #FFFFFF;
  --border: rgba(61, 26, 26, 0.08);
  --border-strong: rgba(61, 26, 26, 0.15);
  --nav-bg: rgba(248, 244, 238, 0.92);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-w: 1100px;
  --max-w-narrow: 780px;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 5rem;
  background: var(--fg);
  color: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.hero-orb-1 {
  width: 480px;
  height: 480px;
  background: #C8963E;
  top: -120px;
  right: -80px;
}

.hero-orb-2 {
  width: 320px;
  height: 320px;
  background: #8B4513;
  bottom: -60px;
  left: 10%;
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8963E' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  color: var(--bg);
  margin-bottom: 1.75rem;
  line-height: 1.08;
  max-width: 14ch;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(248, 244, 238, 0.72);
  max-width: 52ch;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-cta {
  margin-bottom: 2.5rem;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(248, 244, 238, 0.75);
}

.proof-sep {
  width: 1px;
  height: 14px;
  background: rgba(248, 244, 238, 0.2);
}

/* ===== PROBLEM ===== */
.problem {
  padding: var(--space-3xl) 1.5rem;
  background: var(--bg);
}

.problem-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.problem-headline {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  color: var(--fg);
  max-width: 20ch;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.problem-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 60ch;
  margin-bottom: 3rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.problem-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.problem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.6rem;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.problem-conclusion {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-dark);
  font-style: italic;
  font-family: var(--font-display);
}

/* ===== AGENTS ===== */
.agents {
  padding: var(--space-3xl) 1.5rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.agents-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.agents-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--fg);
  max-width: 20ch;
  margin-bottom: 0.75rem;
}

.agents-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 52ch;
  margin-bottom: 3rem;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.agent-card {
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.agent-card:hover {
  box-shadow: 0 8px 32px rgba(61, 26, 26, 0.08);
  transform: translateY(-2px);
}

.agent-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
  flex-shrink: 0;
}

.agent-status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4CAF50;
}

.agent-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.agent-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.agent-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.agent-list li {
  font-size: 0.82rem;
  color: var(--fg-muted);
  padding-left: 1.25rem;
  position: relative;
}

.agent-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== PROCESS ===== */
.process {
  padding: var(--space-3xl) 1.5rem;
  background: var(--fg);
  color: var(--bg);
}

.process-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.process .section-label {
  color: var(--accent);
}

.process-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--bg);
  max-width: 22ch;
  margin-bottom: 3rem;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
}

.process-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(248, 244, 238, 0.1);
}

.process-step:last-child {
  border-bottom: 1px solid rgba(248, 244, 238, 0.1);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: rgba(200, 150, 62, 0.5);
  line-height: 1;
  padding-top: 0.15rem;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.88rem;
  color: rgba(248, 244, 238, 0.6);
  line-height: 1.6;
}

.process-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(200, 150, 62, 0.08);
  border: 1px solid rgba(200, 150, 62, 0.2);
  border-radius: var(--radius-md);
  max-width: 580px;
}

.process-note p {
  font-size: 0.85rem;
  color: rgba(248, 244, 238, 0.7);
  line-height: 1.55;
}

.process-note svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ===== PRICING ===== */
.pricing {
  padding: var(--space-3xl) 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.pricing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.pricing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--fg);
  max-width: 22ch;
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 760px;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(200, 150, 62, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-per {
  font-size: 1rem;
  color: var(--fg-muted);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pricing-features li {
  font-size: 0.88rem;
  color: var(--fg-muted);
  padding-left: 1.5rem;
  position: relative;
}

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

.pricing-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.pricing-cta {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

/* ===== CLOSING ===== */
.closing {
  padding: var(--space-3xl) 1.5rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.closing-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 56ch;
  margin: 0 auto 1rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 1.5rem;
  background: var(--fg);
  color: var(--bg);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(248, 244, 238, 0.45);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .hero-proof { gap: 0.5rem; }
  .proof-sep { display: none; }
  .problem { padding: var(--space-2xl) 1.25rem; }
  .agents { padding: var(--space-2xl) 1.25rem; }
  .process { padding: var(--space-2xl) 1.25rem; }
  .pricing { padding: var(--space-2xl) 1.25rem; }
  .closing { padding: var(--space-2xl) 1.25rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .nav-tagline { display: none; }
  .hero-headline { font-size: 2.5rem; }
}
