/* ============================================================
   GigTaxHelper — marketing site
   Dark theme · responsive · shares the design language of
   aicloudproxy.com so both sister products feel like one family.
   ============================================================ */

:root {
  /* Surfaces — built around the app's #1A1A3E brand navy */
  --bg: #0d0d24;
  --bg-soft: #12122e;
  --bg-card: #1a1a3e;
  --bg-card-2: #1f1f4a;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.3);

  /* Text */
  --text: #eceefb;
  --text-muted: #a7aecf;
  --text-dim: #6f77a3;

  /* Brand — mirrors Resources/Styles/Styles.xaml */
  --violet: #3b2fcc;
  --violet-light: #5a4fe5;
  --violet-soft: #9a93f2;
  --indigo: #6d5ce7;
  --teal: #00c9a7;
  --teal-soft: #33d6bc;
  --pink: #e91e8c;
  --amber: #ffc107;
  --red: #ef5350;
  --blue: #72c3e4;

  --grad: linear-gradient(120deg, var(--violet-soft), var(--indigo));
  --grad-strong: linear-gradient(120deg, var(--violet-light), var(--indigo));
  --grad-brand: linear-gradient(120deg, var(--violet-light) 0%, var(--violet) 55%, var(--teal) 100%);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 44px -22px rgba(2, 6, 23, 0.9);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--violet-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(90, 79, 229, 0.16);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.4em;
  color: #cfc9ff;
  white-space: nowrap;
}

.container { width: min(1120px, 92vw); margin: 0 auto; }
.container.narrow { width: min(820px, 92vw); }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--violet-light); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Inline SVG sprite ---------- */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 0.95rem;
  padding: 0.62rem 1.15rem; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1.02rem; }
.btn-primary { background: var(--grad-strong); color: #fff; box-shadow: 0 10px 26px -12px rgba(90, 79, 229, 0.85); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(90, 79, 229, 0.95); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--violet-light); color: #fff; }
.btn-light { background: #fff; color: #0d0d24; }
.btn-light:hover { transform: translateY(-1px); }

/* Store buttons */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: #05060f; color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 11px; padding: 9px 18px;
  text-decoration: none !important; line-height: 1.12;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.store-btn:hover { transform: translateY(-1px); border-color: var(--violet-light); background: #0b0d1c; }
.store-btn svg { flex: 0 0 auto; }
.store-btn .store-lines { display: flex; flex-direction: column; text-align: left; }
.store-btn .store-lines small {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: #b9bfd8;
}
.store-btn .store-lines span { font-size: 1rem; font-weight: 700; }

/* Store button that is not available yet (App Store during review) */
.store-btn.is-soon {
  cursor: default; opacity: 0.72;
  border-style: dashed;
}
.store-btn.is-soon:hover { transform: none; border-color: var(--line-strong); background: #05060f; }
.store-btn .badge-soon {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255, 193, 7, 0.16); color: #ffd75e;
  border: 1px solid rgba(255, 193, 7, 0.4);
  border-radius: 999px; padding: 2px 8px; margin-left: 4px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 13, 36, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 24px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-mark { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.brand-name { font-weight: 800; letter-spacing: -0.01em; color: #fff; font-size: 1.05rem; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--text-muted); font-weight: 500; font-size: 0.94rem;
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
}
.site-nav a:hover { color: #fff; background: rgba(148, 163, 184, 0.1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 0.5rem 1rem; }

/* Language switcher */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px;
}
.lang-switch a,
.lang-switch span {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 999px; text-decoration: none;
  color: var(--text-muted);
}
.lang-switch a:hover { color: #fff; background: rgba(148, 163, 184, 0.12); }
.lang-switch .is-active { background: var(--grad-strong); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: 8px; width: 42px; height: 38px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: 0.2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 4vw 22px; border-top: 1px solid var(--line);
}
body.nav-open .mobile-menu { display: flex; }
.mobile-menu a { color: var(--text-muted); padding: 10px 4px; font-weight: 500; text-decoration: none; }
.mobile-menu .btn { margin-top: 8px; justify-content: center; }
.mobile-menu .btn-primary { color: #fff; }
.mobile-menu .lang-switch { margin-top: 10px; width: fit-content; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 420px at 16% 6%, rgba(90, 79, 229, 0.28), transparent 65%),
    radial-gradient(700px 460px at 88% 26%, rgba(0, 201, 167, 0.16), transparent 65%),
    radial-gradient(520px 360px at 62% 88%, rgba(233, 30, 140, 0.12), transparent 68%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center; padding-bottom: 60px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 700; color: var(--violet-soft); margin: 0 0 14px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-teal { background: linear-gradient(120deg, var(--teal-soft), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-muted); font-size: 1.08rem; max-width: 56ch; margin: 0 0 26px; }
.lead strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-badges {
  list-style: none; display: flex; gap: 18px; flex-wrap: wrap;
  margin: 0; padding: 0; color: var(--text-muted); font-size: 0.92rem;
}
.hero-badges li { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges li::before { content: "✓"; color: var(--teal); font-weight: 700; }

/* ---------- Media card (app screenshots) ----------
   The App Store images are complete compositions that already include the
   phone render, so no extra device frame is drawn around them. */
.media-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-card img { display: block; width: 100%; height: auto; }
.hero-media { position: relative; max-width: 340px; margin: 0 auto; }
.hero-media::before {
  content: ""; position: absolute; inset: -12% -16% -10%;
  background: radial-gradient(closest-side, rgba(90, 79, 229, 0.42), transparent 72%);
  filter: blur(16px); z-index: -1;
}

/* ---------- Audience / platform strip ---------- */
.strip { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.strip .container { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 18px 0; }
.strip-label {
  color: var(--text-dim); font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 600;
}
.strip ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; margin: 0; padding: 0; }
.strip li { font-weight: 600; color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); margin: 0 0 10px; letter-spacing: -0.015em; line-height: 1.2; }
.section-head .sub { color: var(--text-muted); font-size: 1.05rem; max-width: 64ch; margin: 0; }
.section-head.center { text-align: center; }
.section-head.center .sub { margin-left: auto; margin-right: auto; }

/* Intro / "what is it" block */
.intro-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.intro-grid p { color: var(--text-muted); font-size: 1.05rem; }
.intro-grid p strong { color: var(--text); }
.answer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.answer-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
}
.answer-list .ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(90, 79, 229, 0.18); color: var(--violet-soft);
}
.answer-list h3 { margin: 0 0 3px; font-size: 1rem; }
.answer-list p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }
.card p + p { margin-top: 8px; }
.card .tip { font-size: 0.86rem; }
.card code { white-space: normal; }
.card .card-ico {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(90, 79, 229, 0.16);
  border: 1px solid rgba(90, 79, 229, 0.3);
  color: var(--violet-soft);
}
.card .card-ico.teal { background: rgba(0, 201, 167, 0.14); border-color: rgba(0, 201, 167, 0.32); color: var(--teal-soft); }
.card .card-ico.pink { background: rgba(233, 30, 140, 0.14); border-color: rgba(233, 30, 140, 0.32); color: #f473b9; }
.card .card-ico.amber { background: rgba(255, 193, 7, 0.14); border-color: rgba(255, 193, 7, 0.32); color: #ffd75e; }
.badge-pro {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  background: rgba(0, 201, 167, 0.14); color: var(--teal-soft);
  border: 1px solid rgba(0, 201, 167, 0.34); border-radius: 999px; padding: 2px 8px;
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; }
.step-num {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-strong); color: #fff; font-weight: 700; font-size: 0.95rem;
}
.steps li div { color: var(--text-muted); font-size: 1.02rem; }
.steps li strong { color: var(--text); }

.callout {
  margin-top: 40px; border: 1px solid rgba(109, 92, 231, 0.42);
  background: linear-gradient(180deg, rgba(109, 92, 231, 0.13), rgba(109, 92, 231, 0.04));
  border-radius: var(--radius); padding: 22px 26px;
}
.callout h3 { margin: 0 0 8px; }
.callout p { margin: 0; color: var(--text-muted); }

/* Money example table */
.money-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.money-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.money-card .label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); font-weight: 600; }
.money-card .value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 4px; }
.money-card .note { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.v-teal { color: var(--teal-soft); }
.v-pink { color: #f473b9; }
.v-amber { color: #ffd75e; }

.example-note {
  color: var(--text-dim); font-size: 0.86rem;
  margin-top: 22px; text-align: center;
}

/* Screenshots */
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot { margin: 0; }
.shot .media-card { border-radius: var(--radius-sm); }
.shot figcaption { color: var(--text-muted); font-size: 0.92rem; margin-top: 12px; }
.shot figcaption strong { color: var(--text); display: block; font-size: 0.98rem; margin-bottom: 2px; }

/* FAQ */
.faq details {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--text); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; float: right; color: var(--violet-soft);
  font-weight: 700; font-size: 1.2rem; line-height: 1;
}
.faq details[open] summary { color: var(--violet-soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-muted); padding-bottom: 16px; margin: 0; }
.faq details p + p { padding-top: 0; }

/* CTA */
.cta {
  padding: 84px 0; text-align: center;
  background:
    radial-gradient(560px 300px at 50% 0%, rgba(90, 79, 229, 0.28), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
}
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 12px; letter-spacing: -0.015em; }
.cta p { color: var(--text-muted); font-size: 1.08rem; margin: 0 0 26px; }
.cta .store-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #08081a; border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.7fr 1.1fr; gap: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 46ch; }
.fineprint { color: var(--text-dim) !important; font-size: 0.82rem !important; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { margin: 0 0 8px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); }
.footer-col a { color: var(--text-muted); font-size: 0.94rem; width: fit-content; }
.footer-col a:hover { color: #fff; }
.footer-tools .tool-link { font-weight: 700; color: var(--violet-soft); font-size: 1.02rem; }
.footer-tools p { color: var(--text-muted); font-size: 0.9rem; margin: 2px 0 0; line-height: 1.55; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
/* Safety net: never hide content when JS is off or unavailable. */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Legal / document pages ---------- */
.doc-page { padding: 56px 0 40px; }
.doc-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 44px; box-shadow: var(--shadow);
}
.doc-card h1 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin: 0 0 6px; letter-spacing: -0.02em; }
.doc-card h2 {
  margin-top: 2rem; margin-bottom: 0.6rem; font-size: 1.16rem;
  color: var(--violet-soft); letter-spacing: -0.01em;
}
.doc-card h3 { margin-top: 1.4rem; margin-bottom: 0.4rem; font-size: 1.02rem; color: var(--text); }
.doc-card p, .doc-card li { color: var(--text-muted); }
.doc-card strong { color: var(--text); }
.doc-card ul, .doc-card ol { margin: 0.4rem 0 0.8rem 1.2rem; padding: 0; }
.doc-card li { margin: 0.35rem 0; }
.doc-card hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.doc-card .meta { color: var(--text-dim); font-size: 0.95rem; margin: 0 0 8px; }
.doc-card table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.94rem; }
.doc-card th, .doc-card td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc-card thead th { background: rgba(148, 163, 184, 0.06); color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; }
.doc-card a { color: var(--violet-soft); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid, .shot-grid, .money-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-card { padding: 32px 28px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .nav-actions .lang-switch { display: none; }
  .feature-grid, .shot-grid, .money-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .doc-card { padding: 26px 20px; }
  .store-row { width: 100%; }
  .store-btn { flex: 1 1 100%; justify-content: flex-start; }
}
