/* ============================================
   QuickWeb Technologies — quickweb.au
   Light theme (default) + dark theme via [data-theme="dark"]
   ============================================ */

:root {
  --bg: #f8fafc;
  --bg-alt: #eff6ff;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #0284c7;
  --accent-2: #4f46e5;
  --accent-soft: #e0f2fe;
  --accent-border: #bae6fd;
  --on-accent: #ffffff;
  --success: #059669;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --radius: 14px;
  --max-w: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #0a0e17;
  --bg-alt: #0f1522;
  --surface: #151d2e;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e6ebf4;
  --text-muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #6366f1;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-border: rgba(34, 211, 238, 0.35);
  --on-accent: #0a0e17;
  --success: #34d399;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

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

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
.logo .tld { color: var(--text-muted); font-weight: 500; font-size: 1rem; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--text); text-decoration: none; }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent) !important; font-weight: 700 !important;
  padding: 9px 20px; border-radius: 8px;
}
.nav-cta:hover { opacity: 0.9; text-decoration: none; }

.theme-toggle {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; border-radius: 8px;
  width: 38px; height: 38px; font-size: 1.05rem; line-height: 1;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 1.6rem; line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 92px 0 76px;
  background:
    radial-gradient(ellipse 60% 55% at 75% 10%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent),
    radial-gradient(ellipse 50% 45% at 15% 90%, color-mix(in srgb, var(--accent) 10%, transparent), transparent),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  color: var(--accent); background: var(--surface);
  border: 1px solid var(--accent-border);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.12;
  max-width: 780px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin-top: 20px; font-size: 1.15rem; color: var(--text-muted); max-width: 620px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 28px; border-radius: 10px;
  font-weight: 700; font-size: 1rem;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }

.hero-stats {
  margin-top: 52px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px; max-width: 720px;
}
.stat { border-left: 3px solid var(--accent); padding-left: 16px; }
.stat b { display: block; font-size: 1.5rem; font-weight: 800; }
.stat span { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow {
  color: var(--accent); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.8px; margin-top: 8px; }
.section-head p { color: var(--text-muted); margin-top: 12px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card .card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 0.92rem; }

/* ---------- Pricing ---------- */
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 30px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.price-card.featured { border: 2px solid var(--accent); position: relative; }
.price-card .plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent); font-size: 0.72rem; font-weight: 800;
  padding: 4px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.1rem; font-weight: 700; }
.price-card .price { margin: 16px 0 4px; }
.price-card .price b { font-size: 2.3rem; font-weight: 800; letter-spacing: -1px; }
.price-card .price span { color: var(--text-muted); font-size: 0.9rem; }
.price-card ul { list-style: none; margin: 22px 0; flex: 1; }
.price-card li {
  padding: 7px 0; color: var(--text-muted); font-size: 0.93rem;
  border-bottom: 1px dashed var(--border);
}
.price-card li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.price-card .btn { text-align: center; }

.pricing-note { margin-top: 26px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 36px 0; }
.feature-row h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.feature-row p { color: var(--text-muted); }
.feature-visual {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.85rem; color: var(--text-muted); overflow-x: auto;
}
.feature-visual .ok { color: var(--success); }
.feature-visual .cy { color: var(--accent); }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  justify-content: center; padding: 26px 0;
  color: var(--text-muted); font-size: 0.9rem; font-weight: 600;
}
.trust-bar span::before { content: "● "; color: var(--accent); font-size: 0.7em; vertical-align: middle; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent),
    var(--bg-alt);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 70px 24px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.7px; }
.cta-band p { color: var(--text-muted); margin: 14px auto 30px; max-width: 520px; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.spec-table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; background: var(--bg-alt); }
.spec-table tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; max-width: 620px; }
.form-grid label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 6px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 12px 14px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font); font-size: 0.95rem;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 22px; margin-bottom: 12px;
}
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { margin-top: 12px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Contact info ---------- */
.info-list { list-style: none; }
.info-list li { padding: 10px 0; border-bottom: 1px dashed var(--border); color: var(--text-muted); }
.info-list li b { color: var(--text); display: inline-block; min-width: 130px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); background: var(--bg-alt);
  padding: 54px 0 30px; font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 38px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--text-muted); margin-top: 12px; max-width: 300px; }
.footer-legal { border-top: 1px solid var(--border); padding-top: 22px; color: var(--text-muted); font-size: 0.8rem; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 0; width: 100%; }
  .nav-toggle { display: block; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 0 52px; }
  .section { padding: 54px 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
