/*
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;
  --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); }
.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; }

/* ── 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-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(460px, 1fr)); gap: 24px; }
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px;
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.product-card.aurora { border-color: rgba(99,102,241,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-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 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 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; }

/* ── Features grid ─────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--card2); border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius); padding: 28px; transition: border-color .2s;
}
.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; }

/* ── 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; }

/* ── 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; }

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .main-nav { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  section { padding: 64px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
