/* Efficio AI homepage — shared styles
   Dark theme matching Sofia subdomain palette. Mobile-first responsive.
   No external CSS deps beyond Inter from Google Fonts (loaded in <head>). */

:root {
  --bg: #0a1628;
  --bg-elevated: #0f1d35;
  --card: #111a2b;
  --border: #243047;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --silver: #cbd5e1;
  --accent: #4ade80;
  --accent-dark: #22c55e;
  --info: #60a5fa;
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ──────────────── HEADER ──────────────── */

header.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0.85rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: -0.04em;
}

.lang-switcher {
  display: flex;
  gap: 0.35rem;
}

.lang-switcher a {
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.lang-switcher a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-switcher a.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ──────────────── HERO — bold typography, single column ──────────────── */

.hero {
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

/* Layered background: stronger top-center lime glow + bottom-right blue accent + subtle dot grid mask */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(74, 222, 128, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(96, 165, 250, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(74, 222, 128, 0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}

.hero > .container { position: relative; z-index: 1; }

/* Eyebrow: small lime bar + caps label above the headline */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.eyebrow-bar {
  width: 36px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}

.eyebrow-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 auto 1.5rem;
  max-width: 16ch;
}

/* Marker-block highlight — fully opaque, padded, slightly bolder, soft lime drop-shadow for the "marker hit" feel */
.hero h1 .highlight {
  background: var(--accent);
  color: var(--bg);
  padding: 0.06em 0.42em;
  border-radius: 0.12em;
  font-weight: 800;
  box-shadow:
    0 6px 20px rgba(74, 222, 128, 0.32),
    0 1px 0 rgba(34, 197, 94, 0.6);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  white-space: nowrap;
}

.hero .sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--silver);
  margin: 1.75rem auto 2.75rem;
  line-height: 1.55;
  max-width: 640px;
}

.hero-ctas {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Make the primary CTA visually heavier than the secondary in the hero */
.hero-ctas .btn-primary {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.hero-secondary-caption {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* ──────────────── STAT STRIP ──────────────── */

.stat-strip {
  padding: 3.25rem 0;
  border-top: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat {
  /* No-JS / reduced-motion users see the final state from the static HTML.
     When the inline head-script adds .js-anim to <html>, the rules below kick
     in to hide the stats until JS toggles .is-revealed on each one. */
}

html.js-anim .stat {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  will-change: opacity, transform;
}

html.js-anim .stat.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  line-height: 1.4;
}

/* ──────────────── BUTTONS ──────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

/* ──────────────── SECTIONS ──────────────── */

section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* ──────────────── WHAT YOU GET ──────────────── */

.bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.bullet {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0;
}

.bullet-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}

.bullet p {
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--silver);
}

/* ──────────────── PRICING ──────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.price-card:hover {
  border-color: rgba(74, 222, 128, 0.4);
}

.price-card.featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 769px) {
  .price-card.featured { transform: translateY(-8px); }
  .price-card.featured:hover { transform: translateY(-10px); }
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-card .tier {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.price-card .price {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.price-card .price small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.25rem;
}

.price-card .best-for {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.price-card ul {
  list-style: none;
  margin-bottom: 1.6rem;
  flex: 1;
}

.price-card li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.45;
}

.price-card li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-card .btn {
  width: 100%;
}

/* ──────────────── FOUNDER ──────────────── */

.founder-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  align-items: center;
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-lg);
  font-family: inherit;
  user-select: none;
  position: relative;
}

.avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(74, 222, 128, 0.25);
  pointer-events: none;
}

.founder-text {
  color: var(--silver);
  font-size: 1rem;
  line-height: 1.65;
}

/* ──────────────── HOW IT WORKS ──────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.25rem;
  position: relative;
}

.step .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--silver);
  line-height: 1.5;
}

/* ──────────────── FAQ ──────────────── */

.faq {
  max-width: 760px;
  margin: 0 auto;
}

details.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.7rem;
  background: var(--card);
  transition: border-color 0.15s ease;
}

details.faq-item[open] {
  border-color: rgba(74, 222, 128, 0.4);
}

details.faq-item summary {
  padding: 1.05rem 1.3rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  font-size: 0.97rem;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.15s ease;
}

details.faq-item[open] summary::after {
  content: '−';
}

details.faq-item p {
  padding: 0 1.3rem 1.3rem;
  color: var(--silver);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ──────────────── FINAL CTA ──────────────── */

.final-cta {
  text-align: center;
  padding: 5.5rem 0;
}

.final-cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 1.75rem;
}

.final-cta .btn-primary {
  font-size: 1.05rem;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
}

.contact-line {
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--silver);
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-info a:hover {
  color: var(--accent);
}

.contact-info .icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
}

/* ──────────────── FOOTER ──────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer .copyright {
  margin-bottom: 0.85rem;
}

footer .subdomain-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

footer .subdomain-links a {
  color: var(--silver);
  text-decoration: none;
  transition: color 0.15s ease;
}

footer .subdomain-links a:hover {
  color: var(--accent);
}

footer .subdomain-links .coming-soon {
  color: var(--muted);
  font-style: italic;
}

/* ──────────────── MOBILE ──────────────── */

@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 1.1rem; }
  header.site-header { padding: 0.75rem 0; }
  .hero { padding: 4rem 0 3.25rem; }
  .hero h1 { margin-bottom: 1.1rem; }
  .hero .sub { margin: 1.25rem auto 2rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .stat-strip { padding: 2.5rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  .stat-value { font-size: 1.85rem; }
  .stat-label { font-size: 0.7rem; }
  .bullets { grid-template-columns: 1fr; gap: 0.5rem; }
  .pricing-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .founder-block { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .avatar { margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
  section h2 { margin-bottom: 1.75rem; }
  .lang-switcher a { padding: 0.3rem 0.55rem; font-size: 0.78rem; }
  details.faq-item summary { padding: 0.95rem 1.1rem; font-size: 0.93rem; }
  details.faq-item p { padding: 0 1.1rem 1.1rem; }
}

@media (max-width: 400px) {
  header .container { gap: 0.5rem; }
  .logo { font-size: 1.05rem; }
  .lang-switcher a { padding: 0.28rem 0.45rem; font-size: 0.72rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0s !important; transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
}
