/*
   ALLEN TOOL — UNIFIED PRODUCT SYSTEM
   Visual language derived from /menu/: deep green-black, soft glass,
   lime-to-green energy, technical typography and focused information density.
*/

:root {
  --primary: #87c300;
  --primary-light: #c8f24d;
  --primary-dark: #5eba00;
  --accent: #00ad00;
  --accent-alt: #009525;
  --bg-dark: #050a07;
  --bg-elev: #0b120d;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --text-primary: #f4f4f7;
  --text-secondary: #a3a3b0;
  --text-tertiary: #5c5c68;
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hi: rgba(255, 255, 255, 0.14);
  --glow: rgba(135, 195, 0, 0.35);
  --glow-hi: rgba(135, 195, 0, 0.5);
  --danger: #f87171;
  --warning: #fbbf24;
  --gold: #c8f24d;
  --ok: #34d399;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-hi: rgba(255, 255, 255, 0.06);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-pane: 0 30px 80px -20px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(135, 195, 0, 0.025);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 112px;
}

body {
  color: var(--text-primary);
  background: var(--bg-dark);
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  user-select: text;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  color: #071006;
  background: var(--primary-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.grid-bg {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(135, 195, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 195, 0, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.orb {
  opacity: 0.35;
  filter: blur(90px);
}

.orb-1 {
  width: min(70vw, 700px);
  height: min(70vw, 700px);
  top: -25%;
  left: -15%;
  right: auto;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  animation: menu-float 24s ease-in-out infinite;
}

.orb-2 {
  width: min(55vw, 550px);
  height: min(55vw, 550px);
  right: -10%;
  bottom: -20%;
  left: auto;
  background: radial-gradient(circle, #33440a 0%, transparent 65%);
  animation: menu-float 30s ease-in-out infinite reverse;
}

.orb-3 {
  display: block;
  width: min(40vw, 400px);
  height: min(40vw, 400px);
  top: 40%;
  left: 60%;
  opacity: 0.22;
  background: radial-gradient(circle, #26330a 0%, transparent 65%);
  animation: menu-float 40s ease-in-out infinite;
}

@keyframes menu-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.06); }
}

#preloader {
  background: var(--bg-dark);
}

.loader {
  width: 68px;
  height: 68px;
}

.loader::before,
.loader::after {
  border-width: 2px;
}

.loader-text {
  color: var(--primary);
  font-family: 'Space Mono', monospace;
  font-size: 9px;
}

/* Header mirrors the /menu/ pill topbar */
header {
  top: 24px;
  right: clamp(16px, 4vw, 40px);
  left: clamp(16px, 4vw, 40px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  background: var(--glass);
  box-shadow: none;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

header.scrolled {
  top: 12px;
  border-color: var(--border-hi);
  background: rgba(5, 10, 7, 0.88);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.header-inner {
  max-width: none;
  height: 68px;
}

.logo {
  gap: 12px;
}

.logo-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #0a0d0a;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 16px var(--glow);
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: 50%;
  opacity: 0.5;
  background: radial-gradient(circle, var(--glow), transparent 70%);
}

.logo-text {
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-text span {
  margin-left: 4px;
  color: var(--primary);
}

nav {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  background: var(--glass);
}

nav a {
  padding: 7px 12px;
  border-radius: 100px;
  color: var(--text-tertiary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: none;
}

nav a::after,
nav a::before {
  display: none;
}

nav a:hover {
  color: var(--text-secondary);
  background: var(--glass-hi);
}

nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 2px 9px var(--glow);
}

.header-actions {
  gap: 8px;
}

.lang-btn {
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  background: var(--glass-hi);
}

.lang-dropdown {
  top: calc(100% + 13px);
  padding: 6px;
  border-color: var(--border-color);
  border-radius: 16px;
  background: rgba(11, 18, 13, 0.98);
  box-shadow: var(--shadow-pane);
}

.lang-option {
  border-radius: 10px;
}

.lang-option.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(135, 195, 0, 0.2), rgba(0, 173, 0, 0.14));
}

.cta-btn,
.btn-secondary,
.download-btn {
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;
  text-transform: none;
}

.header-actions > .cta-btn {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 12px;
}

.cta-btn,
.download-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 30px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-btn:hover,
.download-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  box-shadow: 0 14px 36px -8px var(--glow-hi), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--text-primary);
  border: 1px solid var(--border-hi);
  background: var(--glass-hi);
}

.btn-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--glass-hi);
}

.mobile-menu-btn span {
  background: var(--primary);
}

.mobile-nav {
  top: 104px;
  right: clamp(16px, 4vw, 40px);
  left: clamp(16px, 4vw, 40px);
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: rgba(5, 10, 7, 0.96);
  box-shadow: var(--shadow-pane);
  backdrop-filter: blur(24px) saturate(160%);
}

.mobile-nav a {
  padding: 13px 15px;
  border: 0;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(135, 195, 0, 0.18), rgba(0, 173, 0, 0.12));
}

/* Home hero: editorial copy + operational glass pane */
.hero {
  min-height: auto;
  padding: 168px clamp(20px, 4vw, 40px) 88px;
}

.hero::after {
  display: none;
}

.hero-inner {
  max-width: 1280px;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  gap: clamp(50px, 7vw, 100px);
}

.hero-content {
  max-width: 680px;
}

.hero-badge,
.section-tag,
.page-header::after {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--primary);
  background: var(--glass);
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-badge {
  margin-bottom: 20px;
}

.hero-badge::before {
  width: 6px;
  height: 6px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--glow);
}

.hero-title {
  margin-bottom: 22px;
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(50px, 6.2vw, 84px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -1.5px;
  text-transform: none;
}

.hero-title .highlight,
.page-title .highlight {
  color: transparent;
  background: linear-gradient(120deg, var(--primary) 20%, var(--primary-light) 55%, var(--primary-dark) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: menu-sweep 6s ease-in-out infinite;
}

@keyframes menu-sweep {
  0%, 100% { background-position: 0 0; }
  50% { background-position: 100% 0; }
}

.hero-subtitle {
  max-width: 570px;
  margin-bottom: 30px;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}

.hero-stats {
  display: inline-flex;
  gap: 0;
  margin-bottom: 26px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(20px);
}

.stat {
  min-width: 130px;
  padding: 15px 19px;
  border-right: 1px solid var(--border-color);
  text-align: left;
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  margin-top: 6px;
  color: var(--text-tertiary);
  font-family: 'Space Mono', monospace;
  font-size: 7px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.hero-buttons {
  gap: 10px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--text-tertiary);
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-proof::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.hero-visual {
  min-height: 710px;
  opacity: 1;
}

.device-showcase {
  width: 100%;
  max-width: 500px;
}

.device-showcase::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: rgba(135, 195, 0, 0.14);
  filter: blur(90px);
}

.phone-frame {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 680px;
  margin: 0 auto;
  padding: 1px;
  border: 1px solid var(--border-color);
  border-radius: 26px;
  background: var(--glass);
  box-shadow: var(--shadow-pane);
  transform: none;
  backdrop-filter: blur(24px) saturate(160%);
}

.phone-frame::before,
.phone-frame::after,
.phone-notch {
  display: none;
}

.phone-screen {
  min-height: 678px;
  padding: 25px;
  border-radius: 25px;
  justify-content: flex-start;
  background:
    radial-gradient(ellipse at 50% -15%, rgba(135, 195, 0, 0.12), rgba(135, 195, 0, 0.025) 58%, transparent),
    rgba(5, 10, 7, 0.62);
}

.phone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(135, 195, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 195, 0, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.phone-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-tertiary);
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.phone-status strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ok);
  font-weight: 700;
}

.phone-status strong::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.iphone-stage {
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: 100%;
  height: 410px;
  margin-top: 14px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.stage-modules-status {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-family: 'Space Mono', monospace;
  font-size: 6px;
  letter-spacing: 0.85px;
  text-transform: uppercase;
}

.stage-modules-status strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-weight: 700;
}

.stage-modules-status strong::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 9px var(--glow-hi);
  animation: module-signal 1.8s ease-in-out infinite;
}

.iphone-floor-glow {
  position: absolute;
  bottom: 6px;
  left: 50%;
  z-index: 0;
  width: 230px;
  height: 34px;
  border-radius: 50%;
  opacity: 0.75;
  background: radial-gradient(ellipse, rgba(135, 195, 0, 0.35), rgba(0, 173, 0, 0.12) 42%, transparent 72%);
  filter: blur(11px);
  transform: translateX(-50%);
  animation: iphone-shadow-pulse 4.8s ease-in-out infinite;
}

.iphone-device {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 3;
  width: 174px;
  height: 352px;
  padding: 7px;
  border: 1px solid rgba(214, 237, 199, 0.32);
  border-radius: 39px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.38), transparent 7% 88%, rgba(135, 195, 0, 0.3)),
    linear-gradient(145deg, #61705f 0%, #18221b 26%, #060a08 67%, #344632 100%);
  box-shadow:
    -20px 28px 42px rgba(0, 0, 0, 0.62),
    16px 22px 60px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(0, 0, 0, 0.9),
    0 0 42px rgba(135, 195, 0, 0.13),
    inset 1px 0 1px rgba(255, 255, 255, 0.32),
    inset -2px 0 2px rgba(0, 0, 0, 0.78);
  transform: translateX(-50%) rotateY(-13deg) rotateX(4deg) rotateZ(0.8deg);
  transform-style: preserve-3d;
  animation: iphone-float-3d 5.6s ease-in-out infinite;
}

.iphone-device::before {
  content: '';
  position: absolute;
  inset: 3px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 35px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.72);
}

.iphone-device::after {
  content: '';
  position: absolute;
  top: 37px;
  right: -5px;
  width: 4px;
  height: 202px;
  border-radius: 0 4px 4px 0;
  opacity: 0.72;
  background: linear-gradient(to bottom, transparent, #53624f 16%, #101611 50%, #43543f 84%, transparent);
  transform: translateZ(-7px);
}

.iphone-display {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(135, 195, 0, 0.18);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 42%, rgba(135, 195, 0, 0.15), transparent 37%),
    radial-gradient(circle at 22% 80%, rgba(0, 173, 0, 0.12), transparent 31%),
    linear-gradient(160deg, #08110b 0%, #030705 58%, #0b140d 100%);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.65);
}

.iphone-display::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(135, 195, 0, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 195, 0, 0.065) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.iphone-display::after {
  content: '';
  position: absolute;
  top: -24%;
  right: -35%;
  left: -35%;
  z-index: 1;
  height: 70px;
  pointer-events: none;
  opacity: 0.55;
  background: linear-gradient(to bottom, transparent, rgba(179, 255, 91, 0.1), rgba(135, 195, 0, 0.26), transparent);
  filter: blur(5px);
  transform: rotate(-12deg);
  animation: iphone-scan 4.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.iphone-system-bar {
  position: absolute;
  top: 11px;
  right: 14px;
  left: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(244, 244, 247, 0.7);
  font-family: 'Space Mono', monospace;
  font-size: 5px;
  font-weight: 700;
}

.iphone-system-icons {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.iphone-system-icons i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: rgba(244, 244, 247, 0.7);
}

.iphone-system-icons i:nth-child(1) { height: 4px; }
.iphone-system-icons i:nth-child(2) { height: 6px; }
.iphone-system-icons i:nth-child(3) { width: 8px; height: 5px; border: 1px solid rgba(244, 244, 247, 0.7); background: transparent; }

.dynamic-island {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 6;
  width: 62px;
  height: 18px;
  border-radius: 100px;
  background: #000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 12px rgba(0, 0, 0, 0.8);
  transform: translateX(-50%);
}

.dynamic-island::before {
  content: '';
  position: absolute;
  top: 6px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #344b61, #070b0d 66%);
  box-shadow: 0 0 4px rgba(74, 132, 161, 0.3);
}

.dynamic-island i {
  position: absolute;
  top: 7px;
  left: 13px;
  width: 25px;
  height: 3px;
  border-radius: 4px;
  background: #080808;
}

.iphone-device .unlock-animation {
  position: absolute;
  inset: 47px 15px 28px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  gap: 11px;
  margin: 0;
}

.iphone-loader {
  position: relative;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(135, 195, 0, 0.15);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(135, 195, 0, 0.13), rgba(135, 195, 0, 0.025) 56%, transparent 70%);
  box-shadow: 0 0 38px rgba(135, 195, 0, 0.11), inset 0 0 22px rgba(135, 195, 0, 0.04);
}

.iphone-loader::before,
.iphone-loader::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.iphone-loader::before {
  inset: 12px;
  border: 1px dashed rgba(135, 195, 0, 0.21);
  animation: iphone-loader-spin 9s linear infinite reverse;
}

.iphone-loader::after {
  inset: 25px;
  border: 1px solid rgba(135, 195, 0, 0.13);
  box-shadow: inset 0 0 18px rgba(135, 195, 0, 0.08);
}

.iphone-loader-orbit {
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 22%, var(--primary) 38%, var(--primary-light) 42%, transparent 54% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  animation: iphone-loader-spin 2.5s linear infinite;
}

.iphone-loader-orbit::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 10px var(--primary), 0 0 18px rgba(135, 195, 0, 0.6);
}

.iphone-loader .lock-icon {
  position: relative;
  z-index: 2;
  width: 35px;
  height: 35px;
}

.iphone-loader .lock-icon svg {
  color: var(--primary-light);
  filter: drop-shadow(0 0 9px rgba(135, 195, 0, 0.42));
  animation: iphone-lock-pulse 2.4s ease-in-out infinite;
}

.iphone-device .unlock-text {
  color: var(--primary-light);
  font-family: 'Space Mono', monospace;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.65px;
  text-shadow: 0 0 11px rgba(135, 195, 0, 0.35);
}

.iphone-device .progress-bar {
  width: 112px;
  height: 2px;
  overflow: hidden;
  border-radius: 100px;
  background: rgba(135, 195, 0, 0.13);
}

.iphone-device .progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  box-shadow: 0 0 8px var(--primary);
  transform-origin: left;
  animation: iphone-progress 3.4s cubic-bezier(.65, 0, .35, 1) infinite;
}

.iphone-progress-meta {
  display: flex;
  justify-content: space-between;
  width: 112px;
  color: rgba(244, 244, 247, 0.28);
  font-family: 'Space Mono', monospace;
  font-size: 4px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.iphone-progress-meta strong {
  color: rgba(200, 242, 77, 0.62);
  font-weight: 700;
}

.iphone-home-bar {
  position: absolute;
  bottom: 7px;
  left: 50%;
  z-index: 5;
  width: 54px;
  height: 3px;
  border-radius: 100px;
  background: rgba(244, 244, 247, 0.56);
  transform: translateX(-50%);
}

.iphone-button {
  position: absolute;
  z-index: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(to bottom, #526050, #171e18 55%, #43503f);
  box-shadow: -1px 0 1px rgba(255, 255, 255, 0.18);
}

.iphone-button-silent { top: 63px; left: -4px; height: 18px; }
.iphone-button-volume-up { top: 96px; left: -4px; height: 38px; }
.iphone-button-volume-down { top: 143px; left: -4px; height: 38px; }
.iphone-button-power { top: 107px; right: -4px; width: 3px; height: 63px; border-radius: 0 3px 3px 0; }

@keyframes iphone-float-3d {
  0%, 100% { transform: translateX(-50%) translateY(0) rotateY(-13deg) rotateX(4deg) rotateZ(0.8deg); }
  50% { transform: translateX(-50%) translateY(-9px) rotateY(-8deg) rotateX(1deg) rotateZ(-0.5deg); }
}

@keyframes iphone-shadow-pulse {
  0%, 100% { opacity: 0.62; transform: translateX(-50%) scaleX(0.9); }
  50% { opacity: 0.88; transform: translateX(-50%) scaleX(1.08); }
}

@keyframes iphone-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes iphone-lock-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes iphone-progress {
  0% { transform: scaleX(0.08); opacity: 0.55; }
  65% { transform: scaleX(0.82); opacity: 1; }
  88% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@keyframes iphone-scan {
  0% { top: -24%; opacity: 0; }
  12% { opacity: 0.55; }
  76% { opacity: 0.5; }
  100% { top: 112%; opacity: 0; }
}

@keyframes module-signal {
  0%, 100% { opacity: 0.55; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.18); }
}

.device-data {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 8px;
  margin-top: 12px;
}

.device-data-item {
  padding: 11px 13px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--glass);
}

.device-data-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-tertiary);
  font-family: 'Space Mono', monospace;
  font-size: 6px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.device-data-item strong {
  display: block;
  overflow: hidden;
  color: var(--text-primary);
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-result {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  padding: 12px 13px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 10px;
  color: var(--ok);
  background: rgba(52, 211, 153, 0.1);
  font-family: 'Space Mono', monospace;
  font-size: 7px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.phone-result::after {
  content: 'READY';
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--bg-dark);
  background: var(--ok);
  font-size: 6px;
  font-weight: 700;
}

.module-popup {
  --wander-x: 4px;
  --wander-y: -6px;
  --tilt: 0deg;
  --duration: 5s;
  position: absolute;
  z-index: 7;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  width: 116px;
  min-height: 41px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(19, 30, 21, 0.92), rgba(7, 12, 9, 0.88));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: 'Space Mono', monospace;
  pointer-events: none;
  backdrop-filter: blur(16px) saturate(160%);
  transform: rotate(var(--tilt));
  animation: module-popup-wander var(--duration) ease-in-out infinite alternate;
}

.module-popup::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0.42;
  box-shadow: 0 0 18px rgba(135, 195, 0, 0.13);
}

.module-popup i {
  grid-row: 1 / 3;
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow-hi);
  animation: module-signal 2.2s ease-in-out infinite;
}

.module-popup span,
.module-popup strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-popup span {
  color: var(--text-primary);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.module-popup strong {
  margin-top: 3px;
  color: var(--primary);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.popup-open-menu { top: 55px; left: -8px; --tilt: -2.2deg; --wander-x: 7px; --wander-y: -5px; --duration: 4.8s; }
.popup-passcode { top: 91px; right: -10px; --tilt: 1.8deg; --wander-x: -5px; --wander-y: 7px; --duration: 5.7s; animation-delay: -1.2s; }
.popup-a5a6 { top: 164px; left: 1px; --tilt: 1.2deg; --wander-x: -4px; --wander-y: 8px; --duration: 6.2s; animation-delay: -3.5s; }
.popup-hello { top: 196px; right: -2px; --tilt: -1.6deg; --wander-x: 5px; --wander-y: -7px; --duration: 5.1s; animation-delay: -2.4s; }
.popup-ramdisk { top: 275px; left: -5px; --tilt: -1deg; --wander-x: 6px; --wander-y: 5px; --duration: 5.9s; animation-delay: -4.1s; }
.popup-a12 { top: 296px; right: -8px; --tilt: 2.4deg; --wander-x: -7px; --wander-y: -6px; --duration: 4.6s; animation-delay: -0.8s; }
.popup-t2mdm { bottom: 0; left: 50%; margin-left: -58px; --tilt: -0.8deg; --wander-x: 5px; --wander-y: -6px; --duration: 6.4s; animation-delay: -2.9s; }

@keyframes module-popup-wander {
  0% { transform: translate3d(0, 0, 22px) rotate(var(--tilt)); }
  100% { transform: translate3d(var(--wander-x), var(--wander-y), 36px) rotate(var(--tilt)); }
}

.floating-card {
  min-width: 180px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: rgba(11, 18, 13, 0.84);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(24px) saturate(160%);
}

.floating-card-1 {
  top: 13%;
  right: -6%;
}

.floating-card-2 {
  top: 58%;
  bottom: auto;
  left: -7%;
}

.card-icon {
  float: left;
  width: 34px;
  height: 34px;
  margin: 0 10px 0 0;
  border: 1px solid rgba(135, 195, 0, 0.18);
  border-radius: 10px;
  background: rgba(135, 195, 0, 0.09);
}

.card-icon svg {
  width: 17px;
  height: 17px;
}

.card-title {
  padding-top: 1px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.card-subtitle {
  color: var(--text-tertiary);
  font-size: 10px;
}

/* Cross-platform rail */
.compatibility-rail {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.compatibility-inner {
  display: grid;
  grid-template-columns: 1.45fr repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-pane);
  backdrop-filter: blur(24px) saturate(160%);
}

.compatibility-label,
.compatibility-item {
  min-height: 88px;
  padding: 18px 22px;
}

.compatibility-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.5;
}

.compatibility-label strong {
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
}

.compatibility-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.compatibility-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--glow);
}

.compatibility-item span {
  display: block;
  margin-top: 2px;
  color: var(--text-tertiary);
  font-family: 'Space Mono', monospace;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Shared section structure */
.section {
  padding: 110px clamp(20px, 4vw, 40px);
}

.section-header {
  max-width: 1280px;
  margin: 0 auto 44px;
  text-align: left;
}

.section-tag {
  margin-bottom: 16px;
}

.section-title,
.page-title,
.cta-title {
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
}

.section-title {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -1px;
}

.section-subtitle {
  max-width: 650px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* Services become a clear operational bento grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  max-width: 1280px;
  gap: 16px;
  counter-reset: allen-service;
}

.service-card {
  grid-column: span 4;
  min-height: 374px;
  padding: 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-pane);
  backdrop-filter: blur(24px) saturate(160%);
  counter-increment: allen-service;
}

.service-card:nth-child(1),
.service-card:nth-child(2),
.service-card:nth-child(6),
.service-card:nth-child(7) {
  grid-column: span 6;
}

.service-card::before {
  top: auto;
  right: -20%;
  bottom: -38%;
  left: auto;
  width: 78%;
  height: 72%;
  border-radius: 50%;
  opacity: 0;
  background: rgba(135, 195, 0, 0.1);
  filter: blur(60px);
  transform: none;
}

.service-card::after {
  content: '0' counter(allen-service);
  position: absolute;
  right: 21px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.13);
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
}

.service-card:hover {
  border-color: rgba(135, 195, 0, 0.26);
  background: var(--glass-hi);
  box-shadow: 0 34px 90px -24px rgba(0, 0, 0, 0.66), 0 0 0 1px rgba(135, 195, 0, 0.04);
  transform: translateY(-5px);
}

.service-card:hover::before {
  opacity: 1;
  transform: none;
}

.service-icon,
.feature-icon,
.benefit-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border: 1px solid rgba(135, 195, 0, 0.2);
  border-radius: 14px;
  background: rgba(135, 195, 0, 0.09);
}

.service-icon svg,
.feature-icon svg,
.benefit-icon svg {
  width: 25px;
  height: 25px;
  color: var(--primary);
}

.service-badge,
.pricing-bonus {
  padding: 5px 10px;
  border: 1px solid rgba(135, 195, 0, 0.24);
  border-radius: 100px;
  color: var(--primary);
  background: rgba(135, 195, 0, 0.09);
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.service-title,
.feature-title,
.benefit-title,
.pricing-title,
.download-title,
.modal-title {
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.service-title {
  max-width: 88%;
  font-size: 18px;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.service-feature {
  color: var(--text-secondary);
  font-size: 13px;
}

.service-feature svg {
  width: 15px;
  height: 15px;
  color: var(--ok);
}

.service-link {
  position: absolute;
  bottom: 24px;
  left: 28px;
  color: var(--primary);
  font-size: 12px;
}

/* Pricing and plan cards */
.pricing-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, transparent, rgba(135, 195, 0, 0.025), transparent);
}

.pricing-grid {
  max-width: 1280px;
  gap: 16px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-pane);
  text-align: left;
  backdrop-filter: blur(24px) saturate(160%);
}

.pricing-card::before {
  top: 18px;
  right: 18px;
  left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--glow);
}

.pricing-card:hover {
  border-color: rgba(135, 195, 0, 0.28);
  background: var(--glass-hi);
  box-shadow: 0 34px 90px -24px rgba(0, 0, 0, 0.66);
  transform: translateY(-5px);
}

.pricing-card.featured {
  border-color: rgba(135, 195, 0, 0.3);
  background:
    radial-gradient(ellipse at 50% -20%, rgba(135, 195, 0, 0.14), rgba(135, 195, 0, 0.03) 60%, transparent),
    var(--glass);
}

.pricing-card.featured::before {
  background: var(--primary-light);
}

.pricing-badge {
  position: static;
  align-self: flex-start;
  margin: -5px 0 5px;
  padding: 5px 11px;
  border-radius: 100px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.pricing-amount {
  margin: 25px 0 18px;
}

.pricing-currency {
  color: var(--primary);
  font-size: 18px;
}

.pricing-value {
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -2px;
}

.pricing-card.featured .pricing-value,
.pricing-card.featured .pricing-bonus {
  color: var(--primary-light);
}

.pricing-title {
  font-size: 16px;
}

.pricing-desc,
.pricing-feature {
  color: var(--text-secondary);
  font-size: 13px;
}

.pricing-features {
  flex: 1;
}

.pricing-feature {
  border-color: var(--border-color);
}

.pricing-feature svg {
  width: 16px;
  height: 16px;
  color: var(--ok);
}

.monthly-plan {
  max-width: 680px;
  border-color: rgba(135, 195, 0, 0.28);
  background:
    radial-gradient(ellipse at 50% -20%, rgba(135, 195, 0, 0.12), transparent 62%),
    var(--glass);
}

.btn-gold {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  box-shadow: 0 10px 30px -8px var(--glow);
}

/* Trust, benefits and system requirements */
.features-grid {
  max-width: 1280px;
  gap: 16px;
}

.feature-item,
.benefit-card {
  padding: 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-pane);
  text-align: left;
  backdrop-filter: blur(24px) saturate(160%);
}

.feature-item:hover,
.benefit-card:hover {
  border-color: rgba(135, 195, 0, 0.24);
  background: var(--glass-hi);
  transform: translateY(-4px);
}

.feature-icon,
.benefit-icon {
  margin: 0 0 20px;
}

.feature-title,
.benefit-title {
  font-size: 15px;
}

.feature-desc,
.benefit-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

/* Final conversion pane uses the same product glow */
.cta-section {
  padding: 70px clamp(20px, 4vw, 40px) 110px;
}

.cta-box {
  display: grid;
  place-items: center;
  max-width: 1280px;
  min-height: 400px;
  padding: 65px;
  border: 1px solid rgba(135, 195, 0, 0.24);
  border-radius: 26px;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse at 50% -20%, rgba(135, 195, 0, 0.18), rgba(135, 195, 0, 0.045) 56%, transparent),
    var(--glass);
  box-shadow: 0 34px 100px -30px rgba(0, 0, 0, 0.7), 0 0 80px rgba(135, 195, 0, 0.055);
  backdrop-filter: blur(24px) saturate(160%);
}

.cta-box::before {
  inset: -55% auto auto 62%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(135, 195, 0, 0.1);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 70px rgba(135, 195, 0, 0.012), 0 0 0 140px rgba(135, 195, 0, 0.01);
  animation: none;
}

.cta-box::after {
  content: 'A';
  position: absolute;
  bottom: -25%;
  left: 5%;
  color: rgba(135, 195, 0, 0.035);
  font-family: 'Orbitron', sans-serif;
  font-size: 330px;
  font-weight: 900;
  line-height: 1;
}

.cta-content {
  max-width: 760px;
}

.cta-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: -1px;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 17px;
}

.cta-box .cta-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.cta-box .btn-secondary {
  color: var(--text-primary);
  border-color: var(--border-hi);
  background: var(--glass-hi);
}

/* Inner page hero */
.page-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 170px clamp(20px, 4vw, 40px) 78px;
  text-align: left;
}

.page-header::before {
  top: 112px;
  right: clamp(20px, 4vw, 40px);
  left: clamp(20px, 4vw, 40px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 85% -10%, rgba(135, 195, 0, 0.14), transparent 38%),
    var(--glass);
  box-shadow: var(--shadow-pane);
  backdrop-filter: blur(24px) saturate(160%);
}

.page-header::after {
  content: 'ALLEN TOOL · PROFESSIONAL SYSTEM';
  margin-top: 28px;
}

.page-title {
  max-width: 900px;
  margin: 0;
  font-size: clamp(46px, 7.5vw, 86px);
  line-height: 1;
  letter-spacing: -1.5px;
  text-transform: none;
}

.page-subtitle {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
}

/* Downloads */
.download-filter {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 3px;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  background: var(--glass);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.filter-btn {
  min-height: 36px;
  padding: 8px 15px;
  border: 0;
  border-radius: 100px;
  color: var(--text-tertiary);
  background: transparent;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.filter-btn:hover {
  color: var(--text-secondary);
  background: var(--glass-hi);
}

.filter-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 2px 9px var(--glow);
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1280px;
  gap: 16px;
}

.download-card {
  display: flex;
  flex-direction: column;
  width: auto;
  min-height: 490px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-pane);
  backdrop-filter: blur(24px) saturate(160%);
}

.download-card[hidden] {
  display: none;
}

.download-card:hover {
  border-color: rgba(135, 195, 0, 0.24);
  background: var(--glass-hi);
  box-shadow: 0 34px 90px -24px rgba(0, 0, 0, 0.66);
  transform: translateY(-5px);
}

.download-image {
  height: 220px;
  background: #eef0eb;
  border-bottom: 1px solid var(--border-color);
}

.download-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 10, 7, 0.45), transparent 44%);
}

.download-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.22, 1, .36, 1);
}

.download-card:hover .download-image img {
  transform: scale(1.035);
}

.platform-badges {
  z-index: 2;
  gap: 5px;
}

.platform-badge {
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: #fff;
  background: rgba(5, 10, 7, 0.78);
  font-size: 10px;
  backdrop-filter: blur(12px);
}

.download-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.download-title {
  font-size: 16px;
}

.download-version {
  color: var(--primary);
  font-family: 'Space Mono', monospace;
  font-size: 8px;
}

.download-desc {
  flex: 1;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.download-btn {
  justify-content: space-between;
  width: 100%;
}

/* Resellers */
.reseller-benefits {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1280px;
  gap: 16px;
}

.benefit-card {
  min-height: 260px;
}

.reseller-form-container {
  max-width: 720px;
  padding: 34px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-pane);
  backdrop-filter: blur(24px) saturate(160%);
}

.form-label {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.form-input,
.form-textarea,
.form-select {
  min-height: 52px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-primary);
  background: var(--bg-elev);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  background: rgba(13, 24, 15, 0.92);
  box-shadow: 0 0 0 4px rgba(135, 195, 0, 0.14);
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 15px 22px;
}

.form-note {
  margin-top: 12px;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.resellers-page .service-card {
  min-height: 0;
  padding: 24px;
  cursor: default;
}

.resellers-page .service-card::before,
.resellers-page .service-card::after {
  display: none;
}

/* Modal */
.modal-overlay {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
}

.modal {
  max-width: 540px;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: var(--bg-elev);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(135, 195, 0, 0.035);
}

.modal-header,
.modal-footer {
  border-color: var(--border-color);
}

.modal-title {
  font-size: 17px;
}

.modal-close {
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--glass-hi);
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

.modal-feature {
  border-color: var(--border-color);
  color: var(--text-secondary);
  background: var(--glass);
  font-size: 13px;
}

/* Footer */
footer {
  padding: 72px clamp(20px, 4vw, 40px) 30px;
  border-top: 1px solid var(--border-color);
  background: rgba(5, 10, 7, 0.72);
}

.footer-inner {
  max-width: 1280px;
}

.footer-top {
  gap: 70px;
}

.footer-brand p,
.footer-links a,
.footer-bottom p,
.footer-legal a {
  color: var(--text-tertiary);
  font-size: 13px;
}

.footer-links h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 0.8px;
}

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--glass);
}

.social-link:hover {
  color: #fff;
  border-color: rgba(135, 195, 0, 0.28);
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.social-link[href="#"] {
  display: none;
}

.footer-links a[href="#"],
.footer-legal a[href="#"] {
  opacity: 0.42;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1180px) {
  header nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
    gap: 38px;
  }

  .hero-title {
    font-size: clamp(46px, 7vw, 70px);
  }

  .services-grid .service-card {
    grid-column: span 6;
  }

  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    order: 0;
    max-width: 760px;
  }

  .hero-visual {
    order: 1;
    min-height: auto;
  }

  .device-showcase {
    max-width: 560px;
    margin: 25px auto 0;
  }

  .compatibility-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .compatibility-label {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--border-color);
  }

  .compatibility-item:nth-child(even) {
    border-left: 0;
  }

  .reseller-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  header,
  header.scrolled {
    top: 12px;
    right: 12px;
    left: 12px;
    padding: 0 11px;
    border-radius: 22px;
  }

  .header-inner {
    height: 60px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 17px;
  }

  .logo-text {
    font-size: 12px;
  }

  .header-actions > .cta-btn {
    display: none;
  }

  .mobile-nav {
    top: 84px;
    right: 12px;
    left: 12px;
  }

  .hero {
    padding-top: 118px;
    padding-bottom: 72px;
  }

  .hero-title {
    font-size: clamp(42px, 13.5vw, 62px);
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .stat {
    min-width: 0;
    padding: 13px 10px;
  }

  .stat-value {
    font-size: 19px;
  }

  .stat-label {
    font-size: 6px;
  }

  .hero-buttons .cta-btn,
  .hero-buttons .btn-secondary {
    flex: 1;
    justify-content: center;
  }

  .phone-frame,
  .phone-screen {
    min-height: 660px;
  }

  .phone-screen {
    padding: 20px;
  }

  .floating-card {
    min-width: 150px;
    padding: 11px;
  }

  .floating-card-1 {
    right: -2%;
  }

  .floating-card-2 {
    left: -2%;
  }

  .compatibility-rail {
    padding: 0 20px;
  }

  .compatibility-label,
  .compatibility-item {
    min-height: 74px;
    padding: 15px;
  }

  .compatibility-item {
    font-size: 12px;
  }

  .section {
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .section-title {
    font-size: 34px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .services-grid,
  .features-grid,
  .reseller-benefits,
  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card {
    grid-column: auto;
    min-height: 360px;
  }

  .feature-item,
  .benefit-card {
    min-height: 0;
  }

  .cta-section {
    padding-top: 45px;
    padding-bottom: 84px;
  }

  .cta-box {
    min-height: 370px;
    padding: 40px 23px;
    border-radius: 22px;
  }

  .cta-box::after {
    bottom: -8%;
    left: -4%;
    font-size: 200px;
  }

  .cta-title {
    font-size: 38px;
  }

  .page-header {
    padding: 132px 20px 62px;
  }

  .page-header::before {
    top: 92px;
    right: 20px;
    left: 20px;
    border-radius: 22px;
  }

  .page-title {
    font-size: clamp(42px, 13vw, 62px);
  }

  .page-subtitle {
    font-size: 14px;
  }

  .download-filter {
    flex-wrap: wrap;
    width: 100%;
  }

  .filter-btn {
    flex: 1;
  }

  .reseller-form-container {
    padding: 23px 18px;
  }

  footer {
    padding: 58px 20px 28px;
  }
}

@media (max-width: 420px) {
  .lang-btn .lang-flag,
  .lang-btn svg {
    display: none;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .cta-btn,
  .hero-buttons .btn-secondary {
    width: 100%;
  }

  .phone-frame,
  .phone-screen {
    min-height: 660px;
  }

  .iphone-stage {
    height: 400px;
  }

  .iphone-device {
    width: 164px;
    height: 338px;
  }

  .iphone-floor-glow {
    width: 190px;
  }

  .module-popup {
    width: 106px;
    min-height: 39px;
    padding: 7px 8px;
  }

  .popup-open-menu { left: -7px; }
  .popup-passcode { right: -7px; }
  .popup-a5a6 { left: -3px; }
  .popup-hello { right: -3px; }
  .popup-ramdisk { left: -5px; }
  .popup-a12 { right: -6px; }
  .popup-t2mdm { margin-left: -53px; }

  .iphone-device .unlock-animation {
    right: 13px;
    left: 13px;
  }

  .device-data {
    margin-top: 12px;
  }

  .floating-card {
    display: none;
  }

  .compatibility-item {
    padding: 12px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Longer Spanish/Portuguese headings stay readable without splitting words. */
html:lang(es) .hero-title, html:lang(pt) .hero-title {
  font-size: clamp(30px, 4vw, 56px);
  overflow-wrap: normal;
  line-height: 1.12;
}
@media (max-width: 600px) {
  html:lang(es) .hero-title, html:lang(pt) .hero-title { font-size: clamp(22px, 6.5vw, 38px); }
}

/* Five readable modules around the phone, with no competing floating cards. */
.home-page .phone-frame, .home-page .phone-screen { min-height: 0; }
.home-page .iphone-stage { height: 452px; }
.home-page .module-popup {
  width: 138px;
  min-height: 54px;
  padding: 11px;
  border-color: rgba(135, 195, 0, 0.35);
  background: #101c12;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  animation: module-readable-float 5s ease-in-out infinite alternate;
  transform: none;
}
.home-page .module-popup[hidden] { display: none; }
.home-page .module-popup span { font-size: 11px; line-height: 1.35; letter-spacing: 0; }
.home-page .module-popup strong { font-size: 10px; letter-spacing: 0.3px; }
.home-page .module-popup[data-slot="0"] { top: 70px; left: max(0px, calc(50% - 205px)); }
.home-page .module-popup[data-slot="1"] { top: 120px; right: max(0px, calc(50% - 205px)); animation-delay: -1s; }
.home-page .module-popup[data-slot="2"] { top: 260px; left: max(0px, calc(50% - 205px)); animation-delay: -2s; }
.home-page .module-popup[data-slot="3"] { top: 305px; right: max(0px, calc(50% - 205px)); animation-delay: -3s; }
.home-page .module-popup[data-slot="4"] { top: 390px; left: calc(50% - 69px); animation-delay: -4s; }
.home-page .stage-modules-status { font-size: 8px; }
@keyframes module-readable-float { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@media (max-width: 480px) {
  .home-page .module-popup { width: 112px; padding: 9px; }
  .home-page .module-popup span { font-size: 10px; }
  .home-page .module-popup strong { font-size: 9px; }
  .home-page .module-popup[data-slot="4"] { left: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .module-popup { animation: none; }
}
/* Reset the old absolute-position transform that clipped the badge. */
.pricing-badge {
  position: static;
  transform: none;
  margin: 0 0 8px;
  padding: 7px 14px;
  font-size: 13px;
  line-height: 1.3;
  color: #102000;
  background: var(--primary-light);
  align-self: flex-start;
}
.home-page .module-popup span,
.home-page .module-popup strong {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
}
