/* ============================================
   SENTINEL-AI — Global Styles
   Dark theme | Blue Electric + Green Neon
   ============================================ */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1520;
  --bg-card: #131a2b;
  --bg-card-hover: #182236;
  --border: rgba(56, 189, 248, 0.1);
  --border-hover: rgba(56, 189, 248, 0.3);

  --blue: #38bdf8;
  --blue-dim: #1e6e9e;
  --blue-glow: rgba(56, 189, 248, 0.4);
  --green: #22ee88;
  --green-dim: #12a85a;
  --green-glow: rgba(34, 238, 136, 0.4);
  --cyan: #06d6a0;
  --purple: #a78bfa;
  
  --text-primary: #f0f6fc;
  --text-secondary: #8b9dc3;
  --text-muted: #5a6a8a;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

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

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

.accent {
  color: var(--green);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px var(--blue-glow), 0 0 60px rgba(56, 189, 248, 0.1); }
  50% { box-shadow: 0 0 50px var(--blue-glow), 0 0 100px rgba(56, 189, 248, 0.2); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.8s; }

/* AOS - Animate on Scroll (via JS) */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 14, 23, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 8px;
}

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

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 60px;
  overflow: hidden;
  text-align: center;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(34, 238, 136, 0.06) 0%, transparent 50%);
  animation: rotate-slow 120s linear infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue);
  background: rgba(56, 189, 248, 0.05);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue) 50%, var(--green) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s ease forwards, shimmer 6s ease-in-out infinite;
  animation-delay: 0.15s;
  opacity: 0;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-desc strong {
  color: var(--text-primary);
}

.hero-desc em {
  color: var(--green);
  font-style: normal;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px var(--blue-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--blue-glow);
}

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

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero Device */
.hero-device {
  position: relative;
  display: flex;
  justify-content: center;
}

.device-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.device-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.device-logo {
  width: 240px;
  height: auto;
  filter: drop-shadow(0 0 25px var(--blue-glow));
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.5rem;
  animation: bounce-down 2s ease-in-out infinite;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(56, 189, 248, 0.05);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
}

/* ===== COS'E SECTION ===== */
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.what-lead {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.what-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.what-text strong {
  color: var(--text-primary);
}

.what-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(34, 238, 136, 0.05));
  border: 1px solid var(--border-hover);
  margin-top: 24px;
}

.what-callout i {
  font-size: 1.6rem;
  color: var(--green);
}

.what-callout span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Feature Ring Visual */
.feature-ring {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto;
}

.ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px var(--blue-glow);
  z-index: 2;
}

.ring-logo {
  width: 60px;
  filter: drop-shadow(0 0 10px var(--blue-glow));
}

.ring-item {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateY(-140px) rotate(calc(var(--i) * -60deg));
  transition: var(--transition);
}

.ring-item:hover {
  border-color: var(--blue);
  box-shadow: 0 0 20px var(--blue-glow);
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateY(-140px) rotate(calc(var(--i) * -60deg)) scale(1.15);
}

.ring-item i {
  font-size: 1.1rem;
  color: var(--blue);
}

.ring-item span {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== PERCHE DIVERSO ===== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.diff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: 0;
  transition: var(--transition);
}

.diff-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.diff-card:hover::before {
  opacity: 1;
}

.diff-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(34, 238, 136, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  color: var(--blue);
}

.diff-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.diff-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.diff-card strong {
  color: var(--text-primary);
}

.diff-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(34, 238, 136, 0.08);
  border-radius: 50px;
  border: 1px solid rgba(34, 238, 136, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== COME FUNZIONA ===== */
.steps-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.steps-line {
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--green));
  opacity: 0.3;
}

.step {
  display: flex;
  gap: 28px;
  margin-bottom: 48px;
  position: relative;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 30px var(--blue-glow);
}

.step-content {
  flex: 1;
  padding-top: 8px;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--blue);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.step p strong {
  color: var(--green);
}

/* ===== PER CHI ===== */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.who-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
}

.who-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.who-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(34, 238, 136, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 20px;
}

.who-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.who-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.who-card strong {
  color: var(--text-primary);
}

.who-list {
  list-style: none;
}

.who-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(56, 189, 248, 0.05);
}

.who-list li:first-child {
  border-top: none;
}

.who-list li i {
  color: var(--green);
  font-size: 0.75rem;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.pricing-featured {
  border-color: var(--blue);
  background: linear-gradient(to bottom, rgba(56, 189, 248, 0.06), var(--bg-card));
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.1);
  transform: scale(1.04);
}

.pricing-featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--bg-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-ideal {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(56, 189, 248, 0.04);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li i.fa-check {
  color: var(--green);
  font-size: 0.75rem;
}

.pricing-features li i.fa-xmark {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.pricing-note {
  text-align: center;
  margin-top: 40px;
  padding: 20px 28px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.pricing-note i {
  color: var(--blue);
  margin-right: 6px;
}

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

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.tech-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.tech-icon {
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 12px;
}

.tech-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
}

.tech-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== SPECIFICHE ===== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}

.spec-item:hover {
  border-color: var(--border-hover);
}

.spec-icon {
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.spec-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

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

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

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

.footer-logo {
  width: 60px;
  filter: drop-shadow(0 0 10px var(--blue-glow));
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 0.8rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.footer-links a, .footer-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-contact a {
  color: var(--blue);
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .what-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-ring {
    width: 280px;
    height: 280px;
  }
  .ring-item {
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateY(-115px) rotate(calc(var(--i) * -60deg));
  }
  .ring-item:hover {
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateY(-115px) rotate(calc(var(--i) * -60deg)) scale(1.15);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

  .section {
    padding: 60px 0;
  }

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

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-featured {
    transform: none;
  }
  
  .pricing-featured:hover {
    transform: translateY(-4px);
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .steps-line {
    left: 20px;
  }

  .step-number {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.1rem;
  }

  .step {
    gap: 18px;
  }

  .feature-ring {
    width: 240px;
    height: 240px;
  }

  .ring-center {
    width: 80px;
    height: 80px;
  }

  .ring-logo {
    width: 45px;
  }

  .ring-item {
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateY(-95px) rotate(calc(var(--i) * -60deg));
  }

  .ring-item:hover {
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateY(-95px) rotate(calc(var(--i) * -60deg)) scale(1.1);
  }

  .ring-item i {
    font-size: 0.9rem;
  }

  .ring-item span {
    font-size: 0.5rem;
  }
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }

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

  .device-card {
    padding: 16px 20px;
  }

  .device-logo {
    width: 180px;
  }
}

/* ===== SECRET LOCK ===== */
.secret-lock {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-size: 11px;
  color: #1a1f2e;
  cursor: pointer;
  transition: color 0.4s ease, text-shadow 0.4s ease;
  user-select: none;
  line-height: 1;
}

.secret-lock:hover {
  color: #2a3448;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.15);
}

.footer-bottom {
  position: relative;
}

/* ===== LOGIN MODAL ===== */
.login-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.login-overlay.show {
  display: flex;
}

.login-modal {
  background: #080c14;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  width: 340px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.08), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.login-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #4a5a7a;
  cursor: pointer;
  font-size: 14px;
  z-index: 2;
  transition: color 0.2s;
}

.login-close:hover {
  color: #f43f5e;
}

.login-terminal-bar {
  background: #0a0f1a;
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  position: relative;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #f43f5e; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #22ee88; }

.login-body {
  padding: 28px 24px;
}

.login-field {
  margin-bottom: 16px;
}

.login-field label {
  display: block;
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
  font-size: 10px;
  color: #4a5a7a;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.login-field input {
  width: 100%;
  background: #0a0f1a;
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: #e2e8f0;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.login-field input:focus {
  border-color: rgba(56, 189, 248, 0.5);
}

.login-error {
  color: #f43f5e;
  font-size: 12px;
  min-height: 18px;
  margin-bottom: 8px;
  font-weight: 500;
}

.login-btn {
  width: 100%;
  background: linear-gradient(135deg, #38bdf8, #06d6a0);
  color: #080c14;
  border: none;
  padding: 11px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.login-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-dim);
}

/* ===== SELECTION ===== */
::selection {
  background: var(--blue);
  color: var(--bg-primary);
}
