/* Genious Mini Site — shared styles */

:root {
  --ink: #0d1b2a;
  --ink-soft: #4a5a6a;
  --line: #e2e8ef;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --brand: #0b5fff;
  --brand-dark: #0043c4;
  --accent: #00c2a8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 8px 24px rgba(13, 27, 42, .06);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}

.nav a {
  color: var(--ink-soft);
  font-size: .94rem;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: .94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: #c9d4e0; }

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(0, 194, 168, .12), transparent 70%),
    radial-gradient(700px 380px at 10% 0%, rgba(11, 95, 255, .10), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(11, 95, 255, .08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 0 0 20px;
  font-weight: 800;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 52ch;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  letter-spacing: -.01em;
}

.hero-card p {
  margin: 0 0 20px;
  font-size: .88rem;
  color: var(--ink-soft);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.stat-row span:first-child { color: var(--ink-soft); }
.stat-row span:last-child { font-weight: 700; }

/* ---------- Sections ---------- */

section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 44px; }

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -.025em;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- Cards ---------- */

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: #cfdae6;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(11, 95, 255, .09);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  letter-spacing: -.015em;
}

.card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: .93rem;
  flex: 1;
}

.card-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand);
}

/* ---------- Product table ---------- */

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

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.plan.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, .10);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 28px;
  background: var(--brand);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan h3 { margin: 0 0 6px; font-size: 1.1rem; }

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 10px 0 2px;
}
.plan-price small { font-size: .85rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }

.plan-note { font-size: .82rem; color: var(--ink-soft); margin: 0 0 20px; }

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: .9rem;
}

.plan li {
  padding: 7px 0 7px 24px;
  position: relative;
  border-bottom: 1px solid #f0f4f8;
  color: var(--ink-soft);
}
.plan li:last-child { border-bottom: 0; }

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.plan .btn { width: 100%; text-align: center; }

/* ---------- Portfolio ---------- */

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

.work {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .16s ease, transform .16s ease;
}
.work:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.work-thumb {
  height: 168px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
}

.work-thumb.a { background: linear-gradient(135deg, #0b5fff, #4d8bff); }
.work-thumb.b { background: linear-gradient(135deg, #00c2a8, #00a08a); }
.work-thumb.c { background: linear-gradient(135deg, #6b4dff, #9b7bff); }
.work-thumb.d { background: linear-gradient(135deg, #ff7a45, #ff9f6b); }

.work-body { padding: 22px 24px 26px; }
.work-body h3 { margin: 0 0 6px; font-size: 1.02rem; }
.work-body p { margin: 0 0 14px; font-size: .9rem; color: var(--ink-soft); }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  font-size: .74rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ---------- CTA ---------- */

.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { margin: 0; color: #a9b8c8; max-width: 46ch; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: #eef3f8; }

/* ---------- Footer ---------- */

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--ink-soft); }
.footer-grid a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: .84rem;
}

/* ---------- Detail page ---------- */

.page-head {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.breadcrumb {
  font-size: .84rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb span { margin: 0 7px; opacity: .5; }

.page-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.page-head .lede { margin-bottom: 0; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 32px; font-size: 1.1rem; }
.prose p { color: var(--ink-soft); }
.prose ul { color: var(--ink-soft); padding-left: 20px; }
.prose li { margin-bottom: 8px; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item h3 { margin: 0 0 8px; font-size: 1rem; }
.faq-item p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .grid-2, .work-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .cta { padding: 40px 28px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
}
