/* ==========================================================================
   AI Tool Hub — Landing Page Styles
   ========================================================================== */

:root {
  /* Color system */
  --bg: #0a0e1a;
  --bg-alt: #0d1220;
  --surface: #121829;
  --surface-2: #161d33;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #eef1f8;
  --text-dim: #aab2c5;
  --text-faint: #7a8296;

  --accent-blue: #5b7cfa;
  --accent-blue-bright: #6f8dff;
  --accent-purple: #9b6bf3;
  --gradient: linear-gradient(135deg, #5b7cfa 0%, #9b6bf3 100%);
  --gradient-soft: linear-gradient(135deg, rgba(91, 124, 250, 0.15) 0%, rgba(155, 107, 243, 0.15) 100%);

  --success: #3ecf8e;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 30px rgba(91, 124, 250, 0.12);

  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(91, 124, 250, 0.16), transparent 60%),
    radial-gradient(ellipse 800px 500px at 100% 10%, rgba(155, 107, 243, 0.12), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  border: 1px solid var(--border-strong);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-blue-bright);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(91, 124, 250, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(91, 124, 250, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-blue-bright);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-faint);
  padding-left: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 88px 0 72px;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--gradient-soft);
  border: 1px solid rgba(155, 107, 243, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  color: #c9d3ff;
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-actions .btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-secondary-text {
  font-size: 0.92rem;
  color: var(--text-faint);
  max-width: 480px;
}

.disclosure-note {
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 560px;
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: left;
}

.disclosure-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--accent-blue-bright);
}

/* ==========================================================================
   Sections (general)
   ========================================================================== */

section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.hero {
  border-top: none;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue-bright);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ==========================================================================
   Cards / Grids
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient-soft);
  border: 1px solid rgba(155, 107, 243, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #c9d3ff;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* ==========================================================================
   Problem section
   ========================================================================== */

.problem-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ==========================================================================
   Product overview
   ========================================================================== */

.overview-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.overview-panel .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}

.overview-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.overview-panel p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 1rem;
}

.overview-panel p:last-of-type {
  margin-bottom: 0;
}

.overview-visual {
  background: var(--gradient-soft);
  border: 1px solid rgba(155, 107, 243, 0.22);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overview-visual .visual-icon {
  width: 100%;
}

.mini-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.mini-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--success);
  margin-top: 3px;
}

/* ==========================================================================
   Who it's for
   ========================================================================== */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ==========================================================================
   Why consider it
   ========================================================================== */

.why-section {
  background: linear-gradient(180deg, rgba(91, 124, 250, 0.06), transparent 60%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.why-item .num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}

.why-item h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.why-item p {
  color: var(--text-dim);
  font-size: 0.93rem;
}

/* ==========================================================================
   Notice / Important info
   ========================================================================== */

.notice-box {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

.notice-box svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #f5b95b;
  margin-top: 2px;
}

.notice-box p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.notice-section {
  padding: 56px 0;
}

/* ==========================================================================
   CTA section
   ========================================================================== */

.cta-section {
  border-top: 1px solid var(--border);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.cta-panel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--gradient-soft);
  border: 1px solid rgba(155, 107, 243, 0.25);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
}

.cta-panel h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-panel p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-question .icon svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.faq-item[data-open="true"] .faq-question .icon {
  background: var(--gradient);
  border-color: transparent;
}

.faq-item[data-open="true"] .faq-question .icon svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer-inner {
  padding: 0 26px 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg-alt);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.footer-brand .brand-name {
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-disclosure {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  color: var(--text-faint);
  font-size: 0.83rem;
  line-height: 1.7;
}

.footer-disclosure p + p {
  margin-top: 10px;
}

.footer-bottom {
  margin-top: 24px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-page {
  padding: 64px 0 96px;
}

.legal-page .container {
  max-width: 820px;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-updated {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 36px 0 14px;
}

.legal-page p {
  color: var(--text-dim);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.legal-page ul {
  margin: 0 0 14px;
  padding-left: 4px;
}

.legal-page ul li {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}

.legal-page ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue-bright);
}

.legal-page a {
  color: var(--accent-blue-bright);
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--text);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .overview-panel {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .overview-visual {
    order: -1;
    min-height: 180px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 14px 16px;
  }

  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .nav-cta {
    gap: 10px;
  }

  .nav-cta .btn-primary {
    padding: 10px 16px;
    font-size: 0.88rem;
  }

  .hero {
    padding: 56px 0 48px;
  }

  section {
    padding: 64px 0;
  }

  .card-grid,
  .card-grid.cols-3,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    padding: 44px 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 32px;
  }
}
