/*
  AutomateX — minimal, responsive marketing site styles
  - System font stack
  - CSS variables for easy theming
  - Accessible color contrast and focus styles
*/

:root {
  --bg: #0b0e12;
  --panel: #12161c;
  --panel-2: #181e26;
  --text: #e8edf2;
  --muted: #a9b2bd;
  --brand: #6cd4ff;
  --brand-2: #7c5cff;
  --accent: #2de39c;
  --danger: #ff6b6b;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --panel: #f7f8fa;
    --panel-2: #eef1f5;
    --text: #1d232f;
    --muted: #516078;
    --brand: #1f6feb;
    --brand-2: #7c5cff;
    --accent: #047857;
    --danger: #b42318;
    --shadow: 0 10px 24px rgba(0,0,0,0.08);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  background: linear-gradient(180deg, var(--bg), #0b0e1200 60%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; padding: 8px 12px; background: var(--brand); color: #fff; border-radius: var(--radius-sm); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.alt { background: linear-gradient(180deg, var(--panel), var(--panel-2)); }
.center { text-align: center; }
.max-60 { max-width: 60ch; margin-inline: auto; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

.row { display: flex; align-items: center; gap: 16px; }
.row.between { justify-content: space-between; }
.row.center { align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 16px; }
.gap { gap: 12px; }

@media (max-width: 900px) {
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
}

h1 { font-size: 42px; line-height: 1.15; margin: 0 0 10px; }
h2 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
h3 { font-size: 20px; margin: 0 0 6px; }
p.lead { font-size: 18px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; color: var(--text); cursor: pointer; }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-primary { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow); }
.btn-outline { border-color: color-mix(in oklab, var(--brand) 50%, transparent); }
.btn-ghost { background: transparent; border-color: #ffffff22; }
.btn:hover { transform: translateY(-1px); transition: transform .15s ease; }

.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(10px); background: color-mix(in oklab, var(--bg) 90%, transparent); border-bottom: 1px solid #ffffff12; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; gap: 10px; }
.nav-toggle { display: none; }
.nav-menu { display: flex; list-style: none; gap: 18px; margin: 0; padding: 0; }
.nav-menu a { color: var(--text); text-decoration: none; opacity: .9; }
.nav-menu a:hover { opacity: 1; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; background: transparent; color: var(--text); border: 1px solid #ffffff22; border-radius: 8px; padding: 8px 10px; }
  .nav-menu { display: none; position: absolute; right: 20px; top: 56px; background: var(--panel); border: 1px solid #ffffff18; border-radius: var(--radius); padding: 12px; width: min(280px, 90vw); flex-direction: column; }
  .nav-menu.open { display: flex; }
}

.hero { padding-top: 48px; }
.hero-card { display: flex; align-items: center; }
.hero-mock { width: 100%; background: var(--panel); border: 1px solid #ffffff18; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--panel-2); border-radius: 10px; margin-bottom: 10px; }
.mock-row.small { font-size: 12px; opacity: .9; }
.mock-block { padding: 10px 12px; margin: 8px 0; border: 1px dashed #ffffff25; border-radius: 10px; background: #00000014; }
.dot { display: inline-block; height: 10px; width: 10px; border-radius: 999px; }
.dot-green { background: var(--accent); box-shadow: 0 0 0 3px #2de39c33; }

.card { background: var(--panel); border: 1px solid #ffffff18; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.plan { padding: 22px; }
.plan.featured { border: 1px solid color-mix(in oklab, var(--brand) 35%, transparent); background: linear-gradient(180deg, #ffffff05, transparent); transform: translateY(-4px); }
.price { font-size: 28px; font-weight: 800; margin: 8px 0 14px; }

.check { list-style: none; padding: 0; margin: 12px 0 0; }
.check li { padding-left: 26px; position: relative; margin: 8px 0; }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }

.bullets { list-style: none; padding: 0; margin: 0 0 18px; color: var(--muted); }
.bullets li { margin: 8px 0; }

.step { text-align: center; background: var(--panel); border: 1px solid #ffffff18; border-radius: var(--radius); padding: 18px; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; box-shadow: var(--shadow); }

.faq .faq-item { border-bottom: 1px solid #ffffff18; padding: 12px 0; }
.faq-q { display: block; width: 100%; background: transparent; color: var(--text); text-align: left; border: none; font: inherit; padding: 8px 0; }
.faq-a { display: none; color: var(--muted); padding: 6px 0 12px; }
.faq-item.open .faq-a { display: block; }

.form .field { display: grid; gap: 6px; flex: 1; min-width: 220px; }
input, select, textarea { width: 100%; padding: 10px 12px; background: var(--panel-2); color: var(--text); border: 1px solid #ffffff18; border-radius: 10px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: color-mix(in oklab, var(--brand) 40%, transparent); box-shadow: 0 0 0 4px #6cd4ff22; }
.form-status { min-height: 20px; font-size: 14px; color: var(--muted); }

.site-footer { padding: 28px 0; border-top: 1px solid #ffffff18; background: #00000014; }

[data-animate] { opacity: 0; transform: translateY(12px); transition: all .5s ease; }
[data-animate].is-visible { opacity: 1; transform: translateY(0); }

/* Utilities */
.subtle { color: var(--muted); font-size: 14px; }

