*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #070c17;
  --bg-alt: #0a1225;
  --bg-elevated: #0f1a2e;
  --bg-card: #111d34;
  --bg-card-hover: #162544;
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --primary-dim: rgba(37, 99, 235, 0.3);
  --primary-glow: rgba(37, 99, 235, 0.2);
  --primary-subtle: rgba(37, 99, 235, 0.08);
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.3);
  --accent-subtle: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --text: #eef2f8;
  --text-secondary: #94a3b8;
  --text-dim: #475569;
  --border: rgba(37, 99, 235, 0.12);
  --border-hover: rgba(37, 99, 235, 0.3);
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  --font: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
}

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

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

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-dim); border-radius: 2px; }

/* === Security Hex Grid Background === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px) 0 0 / 48px 48px;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  top: -30%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* === Header === */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.8rem 2rem;
  background: rgba(7, 12, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  position: relative;
  flex-shrink: 0;
}
.header-shield::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary-glow);
}

.logo { display: inline-flex; font-size: 1.05rem; font-weight: 700; letter-spacing: 1px; }
.logo .char {
  color: var(--text-secondary);
  animation: char-glow 3.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
.logo .char-space { width: 0.35em; }
@keyframes char-glow {
  0%, 70%, 100% { color: var(--text-secondary); text-shadow: none; }
  10%, 25% { color: #fff; text-shadow: 0 0 8px var(--primary), 0 0 20px var(--primary), 0 0 40px rgba(37,99,235,0.3); }
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.3rem 1rem;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.75rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* === Globe tooltip === */
#globe-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  background: rgba(7, 12, 23, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--primary-dim);
  padding: 4px 12px;
  font-size: 0.7rem;
  color: var(--primary-light);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  font-family: 'SF Mono', 'Consolas', monospace;
  letter-spacing: 0.5px;
}
#globe-tooltip.visible { opacity: 1; }

/* === Sections === */
.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(37,99,235,0.015) 60px, rgba(37,99,235,0.015) 61px),
              repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(37,99,235,0.015) 60px, rgba(37,99,235,0.015) 61px);
  pointer-events: none;
  z-index: 0;
}


/* Scanning line */
@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
#globe-container .scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.15), transparent);
  animation: scan-line 8s linear infinite;
  pointer-events: none;
  z-index: 5;
}

#globe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: grab;
}
#globe-container:active { cursor: grabbing; }

#map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* === Content === */
.content {
  position: relative;
  z-index: 2;
  padding: 2rem 3rem;
  max-width: 520px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.content.visible { opacity: 1; transform: translateY(0); }

.left-content {
  margin-right: auto;
  padding-left: 5rem;
  transform: translateX(-40px);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.left-content.visible { transform: translateX(0); opacity: 1; }

.right-content {
  margin-left: auto;
  padding-right: 5rem;
  transform: translateX(40px);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.right-content.visible { transform: translateX(0); opacity: 1; }

.center-content {
  margin: 0 auto;
  text-align: center;
  max-width: 1200px;
  padding: 7rem 2rem 5rem;
}

h1 {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.5px;
}
h1 .highlight {
  background: linear-gradient(135deg, var(--primary), #818cf8, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 0.7rem;
  color: var(--primary-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}


/* === Text Rotator === */
.text-rotator {
  position: relative;
  min-height: 5.5em;
  overflow: hidden;
  margin-bottom: 1rem;
}
.rotator-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.rotator-item.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.rotator-item.leave-up {
  opacity: 0;
  transform: translateY(-100%);
}

/* === Feature items with shield icons === */
.features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.feature-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 22px;
  border: 1.5px solid var(--primary-dim);
  border-radius: 3px 3px 6px 6px;
  font-size: 0.5rem;
  color: var(--primary-light);
  flex-shrink: 0;
  position: relative;
  background: var(--primary-subtle);
}
.feature-shield::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--primary-dim);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 0.65rem;
  letter-spacing: 3px;
  z-index: 10;
  text-transform: uppercase;
  animation: scroll-pulse 2.5s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(-5px); }
}

/* === Pricing Cards === */
.pricing-cards {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: center;
  flex-wrap: nowrap;
}
.card {
  background: linear-gradient(180deg, rgba(17, 29, 52, 0.95), rgba(10, 18, 37, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  text-align: center;
  position: relative;
  transition: all 0.35s ease;
  flex: 0 0 210px;
}
.card::before {
  content: '';
  position: absolute;
  top: -1px; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-dim), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: var(--border-hover);
  background: linear-gradient(180deg, rgba(22, 37, 68, 0.95), rgba(17, 29, 52, 0.95));
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.card.featured {
  border-color: var(--accent-dim);
  background: linear-gradient(180deg, rgba(245,158,11,0.06), rgba(17, 29, 52, 0.95));
}
.card.featured::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}
.card.featured:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(245,158,11,0.15);
}
.card .badge {
  position: absolute;
  top: -1px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.15rem 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.card h2 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.8rem; letter-spacing: 0.5px; }
.price { margin-bottom: 0.2rem; }
.price .num { font-size: 1.9rem; font-weight: 700; color: #fff; letter-spacing: -1px; }
.price .unit { font-size: 0.7rem; color: var(--text-dim); margin-left: 2px; }
.plan-type { color: var(--accent); font-size: 0.7rem; margin-bottom: 0.3rem; letter-spacing: 1px; font-weight: 500; }
.card ul { list-style: none; margin-top: 1rem; }
.card ul li {
  padding: 0.35rem 0;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(37,99,235,0.06);
}
.card ul li:last-child { border-bottom: none; }
.btn-contact {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--primary-dim);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.25s;
  border-radius: var(--radius-sm);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.btn-contact:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* === Footer === */
.footer-section {
  min-height: auto;
  display: flex;
  align-items: flex-end;
  padding-top: 4rem;
}
.footer-section::after { content: none; }
.footer-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7,12,23,1) 40%);
  pointer-events: none;
  z-index: 0;
}
.footer-content {
  position: relative;
  z-index: 1;
  width: 100%;
  border-top: 1px solid var(--border);
  background: rgba(7,12,23,0.95);
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem 2rem;
  flex-wrap: wrap;
}
.footer-col { flex: 1; min-width: 200px; }
.footer-col h3 {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-col p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.footer-email { color: var(--primary) !important; margin-top: 0.5rem !important; }
.footer-qr { text-align: center; flex: 0 0 auto; }
.footer-qr img {
  width: 100px; height: 100px;
  border-radius: 4px; padding: 4px;
  background: #fff;
  border: 1px solid var(--border);
}
.footer-qr p { margin-top: 0.5rem; font-size: 0.72rem; color: var(--text-dim); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  text-align: center;
}
.footer-bottom p { font-size: 0.65rem; color: var(--text-dim); letter-spacing: 1px; }

/* === Progress bar === */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #818cf8, var(--primary-light));
  box-shadow: 0 0 12px var(--primary-glow);
  z-index: 1001;
  transition: width 0.1s ease;
}

/* === Section ambient backgrounds === */
#section1::before { background: repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(37,99,235,0.02) 60px, rgba(37,99,235,0.02) 61px), repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(37,99,235,0.02) 60px, rgba(37,99,235,0.02) 61px); }
#section2::before { background: repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(245,158,11,0.015) 60px, rgba(245,158,11,0.015) 61px), repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(245,158,11,0.015) 60px, rgba(245,158,11,0.015) 61px); }
#section3::before { background: repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(37,99,235,0.015) 60px, rgba(37,99,235,0.015) 61px), repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(37,99,235,0.015) 60px, rgba(37,99,235,0.015) 61px); }

/* === Responsive === */
@media (max-width: 900px) {
  #globe-container { width: 100%; height: 50vh; }
  #map-container { width: 100%; height: 40vh; }
  .section { flex-direction: column; justify-content: flex-end; }
  .left-content, .right-content { padding: 1.5rem; max-width: 100%; margin: 0; padding-top: 52vh; }
  .center-content { padding: 6rem 1.25rem 3rem; }
  h1 { font-size: 1.8rem; }
  .pricing-cards { flex-wrap: wrap; }
  .card { flex: 1 1 200px; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-col { min-width: auto; }
}

@media (max-width: 600px) {
  #header { padding: 0.6rem 1rem; }
  .pricing-cards { flex-wrap: wrap; }
  .card { flex: 1 1 100%; }
  .left-content, .right-content { padding-top: 48vh; padding-left: 1rem; padding-right: 1rem; }
  h1 { font-size: 1.4rem; }
  .footer-top { padding: 2rem 1rem; }
}
