/* ==========================================================================
   NATKVM - Minimalist Clean Light Theme (Apple / Stripe Aesthetic)
   Color Palette: Red & White Brand Scheme
   ========================================================================== */

:root {
  /* Canvas & Backgrounds */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  
  /* Brand Red Scheme */
  --primary-red: #dc2626;
  --primary-red-hover: #b91c1c;
  --primary-red-light: #fee2e2;
  --primary-red-subtle: rgba(220, 38, 38, 0.06);
  --primary-red-border: rgba(220, 38, 38, 0.2);

  /* Typography / Slates */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Borders & Dividers */
  --border-card: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #dc2626;

  /* Functional Accents */
  --accent-green: #16a34a;
  --accent-green-bg: #dcfce7;
  --accent-amber: #d97706;
  --accent-amber-bg: #fef3c7;

  /* Elevations / Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-red: 0 4px 16px rgba(220, 38, 38, 0.25);
  --shadow-red-lg: 0 8px 24px rgba(220, 38, 38, 0.32);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle background accent */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle at 50% -10%, rgba(220, 38, 38, 0.05) 0%, rgba(248, 250, 252, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

button, input, select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Announcement Bar (Red Brand Accent)
   ========================================================================== */
.announcement-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-card);
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-body);
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.announcement-tag {
  background: var(--primary-red-light);
  color: var(--primary-red);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.announcement-bar a {
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.25rem;
}

.announcement-bar a:hover {
  color: var(--primary-red-hover);
}

/* ==========================================================================
   Header Navigation (Stripe / Apple Style)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  z-index: 100;
}

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

.brand-logo-wrap {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--primary-red);
}

.nav-link.active {
  color: var(--primary-red);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 110;
}

.dropdown-header-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-red);
  padding: 0.4rem 0.85rem 0.2rem;
}

.dropdown-menu.dropdown-wide {
  min-width: 290px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-subtle);
  color: var(--primary-red);
  transform: translateX(3px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.45rem;
  cursor: pointer;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.42rem 0.95rem;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* Signature Red Primary Button */
.btn-primary {
  background-color: var(--primary-red);
  color: #ffffff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-red-lg);
}

.btn-secondary {
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: #cbd5e1;
  color: var(--primary-red);
  transform: translateY(-1px);
}

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

.btn-outline-red:hover {
  background: var(--primary-red);
  color: #ffffff;
}

/* ==========================================================================
   Hero Section (Clean, Streamlined, Apple/Stripe Style)
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.5rem;
}

.hero-pill-badge .dot-live {
  width: 8px;
  height: 8px;
  background-color: var(--primary-red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-title .highlight-red {
  color: var(--primary-red);
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Hero Quick Location Selector Bar (Interactive Streamlined Bar) */
.hero-location-bar {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  max-width: 980px;
  margin: 0 auto;
}

.hero-loc-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.loc-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.loc-pill:hover,
.loc-pill.active {
  background: #ffffff;
  border-color: var(--primary-red);
  color: var(--primary-red);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.loc-pill .loc-ping {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Section Headers (Apple Clean Style)
   ========================================================================== */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-white {
  background-color: #ffffff;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Pricing Section (Crisp White Cards, High-Converting)
   ========================================================================== */
.pricing-tabs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.pricing-switch-pills {
  display: inline-flex;
  background: var(--bg-muted);
  padding: 0.3rem;
  border-radius: var(--radius-full);
}

.type-btn,
.virt-switch-btn {
  padding: 0.55rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-body);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.type-btn.active,
.virt-switch-btn.active {
  background: #ffffff;
  color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.billing-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.save-badge {
  background: var(--primary-red-light);
  color: var(--primary-red);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.plan-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

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

.plan-card.popular {
  border: 2px solid var(--primary-red);
  box-shadow: var(--shadow-md);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-red);
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.plan-pricing-box {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-card);
}

.price-strike {
  font-size: 0.95rem;
  color: var(--text-subtle);
  text-decoration: line-through;
  margin-right: 0.4rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-specs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-body);
}

.spec-item svg {
  color: var(--primary-red);
  flex-shrink: 0;
}

.spec-item strong {
  color: var(--text-main);
}

/* ==========================================================================
   Featured Locations (Singapore & Tokyo Spotlight)
   ========================================================================== */
.spotlight-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.spotlight-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

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

.spotlight-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary-red-light);
  color: var(--primary-red);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.spotlight-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.spotlight-flag {
  font-size: 2.5rem;
  line-height: 1;
}

.spotlight-head h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.spotlight-head p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spotlight-metrics {
  background: var(--bg-body);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.metric-item .metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

.metric-item .metric-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.spotlight-card p.desc {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.spotlight-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.spotlight-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-red);
}

.spotlight-price small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* All other locations compact pills grid */
.other-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.other-loc-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.other-loc-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.loc-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.loc-title-group h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.loc-title-group span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   "How NAT VPS Works" Visual Architecture (Simple 3-Step Clean Cards)
   ========================================================================== */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.arch-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.arch-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.arch-num {
  width: 38px;
  height: 38px;
  background: var(--primary-red);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-red);
}

.arch-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.arch-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.arch-code {
  margin-top: 1rem;
  background: var(--bg-body);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary-red);
}

/* ==========================================================================
   Interactive Port Forwarding Calculator
   ========================================================================== */
.calc-widget-wrap {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calc-form-main {
  grid-template-columns: 2fr auto;
}

.calc-btn-wrap {
  align-self: flex-start;
  padding-top: 1.65rem;
}

.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.input-field {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition);
}

.input-field:focus {
  border-color: var(--primary-red);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.calc-result-box {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.calc-stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.calc-stat-item {
  background: var(--bg-body);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.calc-stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.calc-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1.1;
}

.copy-cmd-bar {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.copy-cmd-bar code {
  color: #38bdf8;
  word-break: break-all;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff;
}

.port-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.port-chip {
  background: var(--bg-body);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.port-chip:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background: #ffffff;
}

.port-chip.ssh-chip {
  background: var(--primary-red-light);
  border-color: var(--primary-red-border);
  color: var(--primary-red);
  font-weight: 700;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-red-light);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.feature-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SEO FAQ Accordion (Clean White Style)
   ========================================================================== */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary-red);
}

.faq-question {
  width: 100%;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
  color: var(--primary-red);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  padding: 0 1.35rem;
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-card);
  padding: 4.5rem 0 2rem;
  color: var(--text-muted);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0 1.25rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

.footer-links a:hover {
  color: var(--primary-red);
  transform: translateX(2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Looking Glass & Ping Latency Checker
   ========================================================================== */
.lg-container {
  max-width: 1140px;
  margin: 0 auto;
}

.lg-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
  box-shadow: var(--shadow-xs);
}

.lg-table-wrap {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.lg-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  table-layout: auto;
}

.lg-table th {
  background: var(--bg-body);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.6px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
}

.lg-table td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--text-main);
}

.lg-table th:last-child,
.lg-table td:last-child {
  text-align: right;
}

.lg-row:hover {
  background-color: var(--bg-subtle);
}

.lg-row:last-child td {
  border-bottom: none;
}

.badge-kvm,
.badge-lxc {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-kvm {
  background: var(--primary-red-light);
  color: var(--primary-red);
}

.badge-lxc {
  background: #e0f2fe;
  color: #0284c7;
}

.ip-cell-wrap,
.latency-cell-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.badge-na {
  font-size: 0.76rem;
  color: var(--text-muted);
  background: var(--bg-body);
  border: 1px solid var(--border-card);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}

.ip-code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--bg-body);
  border: 1px solid var(--border-card);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  white-space: nowrap;
}

.btn-copy-ip {
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.45rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-copy-ip:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background: #ffffff;
}

.ping-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--accent-green-bg);
  color: var(--accent-green);
  transition: var(--transition);
  white-space: nowrap;
}

.ping-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: pingPulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pingPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-ping-row {
  background: var(--bg-body);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-ping-row:hover {
  background: #ffffff;
  border-color: var(--primary-red);
  color: var(--primary-red);
  box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization System
   ========================================================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .arch-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  /* Prevent iOS zoom on input focus */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Header & Navigation Drawer */
  .site-header {
    height: 64px;
  }

  .nav-container {
    height: 64px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-sm);
    -webkit-tap-highlight-color: transparent;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border-bottom: 2px solid var(--border-card);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.25rem 2.5rem;
    gap: 0.35rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu > .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-menu > .nav-link:active {
    background: var(--bg-subtle);
    color: var(--primary-red);
  }

  /* Mobile Accordion Dropdowns */
  .nav-dropdown {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-dropdown > .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    min-height: 48px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-dropdown > .nav-link svg {
    transition: transform 0.25s ease;
    color: var(--text-muted);
  }

  .nav-dropdown.mobile-open > .nav-link {
    color: var(--primary-red);
  }

  .nav-dropdown.mobile-open > .nav-link svg {
    transform: rotate(180deg);
    color: var(--primary-red);
  }

  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border-light);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    margin: 0.25rem 0 0.75rem;
    padding: 0.5rem;
    width: 100%;
    min-width: 100%;
  }

  .nav-dropdown.mobile-open .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    animation: fadeInAccordion 0.2s ease-out;
  }

  @keyframes fadeInAccordion {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .dropdown-header-tag {
    padding: 0.5rem 0.75rem 0.25rem;
  }

  .dropdown-item {
    padding: 0.75rem;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    -webkit-tap-highlight-color: transparent;
  }

  .dropdown-item:active {
    background: #ffffff;
    color: var(--primary-red);
  }

  /* Hero Section */
  .hero-section {
    padding: 3.25rem 0 2rem;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 2rem;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 340px;
    min-height: 48px;
    font-size: 1rem;
  }

  .hero-location-bar {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-lg);
  }

  .loc-pill {
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    min-height: 38px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Pricing Cards Grid */
  .pricing-tabs-wrap {
    margin-bottom: 1.75rem;
  }

  .pricing-switch-pills {
    width: 100%;
    max-width: 360px;
    display: flex;
  }

  .virt-switch-btn,
  .type-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    min-height: 42px;
    -webkit-tap-highlight-color: transparent;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.25rem;
  }

  .plan-card {
    padding: 1.5rem 1.25rem;
  }

  .plan-btn {
    min-height: 48px;
    font-size: 1rem;
  }

  /* NAT Port Calculator */
  .calc-widget-wrap {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-lg);
  }

  .calc-form,
  .calc-form-main {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .calc-btn-wrap {
    padding-top: 0;
    width: 100%;
  }

  .calc-form .btn,
  .calc-btn-wrap .btn {
    min-height: 48px;
    font-size: 1rem;
    width: 100%;
  }

  .calc-stat-cards {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .calc-stat-item {
    padding: 0.85rem 1rem;
  }

  .calc-stat-num {
    font-size: 1.35rem;
  }

  .copy-cmd-bar {
    padding: 0.85rem;
  }

  .port-chips-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.4rem;
  }

  /* Features & Architecture */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.35rem;
  }

  /* Looking Glass Responsive View */
  .lg-actions-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 0.85rem;
  }

  .lg-actions-bar > div:first-child {
    flex-direction: column;
    width: 100%;
  }

  .lg-actions-bar .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.98rem;
    justify-content: center;
  }

  #pingStatusSummary {
    text-align: center;
  }

  /* Hide wide table on mobile and show native touch-optimized cards */
  .lg-table-wrap {
    display: none;
  }

  .lg-mobile-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }

  .lg-mobile-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
  }

  .lg-mcard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.75rem;
  }

  .lg-mcard-loc {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .lg-mcard-flag {
    font-size: 1.75rem;
    line-height: 1;
  }

  .lg-mcard-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .lg-mcard-city {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1px;
  }

  .lg-mcard-ping-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .lg-mcard-ips {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border-card);
  }

  .lg-mcard-ip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .lg-mcard-ip-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    width: 38px;
    flex-shrink: 0;
  }

  .lg-mcard-ip-code {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
  }

  .lg-mcard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .lg-mcard-actions .btn {
    min-height: 42px;
    font-size: 0.85rem;
    padding: 0.45rem 0.65rem;
    justify-content: center;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

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

/* Extra Small Phones (max-width: 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  /* Announcement Bar */
  .announcement-bar {
    font-size: 0.76rem;
    padding: 0.45rem 0.75rem;
    flex-wrap: wrap;
    line-height: 1.35;
  }

  .announcement-tag {
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
  }

  /* Header compact mode: hide Support btn to ensure single-line header */
  .nav-actions .btn-secondary {
    display: none;
  }

  .brand-logo {
    height: 32px;
  }

  .nav-actions .btn-primary {
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    min-height: 38px;
  }

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

  .calc-stat-cards {
    grid-template-columns: 1fr;
  }

  .copy-cmd-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    text-align: center;
  }

  .copy-cmd-bar .copy-btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }

  .lg-mcard-actions {
    grid-template-columns: 1fr;
  }
}

