/* ============================================================
   capify.gr v2 — Base: reset, fonts, typography, themes
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; overflow-x: clip; }

/* Font: self-hosted Geom (variable, 300-900, Greek ✓) */
@font-face { font-family: "Geom"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/assets/fonts/geom-var.woff2") format("woff2"); }
@font-face { font-family: "Geom"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("/assets/fonts/geom-italic-var.woff2") format("woff2"); }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--t-hi);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Aurora backdrop — fixed, behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(52vw 44vh at 12% -6%, rgba(99, 102, 241, .32), transparent 62%),
    radial-gradient(46vw 40vh at 88% 8%, rgba(168, 85, 247, .2), transparent 60%),
    radial-gradient(50vw 46vh at 50% 110%, rgba(34, 211, 238, .13), transparent 60%),
    var(--bg);
}
/* Film grain */
body::after {
  content: "";
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Light theme sections */
[data-theme="light"] {
  color: var(--lt-text);
  background: var(--lt-bg);
}
[data-theme="light"] ::selection { background: var(--c-primary); color: #fff; }
::selection { background: rgba(99, 102, 241, .55); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .55em;
  color: inherit;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.06rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; color: var(--t-mid); }
[data-theme="light"] p { color: var(--lt-mid); }
a { color: var(--c-primary); text-decoration: none; }
[data-theme="light"] a { color: var(--c-primary-deep); }
img, svg { max-width: 100%; vertical-align: middle; }
strong, b { color: inherit; }

.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { position: relative; padding: clamp(76px, 9vw, 132px) 0; }
.section--tight { padding: clamp(56px, 6vw, 90px) 0; }

/* Section heading block */
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-cyan); margin-bottom: 14px;
}
.sec-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--c-grad); }
.sec-sub { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--t-mid); max-width: 640px; }
.sec-head--center .sec-sub { margin-inline: auto; }
[data-theme="light"] .sec-sub { color: var(--lt-mid); }

/* Gradient text */
.grad-text { background: var(--c-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* Eyebrow chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: .82rem; font-weight: 600; color: var(--t-hi);
  backdrop-filter: blur(10px);
}
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 10px 2px rgba(34, 211, 238, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font-family: var(--f-display); font-size: .98rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; overflow: hidden;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out), background .35s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  color: var(--t-on-grad);
  background: var(--c-grad);
  box-shadow: 0 10px 34px -10px rgba(99, 102, 241, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 48px -12px rgba(122, 90, 248, .8); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost {
  color: var(--t-hi); background: var(--surface); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { transform: translateY(-3px); background: var(--surface-2); border-color: rgba(255, 255, 255, .3); }
.btn--light { color: #fff; background: #12142b; }
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -14px rgba(18, 20, 43, .5); }
.btn--sm { padding: 11px 22px; font-size: .88rem; }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-cyan); outline-offset: 3px; border-radius: 6px;
}

/* Reveal (JS adds .is-visible) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--reveal-delay, 0s); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-36px); }
.reveal--right { transform: translateX(36px); }
.reveal--scale { transform: scale(.94); }
.reveal.is-visible { transform: none; }

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

/* Custom cursor */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
  .cursor-dot { width: 7px; height: 7px; background: #fff; mix-blend-mode: difference; }
  .cursor-ring { width: 38px; height: 38px; border: 1.5px solid rgba(255, 255, 255, .35); transition: width .25s, height .25s, border-color .25s, background .25s; }
  .cursor-ring.is-hover { width: 58px; height: 58px; border-color: rgba(99, 102, 241, .8); background: rgba(99, 102, 241, .08); }
  .cursor-ring.is-down { width: 26px; height: 26px; }
}

/* Page transition overlay */
.pt-overlay {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0;
  background: var(--c-grad); transition: opacity .3s var(--ease-out);
}
.pt-overlay.is-on { opacity: .96; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--c-primary), var(--c-violet)); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: var(--bg); }

/* Skip link */
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 10000; background: #fff; color: #000; padding: 10px 18px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }
