/*
Theme Name: eKontent Image Optimiser
Theme URI: https://ekontent.co.za
Author: eKontent
Author URI: https://ekontent.co.za
Description: A free browser-native image optimisation tool for freelancers, developers and content creators. Sustained by Google AdSense.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ekontent
Tags: custom-background, custom-logo, custom-menu, full-width-template, one-column, accessibility-ready
*/

/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  --sa-green: #007A4D;
  --sa-gold:  #FFB612;
  --sa-red:   #DE3831;
  --sa-blue:  #002395;
  --bg:        #04040C;
  --bg-2:      #07070F;
  --bg-surface:#0C0C1A;
  --glass:          rgba(255,255,255,0.04);
  --glass-hover:    rgba(255,255,255,0.07);
  --glass-border:   rgba(255,255,255,0.08);
  --glass-border-hover: rgba(255,255,255,0.16);
  --text:   #FFFFFF;
  --text-2: rgba(255,255,255,0.62);
  --text-3: rgba(255,255,255,0.35);
  --accent:      #007A4D;
  --accent-glow: rgba(0,122,77,0.28);
  --accent-2:    #00C47A;
  --gold:      #FFB612;
  --gold-glow: rgba(255,182,18,0.2);
  --red:  #DE3831;
  --blue: #002395;
  --serif: 'Crimson Pro', Georgia, serif;
  --sans:  'Montserrat', sans-serif;
  --r: 12px; --r-lg: 20px; --r-xl: 30px; --r-2xl: 44px;
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-weight: 400;
}

/* Ambient orbs */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(130px); animation: drift 22s ease-in-out infinite; }
.orb-green { width:700px;height:700px;background:radial-gradient(circle,rgba(0,122,77,0.22),transparent);top:-180px;left:-120px;animation-duration:28s; }
.orb-blue  { width:550px;height:550px;background:radial-gradient(circle,rgba(0,35,149,0.18),transparent);top:35%;right:-160px;animation-duration:34s;animation-delay:-10s; }
.orb-gold  { width:500px;height:500px;background:radial-gradient(circle,rgba(255,182,18,0.12),transparent);bottom:-180px;left:28%;animation-duration:40s;animation-delay:-18s; }
.orb-red   { width:300px;height:300px;background:radial-gradient(circle,rgba(222,56,49,0.08),transparent);bottom:20%;right:10%;animation-duration:32s;animation-delay:-6s; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(44px,-32px) scale(1.06); }
  66%     { transform: translate(-24px,42px) scale(0.96); }
}

/* Grid overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none; z-index: 0;
}
/* Grain */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: .7;
}

nav, section, footer, .site-header, .site-footer,
div, h1, h2, h3, p, a, button, span, ul, li { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────
   SA STRIPE
───────────────────────────────────────────── */
.sa-stripe {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 999;
  background: linear-gradient(90deg,
    var(--sa-green) 0%,   var(--sa-green) 20%,
    var(--sa-gold)  20%,  var(--sa-gold)  40%,
    var(--sa-red)   40%,  var(--sa-red)   60%,
    var(--sa-blue)  60%,  var(--sa-blue)  80%,
    #fff 80%, #fff 100%);
  opacity: 0.6;
}

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 1000; width: calc(100% - 80px); max-width: 1100px;
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 0 24px;
  border-radius: var(--r-xl);
  background: rgba(8,8,18,0.72);
  backdrop-filter: blur(44px) saturate(180%);
  -webkit-backdrop-filter: blur(44px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.055);
  transition: all .3s ease;
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-logo-text { font-family: var(--sans); font-size: .95rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-family: var(--sans); font-size: .74rem; font-weight: 500; color: rgba(255,255,255,0.55); text-decoration: none; transition: color .2s; letter-spacing: .04em; text-transform: uppercase; }
.nav-links a:hover { color: #fff; }
.nav-badge { background: rgba(0,122,77,0.12); border: 1px solid rgba(0,122,77,0.28); color: var(--accent-2); font-family: var(--sans); font-size: .68rem; font-weight: 700; padding: 7px 16px; border-radius: 40px; letter-spacing: .06em; text-transform: uppercase; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: var(--accent-2); flex-shrink: 0; }
h1, h2 { font-family: var(--sans); letter-spacing: -.025em; line-height: 1.1; font-weight: 800; color: #fff; }
h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; color: #fff; }
p { font-family: var(--serif); font-weight: 400; line-height: 1.75; color: rgba(255,255,255,0.62); }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 40px 80px; text-align: center; }
.hero-inner { max-width: 860px; width: 100%; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,122,77,0.1); border: 1px solid rgba(0,122,77,0.28); border-radius: 40px; padding: 6px 18px 6px 10px; font-family: var(--sans); font-size: .7rem; font-weight: 600; color: #00C47A; margin-bottom: 24px; letter-spacing: .04em; text-transform: uppercase; }
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sa-green); box-shadow: 0 0 10px var(--sa-green); animation: gp 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes gp { 0%,100% { box-shadow: 0 0 8px var(--sa-green); } 50% { box-shadow: 0 0 18px var(--sa-green), 0 0 30px rgba(0,122,77,0.4); } }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); color: #fff; margin-bottom: 18px; }
h1 em { font-style: italic; font-weight: 800; background: linear-gradient(135deg, var(--sa-green), var(--sa-gold), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-family: var(--serif); font-size: 1.12rem; color: rgba(255,255,255,0.6); max-width: 520px; margin: 0 auto 36px; line-height: 1.75; font-weight: 300; }

/* ─────────────────────────────────────────────
   DROP ZONE
───────────────────────────────────────────── */
.dropzone-outer { width: 100%; margin: 0 auto; }
.dropzone { position: relative; border: 2px dashed rgba(255,255,255,0.1); border-radius: var(--r-xl); background: rgba(255,255,255,0.025); backdrop-filter: blur(20px); cursor: pointer; transition: all .3s; overflow: hidden; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.dropzone::before { content: ''; position: absolute; inset: 0; border-radius: var(--r-xl); background: radial-gradient(ellipse at 50% 0%, rgba(0,122,77,0.06), transparent 60%); pointer-events: none; }
.dropzone:hover, .dropzone.drag-over { border-color: rgba(0,122,77,0.55); background: rgba(0,122,77,0.04); box-shadow: 0 0 0 1px rgba(0,122,77,0.15), 0 20px 60px rgba(0,122,77,0.08); }
.dropzone input[type=file] { display: none; }
.drop-content { text-align: center; padding: 44px 32px; pointer-events: none; }
.drop-icon-ring { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; transition: transform .3s, box-shadow .3s; }
.drop-icon-ring svg { stroke: #fff; opacity: .7; transition: opacity .3s; }
.dropzone:hover .drop-icon-ring { transform: scale(1.08) translateY(-3px); box-shadow: 0 12px 32px rgba(0,122,77,0.2); }
.dropzone:hover .drop-icon-ring svg { opacity: 1; stroke: var(--accent-2); }
.drop-title { font-family: var(--sans); font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -.02em; }
.drop-sub { font-family: var(--serif); font-size: 1rem; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.drop-formats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 20px; }
.fmt-chip { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; border-radius: 20px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); color: rgba(255,255,255,0.5); }
.browse-btn { display: inline-block; padding: 11px 28px; background: var(--sa-green); color: #fff; border-radius: 40px; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: all .22s; pointer-events: all; box-shadow: 0 0 24px var(--accent-glow); }
.browse-btn:hover { background: #00C47A; transform: translateY(-2px); box-shadow: 0 6px 32px rgba(0,196,122,0.45); }

/* ─────────────────────────────────────────────
   INLINE SETTINGS
───────────────────────────────────────────── */
.inline-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; text-align: left; }
.scard { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-lg); padding: 18px; backdrop-filter: blur(20px); transition: border-color .2s; }
.scard:focus-within { border-color: rgba(255,255,255,0.16); }
.scard-label { font-family: var(--sans); font-size: .63rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.35); display: block; margin-bottom: 10px; }
select { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); color: #fff; border-radius: var(--r); padding: 9px 32px 9px 12px; font-family: var(--sans); font-size: .8rem; font-weight: 600; outline: none; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; transition: border-color .2s; }
select:focus { border-color: rgba(0,122,77,0.5); }
select option { background: #0C0C1A; color: #fff; }
.range-wrap { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
input[type=range] { flex: 1; height: 3px; background: rgba(255,255,255,0.08); border-radius: 100px; accent-color: var(--sa-green); cursor: pointer; border: none; outline: none; }
.range-val { font-family: var(--sans); font-size: .88rem; font-weight: 800; color: var(--accent-2); min-width: 30px; text-align: right; }
.hint-text { font-family: var(--sans); font-size: .64rem; color: rgba(255,255,255,0.32); margin-top: 8px; line-height: 1.55; }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn-primary { background: var(--sa-green); color: #fff; font-family: var(--sans); font-size: .82rem; font-weight: 700; padding: 15px 32px; border-radius: 40px; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: all .25s; box-shadow: 0 0 32px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.btn-primary:hover:not(:disabled) { background: #00C47A; transform: translateY(-2px); box-shadow: 0 6px 44px rgba(0,196,122,0.55); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.process-wrap { margin-top: 16px; display: flex; justify-content: center; }

/* ─────────────────────────────────────────────
   PROGRESS
───────────────────────────────────────────── */
.progress-wrap { display: none; margin-top: 14px; }
.progress-wrap.show { display: block; }
.prog-meta { display: flex; justify-content: space-between; font-family: var(--sans); font-size: .68rem; font-weight: 600; color: rgba(255,255,255,0.3); margin-bottom: 7px; }
.prog-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 100px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--sa-green), #00C47A); border-radius: 100px; transition: width .3s ease; width: 0; }

/* ─────────────────────────────────────────────
   RESULTS
───────────────────────────────────────────── */
.results-section { display: none; margin-top: 28px; }
.results-section.show { display: block; }
.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.results-title { font-family: var(--sans); font-size: .9rem; font-weight: 800; color: #fff; }
.results-meta { font-family: var(--sans); font-size: .68rem; color: rgba(255,255,255,0.32); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 12px; }
.rcard { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-lg); overflow: hidden; backdrop-filter: blur(20px); transition: all .3s; }
.rcard:hover { border-color: rgba(255,255,255,0.16); transform: translateY(-4px); }
.rcard-thumb { width: 100%; height: 130px; object-fit: cover; display: block; background: rgba(255,255,255,0.03); }
.rcard-body { padding: 14px; }
.rcard-name { font-family: var(--sans); font-size: .78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 10px; color: #fff; }
.size-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.size-chip { font-family: var(--sans); font-size: .63rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.chip-old { background: rgba(222,56,49,0.1); color: #FF6B65; }
.chip-new { background: rgba(0,122,77,0.12); color: #00C47A; }
.chip-arr { color: rgba(255,255,255,0.28); font-size: .7rem; }
.chip-saved { margin-left: auto; font-family: var(--sans); font-size: .72rem; font-weight: 800; color: #00C47A; }
.rcard-dims { font-family: var(--sans); font-size: .63rem; color: rgba(255,255,255,0.3); margin-bottom: 10px; }
.wp-snip { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--r); padding: 7px 10px; font-family: 'Courier New', monospace; font-size: .58rem; color: rgba(0,196,122,0.65); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: border-color .2s; }
.wp-snip:hover { border-color: rgba(0,122,77,0.35); }
.dl-btn { width: 100%; padding: 9px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--r); color: rgba(255,255,255,0.7); font-family: var(--sans); font-size: .74rem; font-weight: 700; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.dl-btn svg { flex-shrink: 0; }
.dl-btn:hover { background: var(--sa-green); color: #fff; border-color: var(--sa-green); }
.dl-all-btn { width: 100%; margin-top: 12px; padding: 13px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 40px; color: rgba(255,255,255,0.65); font-family: var(--sans); font-size: .8rem; font-weight: 700; cursor: pointer; transition: all .2s; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; }
.dl-all-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16); color: #fff; }

/* ─────────────────────────────────────────────
   STATS
───────────────────────────────────────────── */
.stats-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 14px; }
.stat-block { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--r-lg); padding: 18px; text-align: center; }
.stat-n { display: block; font-family: var(--sans); font-size: 1.9rem; font-weight: 900; letter-spacing: -.04em; color: var(--accent-2); }
.stat-l { font-family: var(--sans); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* ─────────────────────────────────────────────
   AD SLOTS
───────────────────────────────────────────── */
.ek-ad-wrap { width: 100%; padding: 20px 40px; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 5; }
.ek-ad-label { font-family: var(--sans); font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,0.2); margin-bottom: 6px; }
.ek-ad-leaderboard { max-width: 728px; width: 100%; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.055); border-radius: 12px; overflow: hidden; min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ek-ad-responsive { width: 100%; max-width: 1100px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.055); border-radius: 12px; overflow: hidden; min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ek-ad-inline { width: 100%; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.055); border-radius: 12px; overflow: hidden; min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* ─────────────────────────────────────────────
   AD TRANSPARENCY NOTICE
───────────────────────────────────────────── */
.ad-notice { display: flex; align-items: center; gap: 12px; background: rgba(255,182,18,0.05); border: 1px solid rgba(255,182,18,0.15); border-radius: var(--r); padding: 14px 18px; max-width: 1100px; width: calc(100% - 80px); }
.ad-notice-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,182,18,0.1); border: 1px solid rgba(255,182,18,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ad-notice-icon svg { stroke: var(--sa-gold); }
.ad-notice-text { font-family: var(--sans); font-size: .72rem; font-weight: 500; color: rgba(255,255,255,0.52); line-height: 1.5; }
.ad-notice-text strong { color: rgba(255,255,255,0.75); font-weight: 700; }

/* ─────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────── */
section { padding: 100px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-header h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: 18px; color: #fff; }
.section-header p { font-family: var(--serif); font-size: 1.1rem; color: rgba(255,255,255,0.55); line-height: 1.75; font-weight: 300; }
.sa-flag-bar { height: 2px; border-radius: 1px; margin: 0 0 18px; background: linear-gradient(90deg, var(--sa-green) 25%, var(--sa-gold) 25%, var(--sa-gold) 50%, var(--sa-red) 50%, var(--sa-red) 75%, var(--sa-blue) 75%); opacity: 0.5; width: 80px; }

/* ─────────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,0.07); border-radius: var(--r-xl); overflow: hidden; }
.step { background: rgba(255,255,255,0.025); backdrop-filter: blur(20px); padding: 36px 24px; transition: background .3s; }
.step:hover { background: rgba(255,255,255,0.05); }
.step-num { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 1rem; font-weight: 800; margin-bottom: 18px; transition: all .3s; }
.step:nth-child(1) .step-num { color: var(--sa-green); background: rgba(0,122,77,0.08); }
.step:nth-child(2) .step-num { color: var(--sa-gold); background: rgba(255,182,18,0.08); }
.step:nth-child(3) .step-num { color: var(--sa-red); background: rgba(222,56,49,0.08); }
.step:nth-child(4) .step-num { color: #6699FF; background: rgba(0,35,149,0.12); }
.step:hover .step-num { border-color: currentColor; box-shadow: 0 0 18px currentColor; }
.step h3 { font-size: .94rem; margin-bottom: 10px; color: #fff; }
.step p { font-family: var(--serif); font-size: .9rem; color: rgba(255,255,255,0.52); line-height: 1.7; font-weight: 300; }

/* ─────────────────────────────────────────────
   FEATURES
───────────────────────────────────────────── */
.uf-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.uf-card { border-radius: var(--r-xl); padding: 34px; background: rgba(255,255,255,0.03); backdrop-filter: blur(30px) saturate(180%); border: 1px solid rgba(255,255,255,0.08); position: relative; overflow: hidden; transition: all .3s; }
.uf-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); }
.uf-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.uf-card.wide { grid-column: span 2; }
.uf-card.green-card { background: linear-gradient(135deg, rgba(0,122,77,0.1), rgba(0,196,122,0.04)); border-color: rgba(0,122,77,0.22); }
.uf-card.green-card:hover { border-color: rgba(0,122,77,0.4); box-shadow: 0 20px 60px rgba(0,122,77,0.12); }
.uf-icon { width: 46px; height: 46px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.uf-icon svg { stroke: rgba(255,255,255,0.6); }
.uf-tag { display: inline-block; font-family: var(--sans); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; }
.tag-green { background: rgba(0,122,77,0.14); color: #00C47A; border: 1px solid rgba(0,122,77,0.25); }
.tag-gold  { background: rgba(255,182,18,0.1); color: var(--sa-gold); border: 1px solid rgba(255,182,18,0.2); }
.tag-red   { background: rgba(222,56,49,0.1); color: #FF6B65; border: 1px solid rgba(222,56,49,0.2); }
.tag-blue  { background: rgba(0,35,149,0.15); color: #6699FF; border: 1px solid rgba(0,35,149,0.25); }
.uf-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: #fff; line-height: 1.3; }
.uf-card .card-p { font-family: var(--serif); font-size: .95rem; color: rgba(255,255,255,0.52); line-height: 1.7; font-weight: 300; }
.uf-list { margin-top: 14px; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.uf-list li { font-family: var(--serif); font-size: .9rem; color: rgba(255,255,255,0.52); display: flex; align-items: center; gap: 8px; font-weight: 300; }
.uf-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.uf-list.green li::before { background: var(--sa-green); box-shadow: 0 0 6px var(--accent-glow); }
.uf-list.gold li::before  { background: var(--sa-gold); box-shadow: 0 0 6px var(--gold-glow); }
.uf-bignum { font-family: var(--sans); font-size: 3.2rem; font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1; margin-bottom: 6px; }
.uf-bignum span { font-size: 1.3rem; font-weight: 500; color: rgba(255,255,255,0.45); }

/* ─────────────────────────────────────────────
   LEGAL
───────────────────────────────────────────── */
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.legal-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-xl); padding: 40px; backdrop-filter: blur(30px); }
.legal-card h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.legal-card .legal-lead { font-family: var(--serif); font-size: .95rem; color: rgba(255,255,255,0.45); margin-bottom: 24px; line-height: 1.65; font-weight: 300; }
.legal-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.legal-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.legal-item h4 { font-family: var(--sans); font-size: .82rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.legal-item p { font-family: var(--serif); font-size: .92rem; color: rgba(255,255,255,0.5); line-height: 1.65; font-weight: 300; }
.legal-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,122,77,0.1); border: 1px solid rgba(0,122,77,0.25); border-radius: 40px; padding: 5px 14px; font-family: var(--sans); font-size: .65rem; font-weight: 700; color: #00C47A; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }

/* ─────────────────────────────────────────────
   FINAL CTA
───────────────────────────────────────────── */
.final-cta { padding: 140px 40px; text-align: center; }
.cta-glass { max-width: 760px; margin: 0 auto; padding: 72px 64px; border-radius: var(--r-2xl); background: rgba(255,255,255,0.035); backdrop-filter: blur(60px) saturate(200%); border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 40px 120px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06); position: relative; overflow: hidden; }
.cta-glass::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(0,122,77,0.08), transparent 60%); pointer-events: none; }
.cta-glass::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--sa-green) 25%, var(--sa-gold) 25%, var(--sa-gold) 50%, var(--sa-red) 50%, var(--sa-red) 75%, var(--sa-blue) 75%); opacity: 0.55; }
.cta-glass h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); color: #fff; margin-bottom: 16px; }
.cta-glass p { font-family: var(--serif); font-size: 1.05rem; color: rgba(255,255,255,0.55); margin: 0 auto 36px; line-height: 1.75; font-weight: 300; max-width: 480px; }
.cta-note { margin-top: 18px; font-family: var(--sans); font-size: .7rem; color: rgba(255,255,255,0.3); letter-spacing: .04em; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer { border-top: 1px solid rgba(255,255,255,0.07); padding: 64px 40px 36px; background: rgba(255,255,255,0.01); backdrop-filter: blur(20px); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 48px; }
.footer-brand-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; text-decoration: none; }
.footer-brand-logo span { font-family: var(--sans); font-size: .92rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.footer-tagline { font-family: var(--serif); font-size: .9rem; color: rgba(255,255,255,0.32); line-height: 1.65; max-width: 210px; font-weight: 300; }
.footer-col-title { font-family: var(--sans); font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-family: var(--serif); font-size: .9rem; color: rgba(255,255,255,0.32); text-decoration: none; transition: color .2s; font-weight: 300; }
.footer-links a:hover { color: #fff; }
.footer-sa-bar { height: 1px; margin: 0 0 28px; background: linear-gradient(90deg, var(--sa-green), var(--sa-gold), var(--sa-red), var(--sa-blue), rgba(255,255,255,0.15)); opacity: 0.35; border-radius: 1px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-family: var(--sans); font-size: .68rem; color: rgba(255,255,255,0.28); letter-spacing: .03em; }

/* ─────────────────────────────────────────────
   DOWNLOAD AD MODAL
───────────────────────────────────────────── */
.dl-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.82); backdrop-filter: blur(8px); z-index: 9000; display: none; align-items: center; justify-content: center; padding: 24px; }
.dl-modal-overlay.open { display: flex; animation: fadeOverlay .25s ease; }
@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }
.dl-modal { background: #0C0C1A; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-xl); width: 100%; max-width: 560px; overflow: hidden; animation: slideUp .3s cubic-bezier(.22,.68,0,1.2); }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.dl-modal-top { padding: 28px 28px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.dl-modal-title { font-family: var(--sans); font-size: .95rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.dl-modal-sub { font-family: var(--serif); font-size: .92rem; color: rgba(255,255,255,0.45); line-height: 1.5; }
.dl-modal-file { font-family: var(--sans); font-size: .78rem; font-weight: 700; color: var(--accent-2); margin-top: 8px; }
.dl-modal-ad { padding: 20px 28px; background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.07); }
.dl-modal-ad-label { font-family: var(--sans); font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,0.2); margin-bottom: 8px; }
.dl-modal-ad-slot { width: 100%; min-height: 90px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.055); border-radius: var(--r); display: flex; align-items: center; justify-content: center; }
.dl-modal-notice { padding: 14px 28px; background: rgba(255,182,18,0.04); border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 10px; }
.dl-modal-notice svg { stroke: var(--sa-gold); flex-shrink: 0; }
.dl-modal-notice p { font-family: var(--sans); font-size: .68rem; font-weight: 500; color: rgba(255,255,255,0.42); line-height: 1.5; }
.dl-modal-footer { padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dl-modal-countdown { font-family: var(--sans); font-size: .72rem; font-weight: 600; color: rgba(255,255,255,0.35); }
.dl-modal-countdown span { color: var(--accent-2); font-weight: 800; }
.dl-confirm-btn { background: var(--sa-green); color: #fff; font-family: var(--sans); font-size: .8rem; font-weight: 700; padding: 12px 28px; border-radius: 40px; border: none; cursor: pointer; transition: all .22s; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; box-shadow: 0 0 20px var(--accent-glow); }
.dl-confirm-btn:hover:not(:disabled) { background: #00C47A; transform: translateY(-1px); }
.dl-confirm-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.dl-skip-btn { background: none; border: none; font-family: var(--sans); font-size: .7rem; font-weight: 600; color: rgba(255,255,255,0.28); cursor: pointer; transition: color .2s; text-decoration: underline; text-underline-offset: 3px; }
.dl-skip-btn:hover { color: rgba(255,255,255,0.55); }

/* ─────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 780px) {
  .site-nav { width: calc(100% - 28px); padding: 0 16px; top: 10px; }
  .nav-links { display: none; }
  section { padding: 72px 20px; }
  .hero { padding: 90px 20px 60px; }
  h1 { font-size: 2.4rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .uf-grid { grid-template-columns: 1fr; }
  .uf-card.wide { grid-column: span 1; }
  .legal-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .cta-glass { padding: 44px 24px; }
  .stats-strip { grid-template-columns: 1fr; }
  .inline-settings { grid-template-columns: 1fr; }
  .ek-ad-wrap { padding: 16px 20px; }
  .ek-ad-leaderboard { max-width: 100%; }
  .ad-notice { width: calc(100% - 40px); margin: 0 20px; }
}
