/* ============================================================
   Aninu Apps® — Mockup site nou
   Brand system & global styles
   ============================================================ */

:root {
  /* Brand colors */
  --ink: #33373d;          /* main text (cerut de client) */
  --ink-soft: #5d636c;     /* text secundar */
  --ink-faint: #868d97;    /* hint / captions */

  --navy: #21405f;         /* brand profund */
  --brand: #2f6aa5;        /* albastru principal */
  --brand-2: #4a8fc7;      /* albastru deschis */
  --sky: #9fc3e0;
  --sky-soft: #e7f1f9;

  --teal: #2f8f9d;         /* accent InsideApp® */
  --teal-2: #46b3c0;

  --amber: #e0a13c;        /* accent cald (printare 3D / highlight) */

  --bg: #f4f7fb;
  --bg-2: #eef3f9;
  --surface: #ffffff;
  --line: #e2e9f2;

  /* Effects */
  --grad-brand: linear-gradient(135deg, #2f6aa5 0%, #21405f 100%);
  --grad-sky: linear-gradient(135deg, #4a8fc7 0%, #9fc3e0 100%);
  --grad-teal: linear-gradient(135deg, #2f8f9d 0%, #21405f 100%);

  --shadow-sm: 0 2px 8px rgba(33, 64, 95, .06);
  --shadow: 0 12px 30px rgba(33, 64, 95, .10);
  --shadow-lg: 0 24px 60px rgba(33, 64, 95, .16);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --container: 1200px;
  --header-h: 76px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { 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, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.01em;
}

p { color: var(--ink-soft); }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.bg-soft {
  background:
    radial-gradient(circle at 1px 1px, rgba(33,64,95,.05) 1px, transparent 0) 0 0 / 26px 26px,
    var(--bg-2);
}
.bg-white { background: var(--surface); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
  background: var(--sky-soft); padding: 8px 16px; border-radius: 999px;
  margin-bottom: 18px; border: 1px solid rgba(47,106,165,.14);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px rgba(47,106,165,.16);
}
.eyebrow.is-teal { color: var(--teal); background: rgba(70,179,192,.12); border-color: rgba(47,143,157,.18); }
.eyebrow.is-teal::before { background: var(--teal); box-shadow: 0 0 0 4px rgba(47,143,157,.16); }
.eyebrow.is-amber { color: #b87d1c; background: rgba(224,161,60,.14); border-color: rgba(184,125,28,.2); }
.eyebrow.is-amber::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(224,161,60,.18); }

.section-head { max-width: 720px; margin: 0 auto 56px; }
.section-head.left { margin-inline: 0; }
h2.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; }

.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(47,106,165,.32); }
.btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 32px rgba(47,106,165,.42); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand-2); transform: translateY(-3px); background: var(--sky-soft); }
.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--brand); transform: translateY(-3px); }
.btn-teal { background: var(--grad-teal); color: #fff; box-shadow: 0 10px 24px rgba(47,143,157,.3); }
.btn-teal:hover { color: #fff; transform: translateY(-3px); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h);
  display: flex; align-items: center; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 11px; font-family: "Poppins", sans-serif; }
.brand .brand-logo { height: 42px; width: auto; display: block; }
.brand .logo-mark { width: 40px; height: 40px; flex: none; }
.brand .logo-text { display: flex; flex-direction: column; line-height: 1; }
.brand .logo-text b { font-size: 1.16rem; color: var(--ink); font-weight: 700; }
.brand .logo-text b sup { font-size: .55em; color: var(--brand); }
.brand .logo-text span { font-size: .74rem; color: var(--brand-2); letter-spacing: .12em; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: .96rem;
  padding: 9px 15px; border-radius: 10px; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); background: var(--sky-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.lang-switch button {
  border: none; background: transparent; cursor: pointer;
  font: 600 .8rem/1 "Inter", system-ui, sans-serif; color: var(--ink-soft);
  padding: 8px 11px; letter-spacing: .03em; transition: .2s var(--ease);
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover:not(.active) { color: var(--brand); background: var(--sky-soft); }
.lang-switch button.active { background: var(--brand); color: #fff; }

.nav-toggle { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: calc(var(--header-h) + 80px) 0 96px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(74,143,199,.20), transparent 60%),
    radial-gradient(700px 460px at 5% 110%, rgba(47,143,157,.16), transparent 60%),
    var(--bg);
}
/* Animated network background (dots + connecting lines) */
.hero-net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 100% at 70% 30%, #000 55%, transparent 100%);
  mask-image: radial-gradient(120% 100% at 70% 30%, #000 55%, transparent 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); margin-bottom: 22px; }
.hero h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }
.hero-badge svg { width: 20px; height: 20px; color: var(--teal); flex: none; }

/* Hero visual — code window mockup */
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; padding: 30px 10px; }

.code-window {
  width: 100%; max-width: 520px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 70px -25px rgba(33,64,95,.35), 0 8px 24px -12px rgba(33,64,95,.18);
  overflow: hidden; animation: float 7s var(--ease) infinite;
}
.code-bar { display: flex; gap: 9px; padding: 18px 22px 6px; }
.code-bar .cd { width: 13px; height: 13px; border-radius: 50%; }
.code-bar .cd.red { background: #ec6a5e; }
.code-bar .cd.yellow { background: #f4bf4f; }
.code-bar .cd.green { background: #61c554; }
.code-body { padding: 18px 26px 34px; display: flex; flex-direction: column; gap: 20px; }
.code-line { display: flex; align-items: center; gap: 16px; }
.code-line .tok {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .98rem; font-weight: 600; color: var(--brand); flex: none; white-space: nowrap;
}
.code-line .bar { height: 13px; border-radius: 7px; }
.code-line .bar.b-blue { background: #dde6f5; }
.code-line .bar.b-mint { background: #d3eede; }
.code-line .bar.w-sm { width: 38%; }
.code-line .bar.w-md { width: 52%; }
.code-line .bar.w-lg { flex: 1; }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 20px; font-family: "Poppins"; font-weight: 700; font-size: .98rem;
  color: var(--ink); box-shadow: 0 18px 40px -16px rgba(33,64,95,.35);
}
.chip .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--teal); flex: none; }
.chip-top { top: 4%; right: -4%; animation: float 6s var(--ease) infinite .5s; }
.chip-bottom { bottom: 6%; left: -4%; animation: float 6.5s var(--ease) infinite .2s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; z-index: 1; overflow: hidden;
  width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.hero-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.hero-slide { flex: 0 0 100%; min-width: 100%;
  padding-inline: max(24px, calc((100vw - var(--container)) / 2)); }
.hero-slide.is-active .hero-copy { animation: heroIn .6s var(--ease) both; }
.hero-slide.is-active .hero-visual { animation: heroIn .7s var(--ease) .08s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* panou colorat pentru vizualul fiecărui produs */
.hero-panel { width: 100%; max-width: 500px; border-radius: 26px; padding: 26px; position: relative; overflow: hidden; color: #fff;
  box-shadow: 0 30px 70px -25px rgba(33,64,95,.4); }
.hero-panel::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); }
.hero-panel.iapp-bg { background: linear-gradient(135deg,#15303f 0%,#21405f 55%,#2f8f9d 140%); }
.hero-panel.evm { background: linear-gradient(135deg,#0a2427 0%,#0f3a3f 52%,#00A9B8 150%); }
.hero-panel.ev  { background: linear-gradient(135deg,#0b241b 0%,#123a2e 52%,#2bb6ae 150%); }
.hero-panel > .iapp-card,.hero-panel > .evm-stage,.hero-panel > .ev-stage { position: relative; z-index: 1; margin: 0; }
.hero-panel .evm-stage,.hero-panel .ev-stage { background: none; border: none; backdrop-filter: none; padding: 4px; }

/* controale slider */
.hero-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .18s, border-color .18s, color .18s; }
.hero-arrow:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-dots { display: flex; gap: 9px; }
.hero-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 999px; background: var(--line-2); cursor: pointer;
  transition: all .25s var(--ease); }
.hero-dot:hover { background: var(--brand); opacity: .7; }
.hero-dot.is-active { width: 28px; background: var(--grad-brand); }

@media (max-width: 640px){
  .hero-controls { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce){
  .hero-track { transition: none; }
  .hero-slide.is-active .hero-copy,.hero-slide.is-active .hero-visual { animation: none; }
}

/* ---------- Trust strip / stats ---------- */
.stats-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 320px at 50% -30%, rgba(74,143,199,.13), transparent 62%),
    radial-gradient(620px 300px at 8% 130%, rgba(47,143,157,.10), transparent 60%);
}
.stats-band .container { position: relative; z-index: 1; }
.hero-net.net-band {
  -webkit-mask-image: radial-gradient(125% 130% at 50% 42%, #000 52%, transparent 100%);
  mask-image: radial-gradient(125% 130% at 50% 42%, #000 52%, transparent 100%);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  position: relative; text-align: center; padding: 34px 18px 30px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.stat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-brand); opacity: .8;
}
.stat::after {
  content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px;
  background: radial-gradient(circle, rgba(74,143,199,.12), transparent 70%); border-radius: 50%;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.stat .num { font-family: "Poppins"; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat .num.is-text { font-size: clamp(1.35rem, 2.5vw, 1.7rem); letter-spacing: -.01em; }
.stat .label { margin-top: 10px; font-size: .92rem; color: var(--ink-soft); font-weight: 500; position: relative; }

/* ---------- Cards grid (services) ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card::after {
  content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px;
  background: radial-gradient(circle, rgba(74,143,199,.10), transparent 70%);
  border-radius: 50%; opacity: 0; transition: opacity .4s var(--ease); z-index: -1;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 1; }
.card .ic {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  margin-bottom: 22px; color: #fff; background: var(--grad-brand);
  box-shadow: 0 12px 24px -8px rgba(47,106,165,.55);
  transition: transform .4s var(--ease);
}
.card:hover .ic { transform: translateY(-3px) scale(1.05) rotate(-3deg); }
.card .ic svg { width: 28px; height: 28px; }
.card.is-teal .ic { background: var(--grad-teal); box-shadow: 0 12px 24px -8px rgba(47,143,157,.55); }
.card.is-teal::before { background: var(--grad-teal); }
.card.is-teal::after { background: radial-gradient(circle, rgba(70,179,192,.12), transparent 70%); }
.card.is-amber .ic { background: linear-gradient(135deg, #e0a13c, #c8791f); box-shadow: 0 12px 24px -8px rgba(200,121,31,.5); }
.card.is-amber::before { background: linear-gradient(135deg, #e0a13c, #c8791f); }
.card.is-amber::after { background: radial-gradient(circle, rgba(224,161,60,.14), transparent 70%); }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: .78rem; font-weight: 600; color: var(--brand); background: var(--sky-soft); padding: 5px 12px; border-radius: 999px; transition: background .25s, color .25s; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 600; font-size: .92rem; }
.card .more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- Platforms ribbon ---------- */
.platforms { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.platform-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 20px; font-weight: 600; font-size: .92rem; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .25s;
}
.platform-chip:hover { transform: translateY(-3px); border-color: var(--brand-2); }
.platform-chip svg { width: 20px; height: 20px; color: var(--brand); }

/* ---------- Options grid (mini features) ---------- */
.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.opt {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.opt::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-brand); transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease);
}
.opt:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.opt:hover::before { transform: scaleY(1); }
.opt .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--sky-soft); color: var(--brand); margin-bottom: 16px; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.opt:hover .ic { background: var(--grad-brand); color: #fff; transform: scale(1.06); }
.opt .ic svg { width: 22px; height: 22px; }
.opt h4 { font-size: 1rem; margin-bottom: 4px; }
.opt p { font-size: .86rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { display: grid; gap: 16px; margin-top: 26px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .ck { width: 26px; height: 26px; border-radius: 8px; background: var(--sky-soft); color: var(--brand); display: grid; place-items: center; flex: none; margin-top: 2px; }
.feature-list .ck svg { width: 15px; height: 15px; }
.feature-list b { display: block; color: var(--ink); font-family: "Poppins"; font-size: 1rem; }
.feature-list span { font-size: .94rem; color: var(--ink-soft); }

/* ---------- Inside App showcase ---------- */
.iapp {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #15303f 0%, #21405f 55%, #2f8f9d 140%);
  color: #fff; padding: 56px;
}
.iapp::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(70,179,192,.4), transparent 70%); }
.iapp-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.iapp h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.iapp p { color: rgba(255,255,255,.82); }
.iapp .powered { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.7); margin-top: 22px; }
.iapp .powered b { color: #fff; }
.iapp-points { display: grid; gap: 14px; margin: 24px 0 28px; }
.iapp-points li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.9); font-size: .98rem; }
.iapp-points .ck { width: 24px; height: 24px; border-radius: 7px; background: rgba(70,179,192,.25); color: #7fe3ed; display: grid; place-items: center; flex: none; }
.iapp-points .ck svg { width: 14px; height: 14px; }
.iapp-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 26px; backdrop-filter: blur(8px); }
.iapp-card .row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.iapp-card .row:last-child { border-bottom: none; }
.iapp-card .row .amt { font-weight: 700; color: #7fe3ed; font-family: "Poppins"; }
.iapp-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.iapp-card .head .dot { width: 10px; height: 10px; border-radius: 50%; background: #46b3c0; box-shadow: 0 0 0 4px rgba(70,179,192,.25); }
.iapp-card .head b { color: #fff; font-family: "Poppins"; }

/* EV Simulator — varianta verde -> turcoaz */
.iapp.ev { background: linear-gradient(135deg, #0b241b 0%, #123a2e 52%, #2bb6ae 150%); }
.iapp.ev::after { background: radial-gradient(circle, rgba(142,214,75,.35), transparent 70%); }
.iapp.ev .iapp-points .ck { background: rgba(142,214,75,.22); color: #b7f06a; }
.iapp.ev .iapp-card .row .amt { color: #9fe870; }
.iapp.ev .iapp-card .head .dot { background: #8ed64b; box-shadow: 0 0 0 4px rgba(142,214,75,.25); }
.btn-ev { background: linear-gradient(135deg, #8ED64B 0%, #2BB6AE 100%); color: #04140f; box-shadow: 0 10px 24px rgba(43,182,174,.3); }
.btn-ev:hover { color: #04140f; transform: translateY(-3px); }

/* EV Simulator — scenă animată cu mașină electrică */
.ev-stage { position: relative; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 22px; backdrop-filter: blur(8px); overflow: hidden; }
.ev-scene { display: block; width: 100%; height: auto; }
.ev-badge { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 8px; font-size: .82rem; font-family: "Poppins"; font-weight: 600; color: #eafff2; background: rgba(4,20,15,.35); border: 1px solid rgba(142,214,75,.35); padding: 6px 10px; border-radius: 999px; z-index: 2; }
.ev-badge__bolt { color: #b7f06a; }
.ev-batt { width: 34px; height: 12px; border: 1.5px solid rgba(142,214,75,.6); border-radius: 3px; position: relative; }
.ev-batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2.5px; height: 4px; background: rgba(142,214,75,.6); border-radius: 0 2px 2px 0; }
.ev-batt__fill { display: block; height: 100%; background: linear-gradient(90deg,#8ED64B,#2BB6AE); border-radius: 1px; animation: evCharge 3.4s ease-in-out infinite; }

.ev-road > line { animation: evRoad 1.1s linear infinite; }
.ev-wheel { animation: evSpin 1.1s linear infinite; transform-box: fill-box; transform-origin: center; }
.ev-car { animation: evBob 2.6s ease-in-out infinite; }
.ev-beam { animation: evBeam 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }

.ev-stage:hover .ev-road > line { animation-duration: .5s; }
.ev-stage:hover .ev-wheel { animation-duration: .5s; }

@keyframes evSpin { to { transform: rotate(360deg); } }
@keyframes evRoad { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes evBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes evBeam { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes evCharge { 0% { width: 20%; } 50% { width: 100%; } 100% { width: 20%; } }

@media (prefers-reduced-motion: reduce) {
  .ev-road > line, .ev-wheel, .ev-car, .ev-beam, .ev-batt__fill { animation: none; }
}

/* EV Monitor — varianta teal -> cyan + dashboard animat */
.iapp.evm { background: linear-gradient(135deg, #0a2427 0%, #0f3a3f 52%, #00A9B8 150%); }
.iapp.evm::after { background: radial-gradient(circle, rgba(19,191,160,.4), transparent 70%); }
.iapp.evm .iapp-points .ck { background: rgba(19,191,160,.22); color: #7fe9dd; }
.btn-evm { background: linear-gradient(135deg, #13BFA0 0%, #00A9B8 100%); color: #04140f; box-shadow: 0 10px 24px rgba(0,169,184,.3); }
.btn-evm:hover { color: #04140f; transform: translateY(-3px); }

.evm-stage { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 28px 24px; backdrop-filter: blur(8px); text-align: center; }
.evm-ring { width: 172px; height: 172px; display: block; margin: 0 auto; }
.evm-ring__prog { animation: evmRing 2.2s cubic-bezier(.4,0,.2,1) forwards; }
.evm-ring__val { fill: #fff; font-family: "Poppins"; font-weight: 800; }
.evm-ring__lbl { fill: rgba(255,255,255,.7); font-family: "Inter"; }
.evm-batt-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.evm-batt { width: 140px; height: 14px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.evm-batt__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#13BFA0,#00A9B8); animation: evmBatt 3.6s ease-in-out infinite; }
.evm-batt-lbl { color: #fff; font-family: "Poppins"; font-size: .9rem; }
.evm-chips { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.evm-chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 12px 14px; min-width: 88px; }
.evm-chip b { display: block; font-family: "Poppins"; color: #fff; font-size: 1.02rem; }
.evm-chip span { font-size: .72rem; color: rgba(255,255,255,.7); }

@keyframes evmRing { from { stroke-dashoffset: 402; } to { stroke-dashoffset: 72; } }
@keyframes evmBatt { 0%,100% { width: 58%; } 50% { width: 82%; } }

@media (prefers-reduced-motion: reduce) {
  .evm-ring__prog { animation: none; stroke-dashoffset: 72; }
  .evm-batt__fill { animation: none; width: 72%; }
}

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, var(--brand-2), var(--teal), transparent); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 16px 40px; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-item .dot { position: absolute; top: 24px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad-brand); border: 3px solid #fff; box-shadow: 0 0 0 5px rgba(47,106,165,.14), var(--shadow-sm); }
.tl-item:nth-child(odd) .dot { right: -9px; }
.tl-item:nth-child(even) .dot { left: -9px; }
.tl-item .yr { font-family: "Poppins"; font-weight: 800; color: var(--brand); font-size: 1.15rem; }
.tl-item h4 { font-size: 1.05rem; margin: 4px 0 4px; }
.tl-item p { font-size: .92rem; }

/* ---------- Projects ---------- */
.proj-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.proj-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.proj-thumb { aspect-ratio: 16/10; background: var(--grad-brand); position: relative; display: grid; place-items: center; overflow: hidden; }
.proj-thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.18) 1px, transparent 0) 0 0 / 22px 22px; }
.proj-thumb::after { content: ""; position: absolute; width: 200px; height: 200px; right: -60px; bottom: -80px; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); border-radius: 50%; }
.proj-thumb .ph { color: #fff; opacity: .92; position: relative; z-index: 1; transition: transform .4s var(--ease); }
.proj-card:hover .proj-thumb .ph { transform: scale(1.12); }
.proj-thumb .ph svg { width: 54px; height: 54px; }
.proj-card .body { padding: 24px 26px 26px; }
.proj-card .cat { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.proj-card h3 { font-size: 1.12rem; margin: 6px 0 4px; }
.proj-card .date { font-size: .84rem; color: var(--ink-faint); }

/* ---------- Testimonials ---------- */
.quote { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.quote::before { content: "”"; position: absolute; top: 4px; right: 24px; font-family: "Poppins"; font-size: 6rem; line-height: 1; color: var(--sky-soft); z-index: 0; }
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.quote .stars { color: var(--amber); margin-bottom: 14px; letter-spacing: 2px; position: relative; z-index: 1; }
.quote p { font-size: 1.02rem; color: var(--ink); font-style: italic; position: relative; z-index: 1; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; position: relative; z-index: 1; }
.quote .av { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: "Poppins"; box-shadow: 0 8px 18px -6px rgba(47,106,165,.5); }
.quote .who b { display: block; color: var(--ink); }
.quote .who span { font-size: .86rem; color: var(--ink-faint); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-brand); border-radius: var(--radius-lg); padding: 60px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(255,255,255,.18), transparent 70%); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; position: relative; }
.cta-band p { color: rgba(255,255,255,.86); font-size: 1.1rem; max-width: 560px; margin: 0 auto 30px; position: relative; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 70px) 0 60px; background:
  radial-gradient(700px 360px at 80% -10%, rgba(74,143,199,.18), transparent 60%), var(--bg); }
.page-hero.teal { background: radial-gradient(700px 360px at 80% -10%, rgba(47,143,157,.2), transparent 60%), var(--bg); }
.page-hero.amber { background: radial-gradient(700px 360px at 80% -10%, rgba(224,161,60,.18), transparent 60%), var(--bg); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: .88rem; color: var(--ink-faint); margin-bottom: 16px; }
.breadcrumb a { color: var(--ink-soft); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: 16px; max-width: 760px; }
.page-hero p { font-size: 1.15rem; max-width: 640px; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.step .n { counter-increment: step; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-family: "Poppins"; font-weight: 800; font-size: 1.2rem; }
.step .n::before { content: counter(step, decimal-leading-zero); }
.step h4 { font-size: 1.1rem; margin-bottom: 5px; }

/* ---------- Spec list (hardware/3d) ---------- */
.spec { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec .row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.spec .row b { color: var(--ink); font-family: "Poppins"; font-weight: 600; font-size: .95rem; }
.spec .row span { color: var(--ink-soft); font-size: .95rem; text-align: right; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 24px; font-family: "Poppins"; font-weight: 600; font-size: 1.02rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .pm { flex: none; width: 24px; height: 24px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--brand); border-radius: 2px; transition: .3s var(--ease); }
.faq-q .pm::before { top: 11px; left: 4px; width: 16px; height: 2px; }
.faq-q .pm::after { top: 4px; left: 11px; width: 2px; height: 16px; }
.faq-item.open .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 24px 20px; font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.cinfo { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cinfo .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--sky-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.cinfo .ic svg { width: 22px; height: 22px; }
.cinfo b { font-family: "Poppins"; color: var(--ink); display: block; }
.cinfo a, .cinfo span { color: var(--ink-soft); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(74,143,199,.14); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--ink-faint); margin-top: 12px; }
.form-ok { display: none; background: rgba(47,143,157,.1); color: #1d6b76; border: 1px solid rgba(47,143,157,.3); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; font-size: .92rem; }
.form-ok.show { display: block; }
.form-err { background: rgba(214,69,69,.1); color: #b02a2a; border: 1px solid rgba(214,69,69,.3); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; font-size: .92rem; }

/* ---------- Legal / document pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal .legal-meta { color: var(--ink-faint); font-size: .9rem; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 1.5rem; margin: 40px 0 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.12rem; margin: 24px 0 10px; color: var(--navy); }
.legal p { margin-bottom: 14px; color: var(--ink-soft); }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; color: var(--ink-soft); }
.legal a { color: var(--brand); font-weight: 600; }
.legal strong { color: var(--ink); }
.legal .toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 40px;
}
.legal .toc h4 { font-family: "Poppins"; font-size: 1rem; margin-bottom: 12px; }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal .toc li { margin-bottom: 7px; }
.legal .callout {
  background: var(--sky-soft); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 16px 20px; margin: 24px 0; font-size: .95rem;
}

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: rgba(255,255,255,.72); padding: 70px 0 28px; margin-top: 40px; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.1) 1px, transparent 0) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%);
}
.site-footer::after {
  content: ""; position: absolute; width: 460px; height: 460px; right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(70,179,192,.16), transparent 70%); border-radius: 50%; pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand .logo-text b { color: #fff; }
.site-footer .brand .logo-text b sup, .site-footer .brand .logo-text span { color: var(--teal-2); }
.footer-about p { color: rgba(255,255,255,.66); font-size: .94rem; margin: 18px 0 22px; max-width: 320px; }
.footer-col h5 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); padding: 6px 0; font-size: .94rem; }
.footer-col a:hover { color: var(--teal-2); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .25s, transform .25s; }
.socials a:hover { background: var(--teal); transform: translateY(-3px); color:#fff; }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 24px; font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 360px; }
  .split, .iapp-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .opts { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .iapp { padding: 40px 28px; }
  .timeline::before { left: 18px; }
  .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 52px; padding-right: 0; }
  .tl-item .dot { left: 11px !important; right: auto !important; }
}
@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .nav-links, .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .nav-menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 16px; gap: 4px;
    box-shadow: var(--shadow); border-top: 1px solid var(--line);
  }
  .nav-menu-open .nav-links a { padding: 14px; font-size: 1.05rem; }
  .grid-2, .grid-3, .grid-4, .opts, .stats, .spec { grid-template-columns: 1fr; }
  .cta-band, .iapp { padding: 34px 22px; }
  .form { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; padding: 24px 4px; }
  .chip { font-size: .82rem; padding: 11px 15px; }
  .chip-top { right: 0; }
  .chip-bottom { left: 0; }
  .code-line .tok { font-size: .86rem; }
  .legal .toc ol { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-net { display: none; }
}
