/* =====================================================
   BASKIT.DEV — style.css
   Tailwind CDN (play.tailwindcss.com config below) +
   all custom properties and component styles.
   Tailwind is loaded via CDN in each HTML file.
   ===================================================== */

/* ---- Custom properties (design tokens) ---- */
:root {
  --bg:         #080808;
  --surface:    #0f0f0f;
  --surface2:   #111111;
  --border:     rgba(255,255,255,0.07);
  --border-mid: rgba(255,255,255,0.13);
  --text:       #f2ede8;
  --muted:      #5a5a5a;
  --muted-mid:  #999;
  --accent:     rgba(255,255,255,0.18);
  --accent-glow:rgba(255,255,255,0.04);
  --serif:      'Cormorant', Georgia, serif;
  --sans:       'Geist', system-ui, sans-serif;
  --radius:     12px;
  --nav-h:      60px;
}

[data-theme="light"] {
  --bg:         #f5f0e8;
  --surface:    #ede6db;
  --surface2:   #e5ddd0;
  --border:     rgba(60,40,20,0.08);
  --border-mid: rgba(60,40,20,0.14);
  --text:       #1a1714;
  --muted:      #8c8278;
  --muted-mid:  #5e554e;
  --accent-glow:rgba(60,40,20,0.04);
}

/* ---- Light mode overrides ---- */
[data-theme="light"] nav                          { background: rgba(245,240,232,0.88); }
[data-theme="light"] .step                        { background: var(--bg); }
[data-theme="light"] .step:hover                  { background: var(--surface2); }
[data-theme="light"] .service-card                { background: var(--bg); }
[data-theme="light"] .service-card:hover          { background: var(--surface2); }
[data-theme="light"] .plan                        { background: var(--bg); }
[data-theme="light"] .plan.highlight              { background: var(--surface2); }
[data-theme="light"] .workflow-terminal           { background: #ede6db; border-color: var(--border); }
[data-theme="light"] .terminal-bar                { background: #e0d8cc; }
[data-theme="light"] .tdot                        { background: #c4bdb4; }
[data-theme="light"] .event-row                   { border-bottom-color: rgba(60,40,20,0.06); }
[data-theme="light"] .btn-primary                 { color: #f5f0e8; }
[data-theme="light"] .btn-nav-cta                 { color: #f5f0e8; }
[data-theme="light"] .btn-ghost:hover             { border-color: rgba(60,40,20,0.28); }
[data-theme="light"] .btn-nav-ghost:hover         { background: rgba(60,40,20,0.05); }
[data-theme="light"] .plan.highlight .plan-btn    { color: #f5f0e8; }
[data-theme="light"] .hero-glow::before           { background: radial-gradient(ellipse at center, rgba(100,80,180,0.07) 0%, rgba(70,100,200,0.03) 38%, transparent 70%); }
[data-theme="light"] .hero-glow::after            { background: radial-gradient(ellipse at center, rgba(180,120,60,0.05) 0%, transparent 60%); }
[data-theme="light"] .cta-glow                    { background: radial-gradient(ellipse, rgba(80,60,140,0.06) 0%, transparent 70%); }
[data-theme="light"] .hero-grain                  { mix-blend-mode: overlay; opacity: 0.06; }
[data-theme="light"] .marquee-wrap::before        { background: linear-gradient(90deg, var(--bg), transparent); }
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .form-select                 { background: var(--surface); border-color: var(--border-mid); }
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus,
[data-theme="light"] .form-select:focus           { border-color: rgba(60,40,20,0.5); background: var(--surface2); }
[data-theme="light"] .form-select option          { background: var(--surface); }
[data-theme="light"] .form-success                { background: var(--surface); }
[data-theme="light"] .btn-nav-ghost.active        { background: var(--surface); }
[data-theme="light"] .marquee-wrap::after         { background: linear-gradient(-90deg, var(--bg), transparent); }
[data-theme="light"] .music-toggle                { background: rgba(237,230,219,0.95); border-color: rgba(60,40,20,0.16); }
[data-theme="light"] .music-bar                   { background: #5e554e; }
[data-theme="light"] .count-stat                  { border-color: rgba(60,40,20,0.08); }
[data-theme="light"] .icon-sun                    { display: block; }
[data-theme="light"] .icon-moon                   { display: none; }

/* ---- Base reset & body ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

/* ---- Page transition overlay ---- */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  pointer-events: none;
  transform-origin: top;
  transform: scaleY(1); /* starts fully covering — JS animates it away on arrival */
}


/* ---- Nav ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: background 0.25s, border-color 0.25s;
}
nav.scrolled { background: rgba(8,8,8,0.96); border-color: var(--border-mid); }
.nav-logo {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.nav-center {
  display: flex;
  gap: 2rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-center a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.18s;
  position: relative;
}
.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: left;
}
.nav-center a:hover { color: var(--text); }
.nav-center a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; gap: 0.75rem; align-items: center; }

.btn-nav-ghost {
  color: var(--muted-mid);
  font-family: var(--sans);
  font-size: 0.875rem;
  background: none;
  border: none;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  transition: color 0.18s, background 0.18s;
  cursor: pointer;
}
.btn-nav-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.btn-nav-cta {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--text);
  color: #0a0a0a;
  border: none;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  transition: opacity 0.18s, transform 0.15s;
  display: inline-block;
}
.btn-nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.theme-toggle {
  width: 32px; height: 32px;
  border-radius: 100px;
  border: 1px solid var(--border-mid);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border); background: rgba(128,128,128,0.08); }
.theme-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-sun  { display: none; }
.icon-moon { display: block; }

/* ---- Music toggle ---- */
.music-toggle {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: rgba(12,12,12,0.88);
  border: 1px solid var(--border-mid);
  backdrop-filter: blur(18px);
  border-radius: 8px;
  padding: 0.5rem 0.65rem 0.45rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--sans);
}
.music-toggle:hover { border-color: rgba(255,255,255,0.22); box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.music-onoff {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.25em;
}
.music-onoff .on-txt  { color: var(--muted); transition: color 0.2s; }
.music-onoff .sep     { opacity: 0.4; }
.music-onoff .off-txt { color: var(--text); transition: color 0.2s; }
.music-toggle.playing .music-onoff .on-txt  { color: var(--text); }
.music-toggle.playing .music-onoff .off-txt { color: var(--muted); }
.music-bars { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.music-bar {
  width: 3px; height: 3px;
  background: var(--muted);
  border-radius: 0;
  transition: background 0.2s;
  flex-shrink: 0;
}
.music-toggle.paused .music-bar { height: 3px; opacity: 0.35; animation: none; }
.music-toggle.playing .music-bar { background: var(--text); opacity: 1; }
.music-toggle.playing .music-bar:nth-child(1) { animation: cube1 0.85s ease-in-out infinite; }
.music-toggle.playing .music-bar:nth-child(2) { animation: cube2 0.65s ease-in-out infinite 0.1s; }
.music-toggle.playing .music-bar:nth-child(3) { animation: cube3 0.75s ease-in-out infinite 0.05s; }
.music-toggle.playing .music-bar:nth-child(4) { animation: cube4 0.95s ease-in-out infinite 0.15s; }
.music-toggle.playing .music-bar:nth-child(5) { animation: cube5 0.8s  ease-in-out infinite 0.2s; }
@keyframes cube1 { 0%,100%{height:3px}  50%{height:9px}  }
@keyframes cube2 { 0%,100%{height:7px}  50%{height:3px}  }
@keyframes cube3 { 0%,100%{height:10px} 50%{height:4px}  }
@keyframes cube4 { 0%,100%{height:5px}  50%{height:10px} }
@keyframes cube5 { 0%,100%{height:3px}  50%{height:7px}  }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero-glow::before {
  content: '';
  position: absolute;
  top: 8%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 520px;
  background: radial-gradient(ellipse at center, rgba(80,60,140,0.26) 0%, rgba(50,80,160,0.1) 38%, transparent 70%);
  filter: blur(50px);
  animation: glowBreath 7s ease-in-out infinite;
}
.hero-glow::after {
  content: '';
  position: absolute;
  top: 18%; left: 42%;
  width: 580px; height: 340px;
  background: radial-gradient(ellipse at center, rgba(200,100,70,0.08) 0%, transparent 60%);
  filter: blur(60px);
}
@keyframes glowBreath {
  0%,100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.7; transform: translateX(-50%) scale(1.07); }
}
.hero-grid {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}
@keyframes grainShift {
  0%  {transform:translate(0,0)}   10%{transform:translate(-2%,-3%)} 20%{transform:translate(3%,1%)}
  30%{transform:translate(-1%,4%)} 40%{transform:translate(4%,-2%)} 50%{transform:translate(-3%,2%)}
  60%{transform:translate(2%,-4%)} 70%{transform:translate(-4%,1%)} 80%{transform:translate(1%,3%)}
  90%{transform:translate(3%,-1%)} 100%{transform:translate(0,0)}
}
.hero-grain {
  position: absolute; inset: -10%;
  pointer-events: none; z-index: 3;
  opacity: 0.09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.3'/%3E%3CfeFuncG type='linear' slope='0.3'/%3E%3CfeFuncB type='linear' slope='0.3'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grainShift 0.12s steps(1) infinite;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-eyebrow span { width: 28px; height: 1px; background: var(--muted); display: inline-block; }

h1 {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 7.5vw, 7.5rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.75rem;
}
h1 em { font-style: italic; font-weight: 300; letter-spacing: 0.01em; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted-mid);
  max-width: 540px;
  margin: 0 auto 3rem;
  font-weight: 300;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-stat::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.btn-primary {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--text);
  color: #080808;
  border: none;
  padding: 0.85rem 2.1rem;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.18s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(242,237,232,0.1); }

.btn-ghost {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  background: none;
  color: var(--muted-mid);
  border: 1px solid var(--border-mid);
  padding: 0.85rem 2.1rem;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: color 0.18s, border-color 0.18s, transform 0.15s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* ---- Marquee ---- */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  overflow: hidden;
  position: relative;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 100px; z-index: 2;
}
.marquee-wrap::before { left: 0;  background: linear-gradient(90deg,  var(--bg), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
}
.marquee-item {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  transition: color 0.2s;
}
.marquee-item:hover { color: var(--muted-mid); }
.marquee-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ---- Section shared ---- */
.section { max-width: 1160px; margin: 0 auto; padding: 8rem 2rem; }
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: block;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
h2 em { font-style: italic; font-weight: 300; letter-spacing: 0.01em; }
.section-sub {
  font-size: 1rem;
  color: var(--muted-mid);
  max-width: 500px;
  font-weight: 300;
  line-height: 1.8;
}

/* ---- Stats strip ---- */
.stats-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0; overflow: hidden; }
.stats-inner { max-width: 1160px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); }
.count-stat { padding: 2.5rem 2rem; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.4rem; }
.count-stat:last-child { border-right: none; }
.count-num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; color: var(--text); line-height: 1; }
.count-label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---- How it works ---- */
.hiw-section { border-top: 1px solid var(--border); }
.hiw-header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 5rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--bg); padding: 2.75rem 2rem 3.25rem; transition: background 0.25s; position: relative; overflow: hidden; }
.step::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, var(--accent-glow) 0%, transparent 60%); opacity: 0; transition: opacity 0.35s; }
.step:hover::before { opacity: 1; }
.step:hover { background: #0c0c0c; }
.step-number { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.25rem; display: block; }
.step h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; line-height: 1.25; }
.step p { font-size: 0.875rem; color: var(--muted-mid); line-height: 1.8; font-weight: 300; }
.step-icon { width: 36px; height: 36px; border: 1px solid var(--border-mid); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.75rem; }
.step-icon svg { width: 16px; height: 16px; stroke: var(--muted-mid); fill: none; stroke-width: 1.5; }

/* ---- Workflow ---- */
.workflow-section { border-top: 1px solid var(--border); }
.workflow-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.workflow-terminal { background: #090909; border: 1px solid var(--border-mid); border-radius: var(--radius); overflow: hidden; font-family: 'SF Mono', 'Fira Code', monospace; box-shadow: 0 20px 60px rgba(0,0,0,0.5); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.workflow-terminal:hover { transform: translateY(-4px); box-shadow: 0 28px 80px rgba(0,0,0,0.6); }
.terminal-bar { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.5rem; background: #070707; }
.tdot { width: 10px; height: 10px; border-radius: 50%; background: #222; }
.tdot:nth-child(1) { background: #ff5f57; }
.tdot:nth-child(2) { background: #febc2e; }
.tdot:nth-child(3) { background: #28c840; }
.terminal-label { font-size: 0.72rem; color: var(--muted); margin-left: auto; letter-spacing: 0.05em; font-family: var(--sans); }
.terminal-body { padding: 1.5rem; }
.event-row { display: flex; align-items: flex-start; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.event-row:last-child { border-bottom: none; }
.evt-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.done    { background: #3ddc84; box-shadow: 0 0 7px rgba(61,220,132,0.45); }
.running { background: #60a5fa; box-shadow: 0 0 7px rgba(96,165,250,0.45); animation: blink 1.3s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }
.evt-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.evt-name { font-size: 0.79rem; color: var(--text); opacity: 0.88; }
.evt-sub  { font-size: 0.69rem; color: var(--muted); }
.evt-res  { font-size: 0.69rem; color: #3ddc84; opacity: 0.85; }
.evt-res.blue { color: #60a5fa; }
.evt-time { font-size: 0.66rem; color: var(--muted); margin-left: auto; flex-shrink: 0; opacity: 0.6; }
.terminal-progress { height: 2px; background: var(--border); border-radius: 2px; margin: 1rem 0 0.5rem; overflow: hidden; }
.terminal-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.5)); border-radius: 2px; }

/* ---- Services ---- */
.services-section { border-top: 1px solid var(--border); }
.services-header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 4rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.service-card { background: var(--bg); padding: 2.25rem 1.75rem; transition: background 0.25s; position: relative; overflow: hidden; cursor: default; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--border-mid); transform: scaleX(0); transition: transform 0.35s ease; }
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { background: #0d0d0d; }
.service-num { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; display: block; }
.service-card h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--text); margin-bottom: 0.65rem; line-height: 1.3; }
.service-card p { font-size: 0.84rem; color: var(--muted-mid); line-height: 1.8; font-weight: 300; }
.service-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: var(--muted); margin-top: 1.25rem; opacity: 0; transition: opacity 0.2s, color 0.2s; }
.service-card:hover .service-arrow { opacity: 1; color: var(--muted-mid); }

/* ---- Pricing ---- */
.pricing-section { border-top: 1px solid var(--border); }
.pricing-header { margin-bottom: 4rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.plan { background: var(--bg); padding: 2.75rem 2.25rem; display: flex; flex-direction: column; }
.plan.highlight { background: #0f0f0f; position: relative; }
.plan.highlight::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--border-mid); }
.plan-tier { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.75rem; display: block; }
.plan-price { font-family: var(--serif); font-size: 3.2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); line-height: 1; margin-bottom: 0.35rem; }
.plan-price sub { font-family: var(--sans); font-size: 1rem; font-weight: 300; color: var(--muted-mid); vertical-align: baseline; }
.plan-cycle { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.5rem; min-height: 1.2rem; }
.plan-desc { font-size: 0.84rem; color: var(--muted-mid); font-weight: 300; line-height: 1.75; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.plan-features { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.plan-features li { font-size: 0.84rem; color: var(--muted-mid); font-weight: 300; display: flex; gap: 0.7rem; align-items: baseline; }
.plan-features li::before { content: '—'; color: var(--muted); flex-shrink: 0; font-size: 0.75rem; }
.plan-btn { display: block; text-align: center; text-decoration: none; font-family: var(--sans); font-size: 0.875rem; font-weight: 500; padding: 0.8rem; border-radius: 100px; border: 1px solid var(--border-mid); color: var(--muted-mid); background: none; cursor: pointer; transition: all 0.2s; margin-top: auto; }
.plan-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.28); }
.plan.highlight .plan-btn { background: var(--text); color: #080808; border-color: var(--text); }
.plan.highlight .plan-btn:hover { opacity: 0.88; }

/* ---- FAQ ---- */
.faq-section { border-top: 1px solid var(--border); }
.faq-header { margin-bottom: 4rem; }
.faq-list { max-width: 720px; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--text); gap: 1rem; transition: color 0.2s; }
.faq-icon { width: 22px; height: 22px; border: 1px solid var(--border-mid); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.3s ease, border-color 0.2s; }
.faq-icon svg { width: 10px; height: 10px; stroke: var(--muted-mid); fill: none; stroke-width: 2; }
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--text); }
.faq-a { font-size: 0.9rem; color: var(--muted-mid); font-weight: 300; line-height: 1.8; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding-bottom 0.3s; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.5rem; }

/* ---- CTA ---- */
.cta-section { border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-glow { position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 900px; height: 600px; background: radial-gradient(ellipse, rgba(80,60,140,0.07) 0%, transparent 65%); filter: blur(60px); pointer-events: none; }
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; padding: 9rem 2rem; position: relative; }
.cta-inner h2 { margin-bottom: 1.25rem; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.cta-inner .section-sub { margin: 0 auto 3rem; max-width: 480px; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: var(--sans); font-weight: 500; font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.footer-links { display: flex; gap: 1.75rem; list-style: none; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.18s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.78rem; color: var(--muted); opacity: 0.5; }

/* Motion initial states are set by JS, not CSS, so content is visible without JS */

/* ---- Contact page ---- */

/* Hero */
.contact-hero {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--nav-h) + 5rem) 2rem 5rem;
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.contact-hero-inner { position: relative; z-index: 1; }
.contact-hero h1 { margin-top: 0.75rem; margin-bottom: 0; }
.contact-hero-sub {
  margin-top: 1.25rem;
  max-width: 560px;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted-mid);
  line-height: 1.65;
}

/* Contact grid layout */
.contact-grid-section {
  padding: 2rem 2rem 7rem;
  max-width: 1160px;
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6rem;
  align-items: start;
}

/* Form column */
.contact-form-col { position: relative; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-label {
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.form-input, .form-textarea, .form-select {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); opacity: 0.6; }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: rgba(255,255,255,0.35);
  background: var(--surface2);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5a5a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-select option { background: #111; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { margin-top: 0.5rem; }

/* Form success */
.form-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
}
.form-success.visible { display: flex; }
.form-success-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(61,220,132,0.12);
  border: 1px solid rgba(61,220,132,0.3);
  display: flex; align-items: center; justify-content: center;
}
.form-success-icon svg { width: 18px; height: 18px; stroke: #3ddc84; }
.form-success h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--text); margin: 0; }
.form-success p { font-size: 0.9rem; color: var(--muted-mid); font-weight: 300; line-height: 1.6; margin: 0; }
.form-success p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Info column */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 0.5rem;
}
.contact-info h3,
.contact-faq h3 {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 1.5rem 0;
}

/* What happens next steps */
.contact-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.contact-steps li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.contact-step-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0.1rem;
  flex-shrink: 0;
  min-width: 24px;
}
.contact-steps li > div { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-steps strong { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.contact-steps p { font-size: 0.83rem; font-weight: 300; color: var(--muted-mid); line-height: 1.55; margin: 0; }

/* FAQ items in contact sidebar */
.contact-faq { }
.contact-faq-item {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.contact-faq-item:last-child { border-bottom: 1px solid var(--border); }
.contact-faq-item strong { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text); margin-bottom: 0.35rem; }
.contact-faq-item p { font-size: 0.82rem; font-weight: 300; color: var(--muted-mid); line-height: 1.55; margin: 0; }

/* Direct email */
.contact-direct { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-email {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.18s;
  display: inline-block;
}
.contact-email:hover { opacity: 0.6; }

/* Active nav link */
.btn-nav-ghost.active {
  opacity: 1;
  background: var(--surface);
  border-color: var(--border-mid);
}

/* ---- Client Dashboard ---- */
.client-dashboard { background: #090909; border: 1px solid var(--border-mid); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.client-dashboard:hover { transform: translateY(-4px); box-shadow: 0 28px 80px rgba(0,0,0,0.6); }
.dash-header { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; background: #070707; }
.dash-logo { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; color: var(--text); opacity: 0.7; }
.dash-title { font-family: var(--sans); font-size: 0.72rem; color: var(--muted); margin-left: 0.25rem; }
.dash-badge { margin-left: auto; font-family: var(--sans); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 100px; display: flex; align-items: center; gap: 0.35rem; }
.dash-badge.live { background: rgba(61,220,132,0.12); color: #3ddc84; border: 1px solid rgba(61,220,132,0.25); }
.dash-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #3ddc84; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.dash-stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border-bottom: 1px solid var(--border); }
.dash-stat-card { background: #090909; padding: 1.25rem 1.25rem 1rem; text-align: center; }
.dash-stat-val { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 0.35rem; }
.dash-stat-label { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; }
.dash-workflows { padding: 0.5rem 0; }
.dash-wf-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1.25rem; border-bottom: 1px solid var(--border); font-family: var(--sans); }
.dash-wf-row:last-child { border-bottom: none; }
.dash-wf-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dash-wf-dot.green { background: #3ddc84; box-shadow: 0 0 6px rgba(61,220,132,0.5); }
.dash-wf-name { font-size: 0.8rem; color: var(--text); opacity: 0.85; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-wf-runs { font-size: 0.69rem; color: var(--muted-mid); white-space: nowrap; }
.dash-wf-time { font-size: 0.66rem; color: var(--muted); white-space: nowrap; opacity: 0.65; margin-left: auto; }
.dash-footer-note { padding: 0.7rem 1.25rem; font-family: var(--sans); font-size: 0.65rem; color: var(--muted); opacity: 0.5; text-align: center; border-top: 1px solid var(--border); }

/* ---- Custom Pricing ---- */
.pricing-custom { display: flex; flex-direction: column; gap: 3.5rem; }
.pricing-value-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pricing-value-card { background: var(--bg); padding: 2.5rem 2.25rem; display: flex; flex-direction: column; gap: 0.9rem; }
.pricing-value-icon { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border-mid); display: flex; align-items: center; justify-content: center; color: var(--muted-mid); margin-bottom: 0.25rem; }
.pricing-value-icon svg { width: 18px; height: 18px; }
.pricing-value-card h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.pricing-value-card p { font-size: 0.85rem; color: var(--muted-mid); font-weight: 300; line-height: 1.75; }
.pricing-cta-block { text-align: center; padding: 2.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.pricing-cta-lead { font-size: 1rem; color: var(--muted-mid); font-weight: 300; line-height: 1.75; max-width: 520px; margin: 0 auto 2rem; }

/* Light mode overrides for new components */
[data-theme="light"] .client-dashboard { background: #ede6db; border-color: var(--border); }
[data-theme="light"] .dash-header { background: #e0d8cc; }
[data-theme="light"] .dash-stat-card { background: #ede6db; }
[data-theme="light"] .pricing-value-card { background: var(--bg); }
[data-theme="light"] .pricing-cta-block { background: var(--surface); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-center { display: none; }
  h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
  .hiw-header, .workflow-inner, .services-header { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
  .steps, .services-grid, .pricing-value-row { grid-template-columns: 1fr; }
  .dash-stats-row { grid-template-columns: repeat(3,1fr); }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .count-stat:nth-child(2) { border-right: none; }
  .count-stat:nth-child(3) { border-right: 1px solid var(--border); }
  footer { flex-direction: column; align-items: flex-start; }
  .music-toggle { bottom: 1rem; right: 1rem; }
  .faq-list { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .contact-info-col { padding-top: 0; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats-inner { grid-template-columns: 1fr; }
  .count-stat { border-right: none !important; border-bottom: 1px solid var(--border); }
  .count-stat:last-child { border-bottom: none; }
  h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .section { padding: 5rem 1.5rem; }
  .contact-hero { padding-top: calc(var(--nav-h) + 3rem); }
}
