/* ========================================
   STIGLOG Landing Page – Styles
   ======================================== */

/* --- Custom Properties --- */
:root {
  --bg-primary: #0D0D0D;
  --bg-secondary: #141414;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222222;
  --bg-elevated: #2A2A2A;

  --accent: #FF6B00;
  --accent-hover: #FF8533;
  --accent-glow: rgba(255, 107, 0, 0.3);
  --accent-subtle: rgba(255, 107, 0, 0.08);

  --blue: #3B82F6;
  --blue-glow: rgba(59, 130, 246, 0.3);
  --green: #10B981;
  --green-glow: rgba(16, 185, 129, 0.3);
  --yellow: #F59E0B;
  --red: #EF4444;

  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 4px 24px var(--accent-glow);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-secondary);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 0, 0.2);
  margin-bottom: 16px;
}

.section-tag-ai {
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.2);
}

.section-tag-performance {
  background: rgba(16, 185, 129, 0.08);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.2);
}

.section-tag-security {
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.2);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 32px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  z-index: 1001;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.nav-logo-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 107, 0, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
}

.hero-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.05) 0%, transparent 70%);
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 107, 0, 0.4);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { transform: translateY(-100px) translateX(30px); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--accent-subtle);
  border: 1px solid rgba(255, 107, 0, 0.15);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-badge i {
  font-size: 0.75rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #FF9A56 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-suffix {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-icon {
  font-size: 1.25rem;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: #1A1A1A;
  border-radius: 40px;
  border: 3px solid #333;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 40px rgba(0, 0, 0, 0.3);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #0D0D0D;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  inset: 6px;
  border-radius: 36px;
  background: linear-gradient(180deg, #1C1C1C 0%, #111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  filter: drop-shadow(0 4px 16px rgba(255, 107, 0, 0.3));
}

.phone-app-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.phone-app-tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.phone-reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  border-radius: 40px;
  pointer-events: none;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ========================================
   FEATURES GRID
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 0, 0.15);
}

.feature-icon-ai {
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.15);
}

.feature-icon-odometer {
  background: rgba(16, 185, 129, 0.08);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.15);
}

.feature-icon-performance {
  background: rgba(245, 158, 11, 0.08);
  color: var(--yellow);
  border-color: rgba(245, 158, 11, 0.15);
}

.feature-icon-plate {
  background: rgba(139, 92, 246, 0.08);
  color: #8B5CF6;
  border-color: rgba(139, 92, 246, 0.15);
}

.feature-icon-cloud {
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.15);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(139, 92, 246, 0.1);
  color: #8B5CF6;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ========================================
   DETAIL SECTIONS
   ======================================== */
.detail-section {
  overflow: hidden;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.detail-grid-reverse {
  direction: rtl;
}

.detail-grid-reverse > * {
  direction: ltr;
}

.detail-content .section-title {
  text-align: left;
}

.detail-description {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.detail-list-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 1rem;
  border: 1px solid rgba(255, 107, 0, 0.15);
}

.detail-list-icon.icon-ai {
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.15);
}

.detail-list-icon.icon-perf {
  background: rgba(16, 185, 129, 0.08);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.15);
}

.detail-list li strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.detail-list li p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Demo Cards (Maintenance) --- */
.detail-card-stack {
  position: relative;
  height: 400px;
}

.detail-demo-card {
  position: absolute;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow);
}

.detail-demo-card.card-1 {
  top: 0;
  left: 20px;
  z-index: 3;
  transform: rotate(-1deg);
}

.detail-demo-card.card-2 {
  top: 60px;
  left: 60px;
  z-index: 2;
  transform: rotate(1.5deg);
  opacity: 0.85;
}

.detail-demo-card.card-3 {
  top: 120px;
  left: 40px;
  z-index: 1;
  transform: rotate(-0.5deg);
  opacity: 0.65;
}

.detail-card-stack:hover .card-1 {
  transform: rotate(-1deg) translateY(-8px);
}

.detail-card-stack:hover .card-2 {
  transform: rotate(1.5deg) translateX(8px);
}

.demo-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}

.demo-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.demo-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- AI Visual --- */
.ai-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.ai-brain-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-brain-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--blue);
  z-index: 2;
  position: relative;
}

.ai-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.15);
  animation: aiPulse 3s ease-out infinite;
}

.ring-1 {
  width: 80px;
  height: 80px;
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.ring-2 {
  width: 100px;
  height: 100px;
  top: 10px;
  left: 10px;
  animation-delay: 0.6s;
}

.ring-3 {
  width: 120px;
  height: 120px;
  top: 0;
  left: 0;
  animation-delay: 1.2s;
}

@keyframes aiPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.ai-suggestion-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 380px;
}

.ai-suggestion {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.ai-suggestion:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.ai-suggestion-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.ai-suggestion-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--yellow);
}

.ai-suggestion-icon.info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

.ai-suggestion-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
}

.ai-suggestion-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.ai-suggestion-text p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* --- Performance Visual --- */
.performance-metrics {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.perf-metric {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition-normal);
}

.perf-metric:hover {
  border-color: var(--green);
  box-shadow: 0 0 24px var(--green-glow);
}

.perf-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
}

.perf-unit {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.perf-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.performance-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.speedometer {
  width: 200px;
  height: 200px;
}

.speedometer-svg {
  width: 100%;
  height: 100%;
}

.speed-track {
  fill: none;
  stroke: var(--bg-card);
  stroke-width: 8;
}

.speed-progress {
  fill: none;
  stroke: url(#speedGradient);
  stroke: var(--green);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 534;
  stroke-dashoffset: 160;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1.5s ease;
}

.speed-value {
  fill: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font);
}

.speed-label {
  fill: var(--text-secondary);
  font-size: 0.875rem;
  font-family: var(--font);
}

.speed-sublabel {
  fill: var(--text-muted);
  font-size: 0.6875rem;
  font-family: var(--font);
}

.ranking-preview {
  width: 100%;
  max-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ranking-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.875rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-pos {
  font-weight: 700;
  width: 32px;
}

.ranking-item.gold .ranking-pos { color: #FFD700; }
.ranking-item.silver .ranking-pos { color: #C0C0C0; }
.ranking-item.bronze .ranking-pos { color: #CD7F32; }

.ranking-name {
  flex: 1;
  color: var(--text-secondary);
}

.ranking-time {
  font-weight: 600;
  color: var(--green);
}

/* ========================================
   SECURITY
   ======================================== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.security-card {
  text-align: center;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.security-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 32px var(--blue-glow);
  transform: translateY(-4px);
}

.security-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.security-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.security-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   AUDIENCE
   ======================================== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.audience-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.audience-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.audience-emoji {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.audience-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.audience-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 107, 0, 0.08) 0%, transparent 60%);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 24px var(--accent-glow));
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Store Badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  cursor: pointer;
}

.store-badge:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.store-badge-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.store-badge-icon {
  font-size: 1.75rem;
  color: var(--text-primary);
}

.store-badge-text {
  text-align: left;
}

.store-badge-small {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 500;
}

.store-badge-big {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
}

.coming-soon {
  opacity: 0.5;
  cursor: default;
}

.coming-soon:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

.coming-soon-label {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--text-muted);
  color: var(--bg-primary);
}

.btn-tester-cta {
  display: inline-flex;
}

/* ========================================
   MODAL – App em fase de testes
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.is-open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.modal-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.modal-text {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-actions .btn {
  justify-content: center;
}

.modal-cancel {
  background: transparent;
  cursor: pointer;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ========================================
   ANIMATIONS (Scroll-triggered)
   ======================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-left"] {
  transform: translateX(40px);
}

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate="fade-up"] {
  transform: translateY(30px);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

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

  .detail-grid,
  .detail-grid-reverse {
    grid-template-columns: 1fr;
    gap: 48px;
    direction: ltr;
  }

  .detail-content .section-title {
    text-align: center;
  }

  .detail-content .section-tag {
    display: block;
    text-align: center;
  }

  .detail-description {
    text-align: center;
  }

  .detail-visual {
    display: flex;
    justify-content: center;
  }

  .performance-metrics {
    justify-content: center;
  }

  .security-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 72px 0;
  }

  .container {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 12px 24px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 32px;
    height: 1px;
  }

  .phone-frame {
    width: 220px;
    height: 440px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .performance-metrics {
    flex-direction: column;
    gap: 12px;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-card-stack {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .detail-demo-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
    opacity: 1;
  }

  .detail-card-stack:hover .card-1,
  .detail-card-stack:hover .card-2 {
    transform: none;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .phone-frame {
    width: 180px;
    height: 360px;
  }

  .phone-notch {
    width: 80px;
    height: 20px;
    border-radius: 0 0 12px 12px;
  }
}
