/* aandevs design system: anthracite and silver, lime for selection and progress, soft depth (glow, glass, grain). */
:root {
  --bg: #08080A;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #F5F5F4;
  --text-2: #A6A6AD;
  --text-3: #8E8E96;
  --lime: #A3E635;
  --lime-ink: #C4F06A;
  --on-lime: #0A0A0B;
  --glow: rgba(163, 230, 53, 0.16);
  --silver: linear-gradient(180deg, #FFFFFF 0%, #D9DADD 45%, #8F9197 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --gutter: 20px;
  --max: 1200px;
  --header: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: -apple-system, "SF Pro Display", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --body: -apple-system, "SF Pro Text", ui-sans-serif, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (min-width: 760px) { :root { --gutter: 40px; } }

/* One page, two languages. Romanian is the default. */
:root[data-lang="en"] [data-l="ro"],
:root:not([data-lang="en"]) [data-l="en"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Film grain over everything, very faint. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05;
  background-image: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; margin: 0; letter-spacing: -0.028em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: var(--radius-sm); }
.skip:focus { left: 10px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.silver { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-2); }

/* Header: glass bar */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header);
  background: rgba(8, 8, 10, 0.62);
  backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 650 17px/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-strong); }
.brand .crumb { color: var(--text-3); font-weight: 500; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; color: var(--text-2); font-size: 14px; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 600px) { .nav .hide-sm { display: none; } .nav a { padding: 8px 8px; } }

/* RO / EN: segmented control, lime marks the selection */
.lang { display: inline-flex; padding: 3px; margin-left: 6px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--text-2); cursor: pointer;
  font: 600 12.5px/1 var(--body); letter-spacing: .02em; min-width: 38px; min-height: 30px; padding: 0 10px; border-radius: 999px;
  transition: background .25s var(--ease), color .25s;
}
.lang button[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #FFFFFF; }
.btn-glass { background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); color: var(--text); }
.btn-glass:hover { background: rgba(255,255,255,.1); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, a:hover .btn .arrow { transform: translateX(3px); }

/* "Coming soon" App Store badge, not linked yet */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 16px;
  border-radius: 16px; background: #000; border: 1px solid rgba(255,255,255,.28); color: var(--text);
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 11.5px; line-height: 1.2; color: var(--text-2); letter-spacing: .01em; }
.store-badge strong { display: block; font: 600 19px/1.15 var(--display); letter-spacing: -0.01em; }

/* Glass surfaces */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* iPhone frame used on every page. --pw sets the width; the screen keeps the screenshots' 1320 × 2868 ratio. */
.iphone {
  --pw: 300px;
  --b: calc(var(--pw) * 0.036);
  --sw: calc(var(--pw) - 2 * var(--b));
  --sh: calc(var(--sw) * 2.1727);
  --sr: calc(var(--sw) * 0.15);
  --fr: calc(var(--sr) + var(--b));
  position: relative; width: var(--pw); height: calc(var(--sh) + 2 * var(--b)); margin: 0; flex: none;
  border-radius: var(--fr);
  background: #050506;
  box-shadow:
    inset 0 0 0 1px #6E7076,
    inset 0 0 0 calc(var(--b) * 0.32) #2A2B2F,
    inset 0 0 0 calc(var(--b) * 0.5) #0B0B0C,
    0 50px 100px -30px rgba(0,0,0,.85);
}
.iphone::before { /* titanium rim highlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1.5px;
  background: linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,0) 22%, rgba(255,255,255,0) 78%, rgba(255,255,255,.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.iphone .screen { position: absolute; left: var(--b); top: var(--b); width: var(--sw); height: var(--sh); border-radius: var(--sr); overflow: hidden; background: #0A0A0B; }
.iphone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.iphone .island { position: absolute; left: 50%; top: calc(var(--b) + var(--sw) * 0.026); width: calc(var(--sw) * 0.3); height: calc(var(--sw) * 0.088); transform: translateX(-50%); border-radius: 999px; background: #000; }
.iphone .glare { position: absolute; left: var(--b); top: var(--b); width: var(--sw); height: var(--sh); border-radius: var(--sr); pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 30%); }
.iphone .side { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #45474C, #8A8C92); }
.iphone .side.power { right: -2px; top: 26%; height: 11%; }
.iphone .side.vol1 { left: -2px; top: 20%; height: 7%; }
.iphone .side.vol2 { left: -2px; top: 29%; height: 7%; }

/* Ambient lime glow behind showcase objects */
.glow { position: absolute; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); }

/* Footer */
.site-footer { position: relative; margin-top: 120px; border-top: 1px solid var(--line); padding: 56px 0 48px; color: var(--text-2); font-size: 14.5px; }
.site-footer .grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.site-footer .about { grid-column: 1 / -1; }
@media (min-width: 760px) { .site-footer .grid { grid-template-columns: 2fr 1fr 1fr; } .site-footer .about { grid-column: auto; } }
.site-footer h2 { font: 600 13px/1 var(--body); letter-spacing: 0; color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .about p { max-width: 34ch; margin-top: 12px; }
.site-footer .legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--text-3); font-size: 13px; }

/* Reveal on scroll (site.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Home ---------- */
.home-hero { position: relative; overflow: clip; padding: clamp(80px, 14vw, 168px) 0 clamp(48px, 8vw, 96px); text-align: center; }
.home-hero h1 { font-size: clamp(68px, 16vw, 196px); letter-spacing: -0.06em; line-height: .9; }
.home-hero p { margin: 28px auto 0; max-width: 28ch; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.35; color: var(--text-2); letter-spacing: -0.01em; }
.home-hero .glow { width: 90vw; max-width: 1000px; height: 460px; left: 50%; top: 45%; transform: translate(-50%, -50%); opacity: .55; }

.showcase {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr; align-items: center; gap: 8px;
  border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 64px);
  background: radial-gradient(70% 70% at 78% 92%, rgba(163,230,53,.11), transparent 62%), linear-gradient(180deg, #141417, #0B0B0D);
  border: 1px solid var(--line); text-decoration: none; transition: border-color .4s;
}
.showcase:hover { border-color: var(--line-strong); }
@media (min-width: 900px) { .showcase { grid-template-columns: 1fr 1.05fr; min-height: 620px; } }
.showcase .icon { width: 84px; height: 84px; border-radius: 20px; border: 1px solid var(--line-strong); box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); }
.showcase h2 { margin-top: 28px; font-size: clamp(52px, 7vw, 88px); letter-spacing: -0.05em; }
.showcase p { margin-top: 16px; font-size: clamp(18px, 1.8vw, 21px); color: var(--text-2); max-width: 30ch; line-height: 1.45; }
.showcase .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 32px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(163,230,53,.15); }
.duo { position: relative; height: 580px; perspective: 1400px; }
.duo .iphone { position: absolute; top: 10px; transition: transform .9s var(--ease); }
.duo .back { --pw: 236px; left: 4%; transform: rotateY(20deg) rotateZ(-7deg) translateZ(-80px); filter: brightness(.82); }
.duo .front { --pw: 258px; right: 4%; top: 36px; transform: rotateY(-14deg) rotateZ(3deg); }
.showcase:hover .duo .front { transform: rotateY(-9deg) rotateZ(2deg) translateY(-8px); }
.showcase:hover .duo .back { transform: rotateY(16deg) rotateZ(-6deg) translateZ(-80px) translateY(4px); }
@media (max-width: 899px) {
  .duo { height: 400px; margin: 16px -8px -140px; }
  .duo .back { --pw: 172px; left: 2%; }
  .duo .front { --pw: 190px; right: 2%; top: 26px; }
}
.next-app {
  margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding: 28px clamp(28px, 5vw, 64px); border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); color: var(--text-2);
}
.next-app h2 { font-size: clamp(22px, 2.6vw, 28px); color: var(--text); letter-spacing: -0.02em; }

/* ---------- Text pages: legal and support ---------- */
.doc-hero { position: relative; overflow: clip; padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 5vw, 64px); }
.doc-hero .glow { width: 760px; height: 420px; left: -200px; top: -160px; opacity: .6; }
.doc-hero h1 { position: relative; font-size: clamp(46px, 8vw, 96px); letter-spacing: -0.05em; }
.doc-hero p { position: relative; max-width: 60ch; margin-top: 18px; color: var(--text-2); font-size: clamp(17px, 2vw, 21px); }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 980px) { .doc-layout { grid-template-columns: 220px minmax(0, 660px); justify-content: space-between; } }
.toc { display: none; }
@media (min-width: 980px) {
  .toc { display: block; position: sticky; top: calc(var(--header) + 32px); align-self: start; }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-3); text-decoration: none; font-size: 14px; line-height: 1.35; }
  .toc a:hover { color: var(--text); }
  .toc a.on { color: var(--text); border-left-color: var(--lime); }
}
.doc { font-size: 17px; min-width: 0; }
.doc h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.022em; margin: 64px 0 16px; scroll-margin-top: calc(var(--header) + 24px); }
.doc > article > h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: #CFCFD3; }
.doc p + p { margin-top: 14px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 22px; margin: 10px 0 0; }
.doc li + li { margin-top: 10px; }
.doc ol.terms { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.doc ol.terms li { counter-increment: t; position: relative; padding: 26px 0 26px 64px; border-top: 1px solid var(--line); margin: 0; }
.doc ol.terms li:last-child { border-bottom: 1px solid var(--line); }
.doc ol.terms li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: 27px; font: 600 15px/1.6 var(--display); color: var(--text-3); font-variant-numeric: tabular-nums; }
.doc ol.terms li strong { display: block; font: 650 20px/1.3 var(--display); letter-spacing: -0.015em; margin-bottom: 6px; }
@media (max-width: 600px) { .doc ol.terms li { padding-left: 44px; } }
.data-table { margin-top: 16px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.data-table .row { display: grid; gap: 8px 20px; grid-template-columns: minmax(0, 1fr); padding: 18px 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.data-table .row:first-child { border-top: 0; }
.data-table .row b { color: var(--text); font-weight: 600; }
.data-table .row span { color: var(--text-2); }
.data-table .head { background: rgba(255,255,255,.04); font-size: 13px; }
.data-table .head > * { color: var(--text-3) !important; font-weight: 500; }
@media (min-width: 760px) { .data-table .row { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (max-width: 759px) { .data-table .head { display: none; } .data-table .row span::before { content: attr(data-k); display: block; font-size: 12px; color: var(--text-3); } }
mark.ph { background: rgba(247, 215, 116, .12); color: #F7D774; border: 1px solid rgba(247,215,116,.28); border-radius: 6px; padding: 0 5px; font: 500 .88em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.path { font-weight: 600; color: var(--text); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.pill:hover { color: var(--text); }

/* Support */
.contact {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(70% 110% at 100% 0%, rgba(163,230,53,.10), transparent 60%), linear-gradient(180deg, #151518, #0C0C0E);
  border: 1px solid var(--line);
}
.contact .mail { display: inline-block; margin-top: 10px; font: 700 clamp(26px, 5.6vw, 52px)/1.1 var(--display); letter-spacing: -0.035em; text-decoration: none; overflow-wrap: anywhere; }
.contact .mail:hover { color: var(--lime-ink); }
.contact p { color: var(--text-2); }
.contact .fine { margin-top: 20px; font-size: 15px; color: var(--text-3); max-width: 52ch; }
.how { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
@media (min-width: 760px) { .how { grid-template-columns: 1fr 1fr; } }
.how .card { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.how h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.022em; margin: 0; }
.how ol { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: s; }
.how ol li { counter-increment: s; position: relative; padding-left: 42px; color: #CFCFD3; min-height: 28px; }
.how ol li + li { margin-top: 14px; }
.how ol li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--body); color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.how .note { margin-top: 20px; font-size: 15px; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- aandevs pages: electric blue glow and grey controls; lime stays with .guido ---------- */
body.studio { --glow: rgba(59, 130, 246, 0.20); }
body.studio :focus-visible { outline-color: #60A5FA; }
body.studio .lang button[aria-pressed="true"] { background: #3A3A40; color: #F5F5F4; }
body.studio .home-hero .glow { background: radial-gradient(closest-side, rgba(59,130,246,.42), rgba(79,70,229,.16) 50%, transparent); opacity: 1; height: 440px; top: 56%; }
body.studio .home-hero h1 { background-image: linear-gradient(180deg, #FFFFFF 0%, #DCE6F7 55%, #9FB0CC 100%); }
