/*
Theme Name: Djanai
Theme URI: https://djanai.com
Author: Djanai
Description: Official Djanai company theme, AI legal-tech dark aesthetic.
Version: 1.0.0
License: Proprietary
Text Domain: djanai
*/

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg:        #0d1117;
  --surface:   #131a24;
  --card:      #1a2332;
  --card2:     #1f2b3e;
  --border:    rgba(0,184,148,0.18);
  --accent:    #00b894;
  --accent2:   #6366f1;
  --accent3:   #f59e0b;
  --text:      #e8e8f0;
  --muted:     #8a8aa8;
  --radius:    10px;
  --font:      'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #00d4aa; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; font-weight: 700; color: var(--text); }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.site-header .inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.site-logo span { color: var(--accent); }
.main-nav ul { list-style: none; display: flex; gap: 32px; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.main-nav a:hover { color: var(--text); }

/* Products dropdown (header.php fallback nav) */
.main-nav ul { align-items: center; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s;
}
.nav-dropdown-toggle:hover, .nav-dropdown.open .nav-dropdown-toggle { color: var(--text); }
.nav-dropdown-toggle:focus { outline: none; }
.nav-dropdown-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.nav-caret { width: 12px; height: 12px; transition: transform .2s; }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown-panel {
  display: none; position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%);
  width: 360px; padding: 12px; z-index: 101;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.nav-dropdown-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; } /* hover bridge */
.nav-dropdown.open .nav-dropdown-panel { display: block; }
@media (hover: hover) { .nav-dropdown:hover .nav-dropdown-panel { display: block; } }
.nav-dropdown-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 8px 10px 6px;
}
.nav-dropdown-label:not(:first-child) { margin-top: 6px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 14px; }
.main-nav a.nav-dropdown-item {
  display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center;
  padding: 10px; border-radius: 8px; color: var(--text);
}
.main-nav a.nav-dropdown-item:hover, .main-nav a.nav-dropdown-item:focus-visible { background: rgba(0,184,148,0.08); }
.nav-dropdown-item strong { display: block; font-size: 14px; font-weight: 600; }
.nav-dropdown-item small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.nav-dropdown-icon { width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent); }
.nav-dropdown-icon img { width: 28px; height: 28px; object-fit: contain; }
.nav-dropdown-icon svg { width: 22px; height: 22px; }
.nav-cta {
  background: var(--accent); color: #000 !important;
  padding: 8px 20px; border-radius: 6px; font-weight: 600; font-size: 14px;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: #00d4aa; transform: translateY(-1px); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 88vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,184,148,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(99,102,241,0.06) 0%, transparent 60%),
    var(--bg);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0,184,148,0.025) 0px, rgba(0,184,148,0.025) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg,  rgba(0,184,148,0.025) 0px, rgba(0,184,148,0.025) 1px, transparent 1px, transparent 80px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,184,148,0.1); border: 1px solid rgba(0,184,148,0.3);
  color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 72px); font-weight: 800; letter-spacing: -1.5px;
  background: linear-gradient(135deg, #e8e8f0 30%, #00b894 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 24px;
}
.hero p { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 600px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .2s; border: none; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #00d4aa; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,184,148,0.3); color: #000; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-accent2 { background: var(--accent2); color: #fff; }
.btn-accent2:hover { background: #7c7fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.3); color: #fff; }
.btn-accent3 { background: var(--accent3); color: #000; }
.btn-accent3:hover { background: #ffb020; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.3); color: #000; }

/* ── Sections ──────────────────────────────────────────────── */
section { padding: 96px 24px; }
.container { max-width: 1180px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-label.indigo { color: var(--accent2); }
.section-label.amber { color: var(--accent3); }
.section-title { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; }
.section-sub { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 56px; }

/* ── Products grid ─────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 24px; }
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px;
  position: relative; overflow: hidden;
}
.product-card.aurora { border-color: rgba(99,102,241,0.25); }
.product-card.netops { border-color: rgba(245,158,11,0.25); }
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.product-card.aurora::before { background: linear-gradient(90deg, var(--accent2), transparent); }
.product-card.netops::before { background: linear-gradient(90deg, var(--accent3), transparent); }
.product-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
  background: rgba(0,184,148,0.12); border: 1px solid rgba(0,184,148,0.2);
}
.product-card.aurora .product-icon { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.2); }
.product-card.netops .product-icon { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.2); color: var(--accent3); }
.product-card h3 { font-size: 24px; margin-bottom: 8px; }
.product-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 16px;
  background: rgba(0,184,148,0.12); color: var(--accent); border: 1px solid rgba(0,184,148,0.25);
}
.product-card.aurora .product-badge { background: rgba(99,102,241,0.12); color: #a5b4fc; border-color: rgba(99,102,241,0.25); }
.product-card.netops .product-badge { background: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.25); }
.product-card p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.product-features { list-style: none; margin-bottom: 32px; }
.product-features li {
  font-size: 14px; color: var(--muted); padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 8px;
}
.product-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.product-card.aurora .product-features li::before { color: #a5b4fc; }
.product-card.netops .product-features li::before { color: #fbbf24; }

/* ── Features grid ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  align-items: stretch;
}
.feature-card {
  background: var(--card2); border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius); padding: 28px; transition: border-color .2s;
  min-width: 0; overflow: hidden;
}
.feature-card:hover { border-color: rgba(0,184,148,0.3); }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h4 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.6; word-break: break-word; }

/* ── Info table (generic 2-3 column content table) ───────────── */
.info-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
.info-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--card); }
.info-table th, .info-table td {
  padding: 16px 22px; text-align: left; font-size: 14.5px; vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.info-table thead th {
  background: var(--card2); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}
.info-table tbody tr:last-child td { border-bottom: none; }
.info-table td:first-child { color: var(--text); font-weight: 700; white-space: nowrap; }
.info-table td:not(:first-child) { color: var(--muted); }
.info-table.amber thead th:first-child { color: var(--accent3); }

/* ── Plans table ───────────────────────────────────────────── */
.plans-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
.plans-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--card); }
.plans-table th, .plans-table td {
  padding: 14px 20px; text-align: left; font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06); white-space: nowrap;
}
.plans-table th:not(:first-child), .plans-table td:not(:first-child) { text-align: center; }
.plans-table thead th { background: var(--card2); vertical-align: top; padding-top: 20px; padding-bottom: 20px; }
.plans-table .plan-name { display: block; font-size: 18px; font-weight: 800; color: var(--text); }
.plans-table .plan-capacity { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; text-transform: none; letter-spacing: 0; }
.plans-table .plan-badge {
  display: block; width: fit-content; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin: 0 auto 8px;
  background: rgba(0,184,148,0.15); color: var(--accent); border: 1px solid rgba(0,184,148,0.3);
}
.plans-table td.plan-highlight, .plans-table th.plan-highlight { background: rgba(0,184,148,0.06); }
.plans-table .plans-group-row td {
  background: var(--surface); font-weight: 700; color: var(--accent);
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 10px 20px;
}
.plans-table .feature-cell { color: var(--text); font-size: 14px; white-space: normal; }
.plans-table .yes { color: var(--accent); font-weight: 700; }
.plans-table .no { color: var(--muted); }
.plans-table tbody tr:last-child td { border-bottom: none; }
.plans-table .feat-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; font-weight: 400; line-height: 1.45; white-space: normal; }
.plans-table .new-badge {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .08em;
  border-radius: 3px; padding: 1px 5px; margin-right: 7px; vertical-align: middle;
  background: rgba(0,184,148,0.15); color: var(--accent);
}

/* ── Plans table — indigo (Aurora) variant ────────────────────── */
.plans-table.indigo td.plan-highlight, .plans-table.indigo th.plan-highlight { background: rgba(99,102,241,0.07); }
.plans-table.indigo .plan-badge { background: rgba(99,102,241,0.15); color: #a5b4fc; border-color: rgba(99,102,241,0.3); }
.plans-table.indigo th.plan-highlight .plan-name { color: var(--accent2); }
.plans-table.indigo .plans-group-row td { color: var(--accent2); }
.plans-table.indigo .yes { color: var(--accent2); }
.plans-table.indigo .new-badge { background: rgba(99,102,241,0.15); color: #a5b4fc; }

/* ── Storyline (narrative slide embed) ────────────────────────── */
.storyline .slide {
  width: 100%; max-width: 1180px; aspect-ratio: 16 / 9; margin: 0 auto;
  background: var(--bg); border-radius: 18px; border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 44px) clamp(28px, 4vw, 60px) clamp(20px, 2.6vw, 34px);
}
.storyline .slide::before { content: ''; position: absolute; inset: 0; pointer-events: none; }
.storyline.green .slide::before { background: radial-gradient(ellipse at 12% -10%, rgba(0,184,148,0.14) 0%, transparent 55%); }
.storyline.indigo .slide::before {
  background:
    radial-gradient(ellipse 70% 55% at 82% 0%, rgba(99,102,241,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 60% 45% at 5% 100%, rgba(0,184,148,0.07) 0%, transparent 60%);
}
.storyline .header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; position: relative; z-index: 1; }
.storyline .eyebrow { font-size: clamp(10px,0.85vw,11px); font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.storyline.indigo .eyebrow {
  display: inline-flex; align-items: center; gap: 7px; color: var(--accent2);
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3);
  padding: 4px 12px; border-radius: 20px;
}
.storyline.indigo .eyebrow svg { width: 12px; height: 12px; }
.storyline .slide-heading { font-size: clamp(19px,2.6vw,32px); font-weight: 800; line-height: 1.18; color: var(--text); text-wrap: balance; }
.storyline .slide-heading span { background: linear-gradient(90deg, var(--accent), #00cec9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.storyline.indigo .slide-heading span { background: linear-gradient(135deg, var(--text) 20%, var(--accent2) 110%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.storyline .slide-sub { font-size: clamp(12px,1vw,14px); color: var(--muted); margin-top: 8px; max-width: 62ch; line-height: 1.55; }
.storyline .brandmark { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.storyline .brandmark-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, rgba(0,184,148,0.25), rgba(0,184,148,0.08));
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.storyline.indigo .brandmark-icon { background: var(--card2); border-color: rgba(99,102,241,0.35); padding: 6px; }
.storyline .brandmark-icon svg { width: 18px; height: 18px; }
.storyline.indigo .brandmark-icon svg { width: 100%; height: 100%; }
.storyline .brandmark-text { line-height: 1.25; }
.storyline.indigo .brandmark-text { text-align: right; }
.storyline .brandmark-name { font-size: 13px; font-weight: 700; color: var(--text); }
.storyline .brandmark-name span { color: var(--accent2); }
.storyline .brandmark-sub { font-size: 10.5px; color: var(--muted); letter-spacing: 0.4px; }
.storyline .timeline {
  position: relative; z-index: 1; flex: 1; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: clamp(14px,1.6vw,22px); margin-top: clamp(20px,2.8vw,30px);
}
.storyline .timeline::before {
  content: ''; position: absolute; top: 27px; left: calc(12.5% - 1px); right: calc(12.5% - 1px); height: 2px;
  background: linear-gradient(90deg, rgba(0,184,148,0.05), rgba(0,184,148,0.55) 12%, rgba(0,184,148,0.55) 88%, rgba(0,184,148,0.05));
}
.storyline.indigo .timeline::before { background: linear-gradient(90deg, rgba(99,102,241,0.6), rgba(0,184,148,0.6)); opacity: 0.55; }
.storyline .beat { display: flex; flex-direction: column; position: relative; }
.storyline .beat-time { font-variant-numeric: tabular-nums; font-size: clamp(10.5px,0.9vw,12.5px); font-weight: 700; color: var(--accent2); letter-spacing: 0.4px; margin-bottom: 10px; }
.storyline .beat-node {
  width: 54px; height: 54px; border-radius: 50%; background: var(--card);
  border: 1.5px solid rgba(0,184,148,0.45); display: flex; align-items: center; justify-content: center;
  color: var(--accent); position: relative; z-index: 1; margin-bottom: 16px; box-shadow: 0 0 0 6px var(--bg);
}
.storyline.indigo .beat-node { background: var(--card2); border: 2px solid var(--step-color, var(--accent2)); color: var(--step-color, var(--accent2)); }
.storyline .beat-node svg { width: 24px; height: 24px; }
.storyline .beat-title { font-size: clamp(13px,1.05vw,15px); font-weight: 700; color: var(--text); margin-bottom: 7px; line-height: 1.3; }
.storyline .beat-text { font-size: clamp(11px,0.92vw,12.8px); color: var(--muted); line-height: 1.6; }
.storyline .beat-text b { color: #b9b9d8; font-weight: 600; }
.storyline .beat-text .num { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.storyline .footer-row { position: relative; z-index: 1; margin-top: clamp(18px,2.6vw,28px); display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: stretch; }
.storyline .quote-block {
  background: rgba(0,184,148,0.07); border: 1px solid rgba(0,184,148,0.3); border-radius: 12px;
  padding: 16px 20px; font-size: clamp(11.5px,0.98vw,13.5px); color: var(--text); line-height: 1.6;
  font-style: italic; display: flex; align-items: center;
}
.storyline.indigo .quote-block { background: rgba(99,102,241,0.07); border-color: rgba(99,102,241,0.28); }
.storyline .quote-block::before {
  content: '\201C'; font-size: 34px; color: var(--accent); line-height: 0; margin-right: 10px;
  font-style: normal; align-self: flex-start; margin-top: 10px;
}
.storyline.indigo .quote-block::before { color: var(--accent2); }
.storyline .quote-attr { display: block; margin-top: 8px; font-style: normal; font-size: 11px; color: var(--muted); }
.storyline .outcome-card {
  background: linear-gradient(135deg, rgba(0,184,148,0.14), rgba(0,206,201,0.05));
  border: 1px solid rgba(0,184,148,0.35); border-radius: 12px; padding: 16px 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.storyline.indigo .outcome-card { background: linear-gradient(135deg, rgba(0,184,148,0.13), rgba(99,102,241,0.10)); border-color: rgba(0,184,148,0.3); }
.storyline .outcome-label { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
.storyline .outcome-val { font-size: clamp(17px,1.7vw,24px); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.storyline .outcome-sub { font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) {
  .storyline .slide { aspect-ratio: auto; }
  .storyline .timeline { grid-template-columns: repeat(2, 1fr); }
  .storyline .timeline::before { display: none; }
  .storyline .footer-row { grid-template-columns: 1fr; }
  .storyline .header-row { flex-direction: column; }
}

/* ── Tour video ────────────────────────────────────────────── */
.tour-video-wrap {
  max-width: 900px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px; padding: 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}
.tour-video-wrap video {
  width: 100%; display: block; border-radius: 10px; background: #000;
  aspect-ratio: 1440 / 900;
}
.tour-video-caption {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 6px 4px; font-size: 12.5px; color: var(--muted);
}
.tour-video-caption .lang-note { font-style: italic; }
@media (max-width: 640px) {
  .tour-video-caption { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ── Stats bar ─────────────────────────────────────────────── */
.stats-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; text-align: center; }
.stat-value { font-size: 44px; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── CTA section ───────────────────────────────────────────── */
.cta-section {
  padding: 96px 24px; text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,184,148,0.06) 0%, transparent 70%), var(--surface);
  border-top: 1px solid var(--border);
}
.cta-section h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 16px; }
.cta-section p { color: var(--muted); font-size: 18px; margin-bottom: 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Problem grid (Prisma Iuris page) ──────────────────────── */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.problem-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.problem-card .stat { font-size: 22px; font-weight: 800; color: #ff8a80; margin-bottom: 8px; }
.problem-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ── Positioning statement block (Prisma Iuris page) ───────── */
.position-block {
  background: linear-gradient(135deg, var(--card), var(--card2));
  border: 1px solid var(--border); border-radius: 20px; padding: 56px; text-align: center;
}
.position-block .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 20px;
}
.position-block h2 {
  font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; line-height: 1.3;
  max-width: 820px; margin: 0 auto;
}
.position-block h2 strong { color: var(--accent); }

/* ── Differentiators list (Prisma Iuris page) ──────────────── */
.diff-list { display: flex; flex-direction: column; }
.diff-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start;
  padding: 28px 0; border-top: 1px solid var(--border);
}
.diff-row:first-child { border-top: none; }
.diff-mark {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(0,184,148,0.1);
  border: 1px solid var(--border); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.diff-mark svg { width: 22px; height: 22px; }
.diff-row h4 { margin: 0 0 8px; font-size: 18px; }
.diff-row p { margin: 0; color: var(--muted); font-size: 15px; max-width: 640px; }

/* ── Impact stats (Prisma Iuris page) ──────────────────────── */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 20px; }
.impact-tile { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.impact-tile .num {
  font-size: 28px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 10px; white-space: normal;
  overflow-wrap: break-word;
}
.impact-tile .label { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.impact-tile .detail { font-size: 12.5px; color: var(--muted); }

/* ── How it works steps (Prisma Iuris page) ────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.step { padding: 0 20px; position: relative; }
.step:not(:first-child)::before {
  content: ''; position: absolute; top: 22px; left: -8px; width: calc(100% - 8px);
  height: 1px; background: var(--border);
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--card);
  border: 1px solid var(--border); color: var(--accent); font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  position: relative; z-index: 1; font-variant-numeric: tabular-nums;
}
.step h4 { font-size: 15px; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ── Feature card before/after micro-line (Prisma Iuris page) ─ */
.feature-card .before-after {
  font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px; align-items: baseline;
}
.feature-card .before-after .old { text-decoration: line-through; opacity: 0.55; }
.feature-card .before-after .new { color: var(--accent); font-weight: 700; }

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step:not(:first-child)::before { display: none; }
  .diff-row { grid-template-columns: 44px 1fr; }
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 24px 32px; }
.footer-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 280px; line-height: 1.7; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px; color: var(--muted);
}

/* ── Portal icon sizing ────────────────────────────────────── */
.product-icon svg,
.feature-icon svg,
.hero-eyebrow svg,
.btn svg {
  width: 20px; height: 20px;
  vertical-align: middle; flex-shrink: 0;
}
.product-icon svg { width: 28px; height: 28px; }
.feature-icon svg { width: 26px; height: 26px; }

/* ── WP core compatibility ─────────────────────────────────── */
.wp-block-image img { border-radius: var(--radius); }
.aligncenter { text-align: center; }
.entry-content p { color: var(--muted); line-height: 1.8; margin-bottom: 1em; }

/* ── Language toggle ───────────────────────────────────────── */
.lang-toggle-btn {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; padding: 5px 10px;
  cursor: default; flex-shrink: 0;
}
.lang-toggle-btn span[data-lang-option] {
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  color: var(--muted); cursor: pointer; padding: 2px 4px;
  border-radius: 4px; transition: color .15s, background .15s;
}
.lang-toggle-btn span[data-lang-option]:hover { color: var(--text); }
.lang-toggle-btn span[data-lang-option].active {
  color: var(--accent); background: rgba(0,184,148,0.12);
}
.lang-sep { color: rgba(255,255,255,0.15); font-size: 12px; }

/* Hide EN-only / PT-only elements */
[data-lang="en"] [data-show-lang="pt"] { display: none !important; }
[data-lang="pt"] [data-show-lang="en"] { display: none !important; }

/* ── Hero split grid (Prisma / Aurora pages) ───────────────── */
.hero-split {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  padding: 0 24px; position: relative; z-index: 1;
}

/* ── Aurora journey strip ──────────────────────────────────── */
.journey-strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 0; position: relative; margin-top: 48px;
}
.journey-strip::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(99,102,241,0.6), rgba(0,184,148,0.6));
  z-index: 0;
}

/* ── Hamburger menu ────────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px; flex-shrink: 0;
}
.hamburger span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none; position: fixed; inset: 64px 0 0 0;
  background: rgba(13,17,23,0.98); backdrop-filter: blur(16px);
  z-index: 99; padding: 32px 24px; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 14px 16px; font-size: 17px;
  font-weight: 500; color: var(--text); border-radius: 8px;
  transition: background .15s;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.05); }
.mobile-nav-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 14px 16px 2px;
}
.mobile-nav a.mobile-nav-sub { padding-left: 28px; font-size: 16px; }
.mobile-nav .lang-row {
  display: flex; gap: 12px; padding: 14px 16px; margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav .lang-row button {
  background: none; border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted); font-size: 13px; font-weight: 700;
  padding: 6px 14px; border-radius: 6px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.mobile-nav .lang-row button.active {
  color: var(--accent); border-color: rgba(0,184,148,0.4);
}

/* ── Hover effects — touch-safe ────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .product-card { transition: transform .25s, box-shadow .25s; }
  .product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
  .feature-card:hover { border-color: rgba(0,184,148,0.3); }
  .btn-primary:hover  { transform: translateY(-2px); }
  .btn-outline:hover  { transform: translateY(-2px); }
  .btn-accent2:hover  { transform: translateY(-2px); }
}

/* ── Tablet (≤ 1024px) ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-split { gap: 40px; }
  .journey-strip { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .journey-strip::before { display: none; }
  /* Nav wraps tighter but stays visible on tablet */
  .main-nav ul { gap: 20px; }
  .main-nav a { font-size: 13px; }
}

/* ── Mobile nav breakpoint (≤ 768px) ───────────────────────── */
@media (max-width: 768px) {
  body { overflow-x: hidden; }

  .site-header { padding: 0 20px; }
  .main-nav { display: none; }        /* hidden — hamburger takes over */
  .hamburger { display: flex; }

  /* Hero split stacks */
  .hero-split {
    grid-template-columns: 1fr; gap: 40px;
    text-align: center; padding: 0 20px;
  }
  .hero-split .hero-actions { justify-content: center; }
  .hero-split > div:last-child { display: none; } /* hide code terminal */

  /* Grids */
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .journey-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .journey-strip::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Spacing */
  section { padding: 64px 20px; }
  .stats-bar { padding: 40px 20px; }
}

/* ── Small mobile (≤ 480px) ────────────────────────────────── */
@media (max-width: 480px) {
  section { padding: 48px 16px; }
  .stats-bar, .cta-section { padding: 48px 16px; }
  .journey-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-card { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn { justify-content: center; }
  .section-sub { font-size: 16px; margin-bottom: 36px; }
  .stat-value { font-size: 36px; }
  .lang-toggle-btn { display: none; } /* moved into mobile-nav */
}

/* ── Product carousel (home page, inc/product-carousel.php) ──── */
.pc { --pc-w: min(1080px, 86vw); --pc-gap: 24px; position: relative; margin-top: 8px; }
.pc-viewport { overflow: hidden; padding: 8px 0 12px; touch-action: pan-y; }
.pc img { -webkit-user-drag: none; user-select: none; }
.pc-track { display: flex; gap: var(--pc-gap); transition: transform .6s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.pc-slide { flex: 0 0 var(--pc-w); display: grid; grid-template-columns: 1fr 1.08fr; gap: 36px; align-items: stretch;
  background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 36px;
  opacity: .32; transform: scale(.97); transition: opacity .6s, transform .6s, border-color .6s; cursor: pointer; }
.pc-slide.is-active { opacity: 1; transform: none; cursor: auto; border-color: color-mix(in srgb, var(--pc-accent) 45%, transparent); }
.pc-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pc-kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pc-accent); margin-bottom: 18px; }
.pc-kicker img { width: 22px; height: 22px; object-fit: contain; }
.pc-kicker-icon svg { width: 20px; height: 20px; display: block; }
.pc-title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; margin-bottom: 16px; color: var(--text); }
.pc-body { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 26px; }
.pc-btn { align-self: flex-start; background: var(--pc-accent); color: #0d1117; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.pc-btn svg { width: 16px; height: 16px; }
.pc-btn:hover { filter: brightness(1.08); }
.pc-visual { border-radius: 14px; overflow: hidden; min-height: 340px; display: flex;
  background: radial-gradient(ellipse 80% 70% at 70% 20%, color-mix(in srgb, var(--pc-accent) 22%, transparent), transparent 70%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--pc-accent) 25%, transparent); }
.pc-shot { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.pc-shot.pc-contain { object-fit: contain; object-position: center; background: #0b0f14; }
.pc-panel { width: 100%; padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.pc-mark { width: 56px; height: 56px; object-fit: contain; }
.pc-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: var(--pc-accent);
  background: color-mix(in srgb, var(--pc-accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pc-accent) 35%, transparent); }
.pc-icon svg { width: 28px; height: 28px; }
.pc-foot { color: var(--muted); font-size: 13px; line-height: 1.6; }
.pc-flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pc-flow li { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 15px;
  background: color-mix(in srgb, var(--pc-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--pc-accent) 30%, transparent); }
.pc-step { font-size: 11px; color: var(--pc-accent); letter-spacing: .08em; }
.pc-agents { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pc-chip { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--pc-accent) 40%, transparent); background: color-mix(in srgb, var(--pc-accent) 10%, transparent); }
.pc-arrow svg { width: 14px; height: 14px; color: var(--muted); display: block; }
.pc-checks, .pc-rows { list-style: none; display: grid; gap: 12px; }
.pc-checks li, .pc-rows li { display: flex; align-items: center; gap: 12px; font-size: 15px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.pc-checks svg, .pc-rows svg { width: 20px; height: 20px; color: var(--pc-accent); flex-shrink: 0; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pc-stats div { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); font-size: 13px; color: var(--muted); line-height: 1.4; }
.pc-num { font-size: 30px; font-weight: 800; color: var(--pc-accent); line-height: 1; white-space: nowrap; }
.pc-controls { width: var(--pc-w); margin: 22px auto 0; display: flex; align-items: center; gap: 24px; }
.pc-bars { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pc-bar { position: relative; height: 22px; background: none; border: 0; cursor: pointer; padding: 0; }
.pc-bar::before, .pc-fill { content: ""; position: absolute; left: 0; top: 9px; height: 3px; border-radius: 2px; }
.pc-bar::before { right: 0; background: rgba(255,255,255,0.14); }
.pc-fill { width: 0; background: var(--pc-accent); }
.pc-bar.is-active .pc-fill { animation: pc-fill var(--pc-dur, 7s) linear forwards; animation-play-state: paused; }
.pc-running .pc-bar.is-active .pc-fill { animation-play-state: running; }
.pc-paused .pc-bar.is-active .pc-fill, .pc-reduce .pc-bar.is-active .pc-fill { animation: none; width: 100%; }
@keyframes pc-fill { from { width: 0; } to { width: 100%; } }
.pc-bar:focus-visible, .pc-btn-round:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.pc-buttons { display: flex; gap: 10px; }
.pc-btn-round { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.25); }
.pc-btn-round:hover { border-color: var(--accent); color: var(--accent); }
.pc-btn-round svg { width: 16px; height: 16px; }
.pc-i-play, .pc-paused .pc-i-pause { display: none; }
.pc-paused .pc-i-play { display: block; }
.pc-reduce .pc-track, .pc-reduce .pc-slide { transition: none; }
@media (max-width: 860px) {
  .pc { --pc-w: 86vw; --pc-gap: 14px; }
  .pc-slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 22px; padding: 22px; }
  .pc-text { justify-content: flex-start; }
  .pc-visual { order: -1; min-height: 0; }
  .pc-shot { height: 220px; }
  .pc-panel { padding: 20px; gap: 14px; }
  .pc-mark, .pc-icon { width: 40px; height: 40px; }
  .pc-stats { gap: 8px; } .pc-num { font-size: 22px; }
  .pc-controls { gap: 14px; } .pc-bars { gap: 8px; }
  .pc-btn-round { width: 34px; height: 34px; }
}
