/* ─── Curva Tech Nusantara — Design Tokens (brief §3) ─────────────── */
:root {
  --blue: #0A6BFF;          /* Electric Blue */
  --blue-2: #3BA0FF;        /* lighter electric */
  --cyan: #22D3EE;          /* accent cyan for gradients */
  --navy: #07152E;          /* Deep Navy */
  --dark: #0D1321;          /* Dark */
  --white: #FFFFFF;
  --gray: #F5F7FA;          /* Light Gray */
  --ink: #0b1a2e;
  --slate: #5b6b82;
  --line: #e6ebf2;
  --blue-rgb: 10, 107, 255;
  --navy-rgb: 7, 21, 46;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(15, 31, 61, .06);
  --shadow: 0 20px 50px rgba(var(--navy-rgb), .12);
  --shadow-blue: 0 18px 50px rgba(var(--blue-rgb), .35);
  /* Font family names (loaded via Google Fonts in <head>) */
  --f-grotesk: "Space Grotesk"; --f-inter: "Inter"; --f-manrope: "Manrope";
  --f-poppins: "Poppins"; --f-fraunces: "Fraunces"; --f-jakarta: "Plus Jakarta Sans";
  --f-sora: "Sora"; --f-outfit: "Outfit"; --f-worksans: "Work Sans";
  --f-playfair: "Playfair Display"; --f-source: "Source Sans 3"; --f-lora: "Lora";
  --f-dmserif: "DM Serif Display"; --f-dmsans: "DM Sans";
  --font-display: var(--f-grotesk), "Space Grotesk", Georgia, serif;
  --font-body: var(--f-inter), Inter, system-ui, -apple-system, sans-serif;
}

/* ─── Landing appearance: accent themes (scoped to .site-scope so the
   admin panel keeps its own palette). Keep in sync with inc/appearance.php ── */
.site-scope[data-accent="electric"] { --blue: #0A6BFF; --blue-2: #3BA0FF; --cyan: #22D3EE; --blue-rgb: 10,107,255; }
.site-scope[data-accent="azure"]    { --blue: #1E5AF5; --blue-2: #4C82FF; --cyan: #38BDF8; --blue-rgb: 30,90,245; }
.site-scope[data-accent="indigo"]   { --blue: #4F46E5; --blue-2: #6366F1; --cyan: #818CF8; --blue-rgb: 79,70,229; }
.site-scope[data-accent="sky"]      { --blue: #0284C7; --blue-2: #0EA5E9; --cyan: #38BDF8; --blue-rgb: 2,132,199; }
.site-scope[data-accent="cyan"]     { --blue: #0891B2; --blue-2: #22D3EE; --cyan: #67E8F9; --blue-rgb: 8,145,178; }
.site-scope[data-accent="teal"]     { --blue: #0D9488; --blue-2: #14B8A6; --cyan: #2DD4BF; --blue-rgb: 13,148,136; }
.site-scope[data-accent="emerald"]  { --blue: #059669; --blue-2: #10B981; --cyan: #34D399; --blue-rgb: 5,150,105; }
.site-scope[data-accent="lime"]     { --blue: #65A30D; --blue-2: #84CC16; --cyan: #A3E635; --blue-rgb: 101,163,13; }
.site-scope[data-accent="amber"]    { --blue: #D97706; --blue-2: #F59E0B; --cyan: #FBBF24; --blue-rgb: 217,119,6; }
.site-scope[data-accent="sunset"]   { --blue: #EA580C; --blue-2: #F97316; --cyan: #F59E0B; --blue-rgb: 234,88,12; }
.site-scope[data-accent="rose"]     { --blue: #E11D48; --blue-2: #F43F5E; --cyan: #FB7185; --blue-rgb: 225,29,72; }
.site-scope[data-accent="ruby"]     { --blue: #BE123C; --blue-2: #E11D48; --cyan: #FB7185; --blue-rgb: 190,18,60; }
.site-scope[data-accent="pink"]     { --blue: #DB2777; --blue-2: #EC4899; --cyan: #F472B6; --blue-rgb: 219,39,119; }
.site-scope[data-accent="fuchsia"]  { --blue: #C026D3; --blue-2: #D946EF; --cyan: #E879F9; --blue-rgb: 192,38,211; }
.site-scope[data-accent="violet"]   { --blue: #6D28D9; --blue-2: #8B5CF6; --cyan: #A78BFA; --blue-rgb: 109,40,217; }
.site-scope[data-accent="slate"]    { --blue: #475569; --blue-2: #64748B; --cyan: #94A3B8; --blue-rgb: 71,85,105; }

/* Landing font pairings */
.site-scope[data-font="bersih"]     { --font-display: var(--f-grotesk), "Space Grotesk", Georgia, serif; --font-body: var(--f-inter), Inter, system-ui, sans-serif; }
.site-scope[data-font="modern"]     { --font-display: var(--f-manrope), "Manrope", Georgia, serif; --font-body: var(--f-inter), Inter, system-ui, sans-serif; }
.site-scope[data-font="futuristik"] { --font-display: var(--f-sora), "Sora", Georgia, serif; --font-body: var(--f-inter), Inter, system-ui, sans-serif; }
.site-scope[data-font="korporat"]   { --font-display: var(--f-outfit), "Outfit", Georgia, serif; --font-body: var(--f-worksans), "Work Sans", system-ui, sans-serif; }
.site-scope[data-font="tegas"]      { --font-display: var(--f-poppins), "Poppins", Georgia, serif; --font-body: var(--f-poppins), "Poppins", system-ui, sans-serif; }
.site-scope[data-font="elegan"]     { --font-display: var(--f-fraunces), "Fraunces", Georgia, serif; --font-body: var(--f-jakarta), "Plus Jakarta Sans", system-ui, sans-serif; }
.site-scope[data-font="editorial"]  { --font-display: var(--f-playfair), "Playfair Display", Georgia, serif; --font-body: var(--f-source), "Source Sans 3", system-ui, sans-serif; }
.site-scope[data-font="klasik"]     { --font-display: var(--f-lora), "Lora", Georgia, serif; --font-body: var(--f-worksans), "Work Sans", system-ui, sans-serif; }
.site-scope[data-font="lembut"]     { --font-display: var(--f-dmserif), "DM Serif Display", Georgia, serif; --font-body: var(--f-dmsans), "DM Sans", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.08; margin: 0; }

.container { width: min(1200px, calc(100% - 44px)); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.section-tint { background: var(--gray); }
.section-dark { background: var(--navy); color: #dbe6f5; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

/* ─── Typography helpers ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.section-dark .eyebrow { color: var(--blue-2); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.h-hero { font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.02; font-weight: 700; }
.h-sec { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 700; margin-bottom: 18px; }
.lead { font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.75; color: var(--slate); }
.section-dark .lead { color: #9fb3ce; }
.grad-text { background: linear-gradient(100deg, var(--blue) 0%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap;
}
.btn-primary { background: linear-gradient(120deg, var(--blue-2), var(--blue)); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 60px rgba(var(--blue-rgb), .5); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--blue); border-color: rgba(var(--blue-rgb), .4); }
.btn-outline:hover { background: rgba(var(--blue-rgb), .06); }

/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(var(--blue-rgb), .35); }
.card-glass {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 30px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.card-glass:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); border-color: rgba(var(--blue-rgb), .5); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(var(--blue-rgb), .16), rgba(var(--blue-rgb), .05)); color: var(--blue);
  margin-bottom: 20px;
}
.section-dark .icon-badge { color: var(--blue-2); background: linear-gradient(135deg, rgba(var(--blue-rgb),.28), rgba(var(--blue-rgb),.1)); }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p, .card-glass p { color: var(--slate); line-height: 1.65; font-size: .95rem; margin: 0; }
.section-dark .card-glass p { color: #9fb3ce; }
.card-glass h3 { font-size: 1.25rem; margin-bottom: 10px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; background: rgba(var(--blue-rgb), .1); color: var(--blue);
}
.chip-soon { background: rgba(238,127,8,.14); color: #d97706; }
.chip-live { background: rgba(56,155,63,.15); color: #16a34a; }

/* ─── Backgrounds: digital grid + glow ───────────────────────────── */
.bg-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 100%);
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
}

/* Animated hero orbs */
@keyframes floaty { 0%,100% { transform: translate(0,0); } 50% { transform: translate(0,-26px); } }
@keyframes pulseGlow { 0%,100% { opacity: .4; } 50% { opacity: .75; } }
@keyframes gridpan { from { background-position: 0 0; } to { background-position: 54px 54px; } }
@keyframes twinkle { 0%,100% { opacity:.2; transform: scale(.8);} 50% { opacity:1; transform: scale(1.15);} }

/* ─── Header / nav ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .25s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 60px; width: auto; object-fit: contain; }
@media (max-width: 520px) { .brand-logo { height: 50px; } }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 9px 14px; border-radius: 9px; font-size: .92rem; font-weight: 500; color: #33445c; transition: color .15s, background .15s; }
.nav-link:hover, .nav-link.active { color: var(--blue); background: rgba(var(--blue-rgb), .07); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; background: none; border: none; cursor: pointer; color: var(--navy); }
.mobile-drawer { display: none; }

@media (max-width: 940px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: inline-flex; }
  .mobile-drawer { display: block; position: fixed; inset: 84px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px 22px; box-shadow: var(--shadow); z-index: 99; }
  .mobile-drawer a { display: block; padding: 13px 8px; font-weight: 600; color: #22344c; border-bottom: 1px solid var(--gray); }
  .mobile-drawer .btn { margin-top: 16px; width: 100%; justify-content: center; }
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: #9fb3ce; padding: 72px 0 34px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; padding-bottom: 10px; position: relative; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue, #0A6BFF), var(--cyan, #22D3EE)); }
.site-footer a { display: block; padding: 6px 0; font-size: .92rem; color: #93a6c2; transition: color .15s; }
.site-footer a:hover { color: var(--blue-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ─── Grids ──────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ─── Stats band ─────────────────────────────────────────────────── */
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; }
.stat-num.grad-text { display: inline-block; }

/* ─── Forms ──────────────────────────────────────────────────────── */
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 7px; color: #2a3b52; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line); background: #fff;
  font-size: .95rem; outline: none; transition: border-color .15s, box-shadow .15s; box-sizing: border-box;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(var(--blue-rgb), .12); }

/* ─── Contact layout ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ─── Icons (lucide) ─────────────────────────────────────────────── */
.icon-badge svg, .btn svg, .chip svg, .eyebrow svg { width: 1em; height: 1em; }
[data-lucide] { width: 24px; height: 24px; stroke-width: 1.8; }

/* ─── Misc ───────────────────────────────────────────────────────── */
.divider-dot { color: rgba(255,255,255,.35); }
.hidden-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
