/* ============ Warhial Media — design system ============ */
/* Tema implicită: dark. [data-theme="light"] comută pe alb. */
:root {
  --bg: #121016;
  --surface: #1a1720;
  --surface-2: #221e2b;
  --text: #d9d6e3;
  --heading: #f4f2f9;
  --muted: #938ea2;
  --line: #282433;
  --accent: #7c6cff;
  --accent-2: #a78bfa;
  --header-bg: rgba(18, 16, 22, 0.78);
  --grid-line: rgba(255, 255, 255, 0.035);
  --radius: 18px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --glow-card: 0 0 36px rgba(124, 108, 255, 0.14);
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --glow-1: rgba(124, 108, 255, 0.16);
  --glow-2: rgba(167, 139, 250, 0.12);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  /* banda CTA + footer rămân întunecate în ambele teme */
  --band-bg: #17141d;
  --band-heading: #ffffff;
  --band-text: #b3aec2;
  --band-line: rgba(255, 255, 255, 0.08);
}
:root[data-theme="light"] {
  --bg: #f7f8fd;
  --surface: #ffffff;
  --surface-2: #edf0fb;
  --text: #2c2936;
  --heading: #322e3b;
  --muted: #6d6a7c;
  --line: #e6e6f0;
  --accent: #5b57f2;
  --accent-2: #8b7cf6;
  --header-bg: rgba(247, 248, 253, 0.82);
  --grid-line: rgba(50, 46, 59, 0.05);
  --shadow: 0 6px 24px rgba(50, 46, 59, 0.08);
  --shadow-lg: 0 20px 50px rgba(50, 46, 59, 0.14);
  --glow-card: 0 0 36px rgba(91, 87, 242, 0.12);
  --glow-1: rgba(139, 124, 246, 0.18);
  --glow-2: rgba(91, 87, 242, 0.12);
  --band-bg: #322e3b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
h1, h2, h3, h4 { font-family: "Sora", "Inter", sans-serif; line-height: 1.2; color: var(--heading); letter-spacing: -0.02em; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
p { margin-bottom: 1em; }
::selection { background: rgba(124, 108, 255, 0.35); color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1140px, 92%); margin: 0 auto; }

@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; gap: 14px; height: 72px; }
.brand {
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.35rem;
  color: var(--heading); letter-spacing: -0.02em;
  margin-right: auto; transition: opacity 0.2s;
}
.brand:hover { opacity: 0.8; }
.brand::after { content: "."; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 10px;
  color: var(--text); font-weight: 500; font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--heading); }
.nav-links a.active { background: var(--heading); color: var(--bg); }
.nav-links a.nav-cta { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(124, 108, 255, 0.35); transition: box-shadow 0.2s, transform 0.2s; }
.nav-links a.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 108, 255, 0.5); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 1.05rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--heading); margin: 5px 0; border-radius: 2px; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; padding: 116px 0 124px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 460px at 15% -5%, var(--glow-1), transparent 60%),
    radial-gradient(760px 520px at 85% 25%, var(--glow-2), transparent 60%),
    radial-gradient(520px 380px at 50% 110%, var(--glow-1), transparent 65%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    var(--noise),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, #000 40%, transparent 100%);
}
.hero .container { position: relative; z-index: 1; max-width: 820px; animation: rise 0.7s ease both; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px; font-size: 0.85rem; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); margin-bottom: 22px; }
.hero h1 em, .page-hero h1 em {
  font-style: normal; color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  animation: grad-shift 5s ease-in-out infinite;
}
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 37rem; margin: 0 auto 34px; }
.hero .btn-row { justify-content: center; }
.hero-points {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px;
  list-style: none; margin-top: 34px; padding: 0;
}
.hero-points li { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.hero-points li::before { content: "✓ "; color: var(--accent-2); font-weight: 700; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background-position 0.35s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background-image: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% auto; color: #fff;
  box-shadow: 0 8px 22px rgba(124, 108, 255, 0.35);
}
.btn-primary:hover { background-position: right center; box-shadow: 0 12px 30px rgba(124, 108, 255, 0.5); }
.btn-ghost { background: var(--surface); color: var(--heading); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ Sections ============ */
.section { padding: 88px 0; }
.section-alt { background: linear-gradient(180deg, var(--surface), var(--bg)); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 12px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* ============ Cards ============ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad); border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0; transition: opacity 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), var(--glow-card); border-color: var(--accent); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.2), rgba(167, 139, 250, 0.06));
  border: 1px solid rgba(124, 108, 255, 0.25);
  margin-bottom: 18px; font-size: 1.4rem;
}
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 0.92rem; transition: gap 0.2s; }
.card-link:hover { gap: 10px; }

/* project cards */
.project-card { overflow: hidden; }
.project-card .thumb {
  height: 150px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center;
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.5rem; color: #fff;
  background: var(--grad); position: relative;
  transition: transform 0.3s;
}
.project-card:hover .thumb { transform: scale(1.02); }
.project-card .thumb::after { content: ""; position: absolute; inset: 0; background: var(--noise); border-radius: 12px; }
.project-card .thumb.t-finance { background: linear-gradient(130deg, #1f8a70, #4fd1a5); }
.project-card .thumb.t-news { background: linear-gradient(130deg, #d3455b, #f2836b); }
.project-card .thumb.t-sites { background: linear-gradient(130deg, #5b57f2, #8b7cf6); }
.project-card .thumb.t-soon { background: linear-gradient(130deg, #3f3a4a, #6d6a7c); }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--text);
  font-size: 0.78rem; font-weight: 600; margin-bottom: 12px;
}

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b {
  display: block; font-family: "Sora", sans-serif; font-size: 2.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-size: 0.92rem; }

/* ============ CTA band ============ */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--band-bg); border: 1px solid rgba(124, 108, 255, 0.3);
  border-radius: 24px; padding: 68px 48px; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(520px 320px at 15% 0%, rgba(167, 139, 250, 0.28), transparent 60%),
    radial-gradient(520px 320px at 85% 100%, rgba(124, 108, 255, 0.25), transparent 60%);
}
.cta-band::after { content: ""; position: absolute; inset: 0; background: var(--noise); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--band-heading); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.cta-band p { color: var(--band-text); max-width: 30rem; margin: 0 auto 30px; }

/* ============ Page hero (subpagini) ============ */
.page-hero { position: relative; overflow: hidden; padding: 76px 0; text-align: center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(520px 320px at 20% 0%, var(--glow-1), transparent 60%),
    radial-gradient(520px 320px at 80% 100%, var(--glow-2), transparent 60%);
}
.page-hero .container { position: relative; animation: rise 0.6s ease both; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 14px; }
.page-hero p { color: var(--muted); max-width: 38rem; margin: 0 auto; }

/* ============ Prose (pagini legale, articole) ============ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.prose ul, .prose ol { margin: 0 0 1em 1.4em; color: var(--text); }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; text-decoration-color: rgba(124, 108, 255, 0.4); text-underline-offset: 3px; }
.updated { font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 24px; margin-bottom: 14px; box-shadow: var(--shadow);
  transition: border-color 0.25s;
}
.faq-item[open] { border-color: var(--accent); box-shadow: var(--shadow), var(--glow-card); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 20px 36px 20px 0;
  font-family: "Sora", sans-serif; font-weight: 600; color: var(--heading);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent-2); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info .card { margin-bottom: 18px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--heading); }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; background: var(--bg); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.2);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--band-bg); color: var(--band-text); margin-top: 88px;
  position: relative; overflow: hidden;
  border-top: 2px solid; border-image: linear-gradient(90deg, var(--accent), var(--accent-2), transparent) 1;
}
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--noise); }
.footer-grid {
  position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding: 64px 0 48px;
}
.footer-grid h4 { color: var(--band-heading); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--band-text); font-size: 0.92rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--band-heading); }
.footer-wordmark {
  display: block; font-family: "Sora", sans-serif; font-weight: 800;
  font-size: 1.3rem; color: var(--band-heading); margin-bottom: 14px;
}
.footer-wordmark::after { content: "."; color: var(--accent); }
.footer-brand p { font-size: 0.92rem; max-width: 26rem; }
.footer-bottom {
  position: relative; border-top: 1px solid var(--band-line);
  padding: 22px 0; font-size: 0.85rem; text-align: center;
}

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid > .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .container, .page-hero .container { animation: none; }
  .hero h1 em, .page-hero h1 em { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .stat + .stat { border-left: 0; }
  .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 16px; box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 72px 0 84px; }
  .cta-band { padding: 48px 24px; }
  .form-card { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
