/* ============================================================
   Torlika 3D — landing styles
   Brand palette derived from logo:
   slate #3c5475 · cool grad (mint→cyan) · warm grad (pink→gold)
   ============================================================ */

:root {
  /* brand (theme-independent) */
  --brand-mint:    #8DE98C;
  --brand-cyan:    #34D6C0;
  --brand-pink:    #FF4DA0;
  --brand-magenta: #E33B96;
  --brand-gold:    #F6B73C;

  --ink-900: #12192a;
  --ink-800: #1b2438;
  --ink-700: #2a3852;
  --ink-600: #3c5475;

  --grad-cool: linear-gradient(135deg, #8DE98C 0%, #34D6C0 100%);
  --grad-warm: linear-gradient(135deg, #FF4DA0 0%, #F6B73C 100%);
  --grad-duo:  linear-gradient(118deg, #34D6C0 0%, #8DE98C 20%, #FF4DA0 66%, #F6B73C 100%);

  /* accent gradient — overridden by the "acento" tweak */
  --accent-grad: var(--grad-warm);
  --accent-solid: var(--brand-pink);

  /* type */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* spacing rhythm */
  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 38px;
  --r-btn: 100px;

  /* easing */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- THEME: dark (default) ---------- */
:root, [data-theme="dark"] {
  --bg:        #0f1626;
  --bg-2:      #131c30;
  --surface:   rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.075);
  --surface-solid: #18233a;
  --border:    rgba(255,255,255,.10);
  --border-2:  rgba(255,255,255,.16);
  --text:      #eef2f8;
  --text-dim:  rgba(238,242,248,.72);
  --text-faint:rgba(238,242,248,.46);
  --shadow:    0 24px 60px -28px rgba(0,0,0,.7);
  --shadow-sm: 0 8px 24px -14px rgba(0,0,0,.6);
  --glow:      .55;
  --nav-bg:    rgba(15,22,38,.72);
  --grid-line: rgba(255,255,255,.04);
}

/* ---------- THEME: light ---------- */
[data-theme="light"] {
  --bg:        #f5f6f9;
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #f3f5f9;
  --surface-solid: #ffffff;
  --border:    rgba(22,32,54,.10);
  --border-2:  rgba(22,32,54,.18);
  --text:      #16203a;
  --text-dim:  rgba(22,32,54,.66);
  --text-faint:rgba(22,32,54,.44);
  --shadow:    0 28px 60px -34px rgba(31,46,79,.4);
  --shadow-sm: 0 10px 28px -18px rgba(31,46,79,.35);
  --glow:      .28;
  --nav-bg:    rgba(245,246,249,.78);
  --grid-line: rgba(22,32,54,.05);
}

/* ---------- THEME: vibrant ---------- */
[data-theme="vibrant"] {
  --bg:        #fbf9ff;
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #f6f2fb;
  --surface-solid: #ffffff;
  --border:    rgba(60,40,90,.12);
  --border-2:  rgba(60,40,90,.2);
  --text:      #1d1430;
  --text-dim:  rgba(29,20,48,.66);
  --text-faint:rgba(29,20,48,.46);
  --shadow:    0 30px 70px -34px rgba(227,59,150,.34);
  --shadow-sm: 0 12px 30px -18px rgba(52,214,192,.3);
  --glow:      .9;
  --nav-bg:    rgba(251,249,255,.8);
  --grid-line: rgba(60,40,90,.05);
}

/* ============================================================
   base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

section { position: relative; }

/* gradient helpers */
.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.grad-cool-text { background: var(--grad-cool); -webkit-background-clip:text; background-clip:text; color: transparent; }
.grad-duo-text  { background: var(--grad-duo);  -webkit-background-clip:text; background-clip:text; color: transparent; }

/* eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
}
.kicker .dot {
  width: 14px; height: 14px; border-radius: 5px;
  background: var(--accent-grad);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent-solid) 70%, transparent);
}

/* section heading block */
.sec-head { max-width: 640px; }
.sec-head .kicker { margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 52px); }
.sec-head p { margin-top: 18px; font-size: clamp(16px, 1.7vw, 19px); color: var(--text-dim); }

/* ============================================================
   buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: var(--r-btn); border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--accent-solid) 80%, transparent);
}
.btn-primary:hover { box-shadow: 0 20px 44px -14px color-mix(in srgb, var(--accent-solid) 90%, transparent); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--accent-solid); }

.btn-wa {
  background: #25D366; color: #06320f;
  box-shadow: 0 14px 34px -14px rgba(37,211,102,.6);
}
.btn-wa:hover { box-shadow: 0 20px 44px -14px rgba(37,211,102,.7); }

.btn-lg { padding: 18px 32px; font-size: 17px; }

/* ============================================================
   reveal — base state is VISIBLE (entrance handled by JS-safe
   means only; never hide content behind a transition).
   ============================================================ */
.reveal, .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   image-slot styling
   ============================================================ */
image-slot {
  --is-fg: var(--text-dim);
  --is-frame: var(--surface-2);
  --is-ring: var(--border-2);
  --is-accent: var(--accent-solid);
  display: block; width: 100%; height: 100%;
  font-family: var(--font-mono) !important;
}
