/* ============================================
   PRIVATE CLOUD — Landing Page Styles
   Google Cloud-inspired Corporate Design
   ============================================ */

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

:root {
  /* Google Cloud inspired palette */
  --blue-50: #e8f0fe;
  --blue-100: #d2e3fc;
  --blue-200: #aecbfa;
  --blue-300: #8ab4f8;
  --blue-400: #669df6;
  --blue-500: #4285f4;
  --blue-600: #1a73e8;
  --blue-700: #1967d2;
  --blue-800: #185abc;
  --blue-900: #174ea6;

  --green-400: #5bb974;
  --green-500: #34a853;
  --green-600: #1e8e3e;

  --red-400: #ee675c;
  --red-500: #ea4335;

  --yellow-400: #fcc934;
  --yellow-500: #fbbc04;

  --gray-50: #f8f9fa;
  --gray-100: #f1f3f4;
  --gray-200: #e8eaed;
  --gray-300: #dadce0;
  --gray-400: #bdc1c6;
  --gray-500: #9aa0a6;
  --gray-600: #80868b;
  --gray-700: #5f6368;
  --gray-800: #3c4043;
  --gray-900: #202124;

  --white: #ffffff;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --body-bg: #f8f9fa;

  /* Typography */
  --font-family: 'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Google Sans Mono', 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: 120px 0;
  --container-max: 1200px;

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
  --shadow-md: 0 1px 3px 0 rgba(60, 64, 67, .3), 0 4px 8px 3px rgba(60, 64, 67, .15);
  --shadow-lg: 0 4px 8px 0 rgba(60, 64, 67, .3), 0 8px 16px 4px rgba(60, 64, 67, .15);
  --shadow-xl: 0 8px 16px 0 rgba(60, 64, 67, .3), 0 16px 32px 8px rgba(60, 64, 67, .15);

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --duration: 300ms;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--gray-800);
  background: var(--body-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
.section-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 18px;
  color: var(--gray-700);
  max-width: 600px;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400), var(--green-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--duration) var(--ease);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: white;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--duration) var(--ease);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-600);
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-600);
  color: white;
  box-shadow: 0 1px 3px rgba(26, 115, 232, .3);
}

.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 2px 8px rgba(26, 115, 232, .4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-600);
  padding: 10px 16px;
}

.btn-ghost:hover {
  background: var(--blue-50);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 1.5px solid var(--blue-200);
}

.btn-outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
}

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

.btn-white {
  background: white;
  color: var(--blue-600);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-white-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, .4);
}

.btn-white-outline:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .7);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--gray-200);
  gap: 8px;
}

.mobile-menu a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
}

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

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  background: var(--white);
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--blue-300);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--green-400);
  bottom: -200px;
  left: -150px;
  animation-delay: -7s;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: var(--yellow-400);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: .15;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(66, 133, 244, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 133, 244, .04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero .container {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-700);
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 24px;
  letter-spacing: -.02em;
}

.hero-desc {
  font-size: 20px;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
}

/* Hero Demo Card */
.hero-demo {
  max-width: 800px;
  margin: 60px auto 0;
  position: relative;
}

.demo-card {
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, .08);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.demo-dots span:nth-child(1) { background: #ee675c; }
.demo-dots span:nth-child(2) { background: #fcc934; }
.demo-dots span:nth-child(3) { background: #5bb974; }

.demo-title {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.demo-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-400);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.demo-live span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-400);
  animation: pulse 2s ease infinite;
}

.demo-body {
  padding: 24px;
}

.console-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.console-prompt {
  color: var(--blue-400);
  font-weight: 600;
  user-select: none;
  flex-shrink: 0;
}

.console-text {
  color: var(--gray-300);
}

.console-text .hl-blue { color: var(--blue-300); }
.console-text .hl-green { color: var(--green-400); }
.console-text .hl-yellow { color: var(--yellow-400); }
.console-text .hl-dim { color: var(--gray-500); }

.console-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(91, 185, 116, .1);
  border: 1px solid rgba(91, 185, 116, .2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--green-400);
  font-weight: 500;
}

.console-status-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}

/* ---------- FEATURES ---------- */
.features {
  padding: var(--section-pad);
  background: var(--body-bg);
}

.features .container {
  text-align: center;
}

.features .section-desc {
  margin: 0 auto 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

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

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

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--c, var(--blue-600));
  opacity: .12;
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.feature-icon svg {
  position: relative;
  z-index: 1;
  color: var(--c, var(--blue-600));
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.feature-icon-wrapper .icon-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--c, var(--blue-600));
  opacity: .12;
}

.feature-icon-wrapper svg {
  position: relative;
  z-index: 1;
  color: var(--c, var(--blue-600));
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ftag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 20%, transparent);
}

/* ---------- HOW IT WORKS ---------- */
.how {
  padding: var(--section-pad);
  background: var(--white);
}

.how .container {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}

.step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-50);
  border: 2px solid var(--blue-200);
  color: var(--blue-600);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
  transition: all var(--duration) var(--ease);
}

.step:hover .step-num {
  background: var(--blue-600);
  color: white;
  transform: scale(1.1);
}

.step-connector {
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 2px;
  background: var(--gray-200);
  z-index: 1;
}

.step:last-child .step-connector {
  display: none;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.step p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ---------- PLANS ---------- */
.plans {
  padding: var(--section-pad);
  background: var(--body-bg);
}

.plans .container {
  text-align: center;
}

.plans .section-desc {
  margin: 0 auto 64px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.plan-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.plan-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.plan-card.featured {
  border: 2px solid var(--blue-500);
  box-shadow: 0 0 0 4px var(--blue-50), var(--shadow-lg);
}

.plan-card.featured:hover {
  box-shadow: 0 0 0 4px var(--blue-50), var(--shadow-xl);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  width: fit-content;
}

.plan-badge.badge-starter {
  background: var(--blue-50);
  color: var(--blue-700);
}

.plan-badge.badge-pro {
  background: var(--blue-600);
  color: white;
}

.plan-badge.badge-enterprise {
  background: var(--gray-900);
  color: white;
}

.plan-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.6;
}

.plan-price {
  font-size: 48px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-500);
}

.plan-billing {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.plan-features {
  list-style: none;
  flex: 1;
  margin-bottom: 32px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
}

.plan-features li svg {
  width: 18px;
  height: 18px;
  color: var(--green-500);
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 8px 0 16px;
}

.plan-detail-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

.plan-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.plan-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plan-spec-label {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}

.plan-spec-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

/* ---------- ARCHITECTURE VISUAL ---------- */
.architecture {
  padding: var(--section-pad);
  background: var(--white);
}

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

.arch-text .section-desc {
  margin-bottom: 32px;
}

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

.arch-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}

.arch-list li:last-child {
  border-bottom: none;
}

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

.arch-list-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.arch-list-text p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Visual Diagram */
.arch-visual {
  position: relative;
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arch-layer {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  position: relative;
  transition: all var(--duration) var(--ease);
}

.arch-layer:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}

.arch-layer-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.arch-layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--duration) var(--ease);
}

.arch-item:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
  color: var(--blue-700);
}

.arch-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.arch-connector {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.arch-connector svg {
  color: var(--gray-400);
}

/* Layer color themes */
.arch-layer.layer-portal { border-left: 3px solid var(--blue-500); }
.arch-layer.layer-platform { border-left: 3px solid var(--green-500); }
.arch-layer.layer-automation { border-left: 3px solid var(--yellow-500); }
.arch-layer.layer-infra { border-left: 3px solid var(--gray-600); }

/* ---------- CTA ---------- */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  position: relative;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-500), transparent 70%);
  opacity: .2;
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.cta .container {
  position: relative;
  text-align: center;
}

.cta h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta p {
  font-size: 18px;
  color: var(--blue-200);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--gray-900);
  padding: 60px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand .nav-logo {
  color: white;
  margin-bottom: 12px;
}

.footer-brand .logo-icon {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  padding: 6px 0;
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-600);
}

.footer-bottom a {
  color: var(--blue-400);
  transition: color var(--duration) var(--ease);
}

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

/* ---------- TRUST / SECURITY ---------- */
.trust {
  padding: var(--section-pad);
  background: var(--body-bg);
}

.trust .container {
  text-align: center;
}

.trust .section-desc {
  margin: 0 auto 64px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.trust-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--duration) var(--ease);
}

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

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.trust-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.trust-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ---------- ANIMATIONS ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-stagger .animate-in:nth-child(1) { transition-delay: .05s; }
.animate-stagger .animate-in:nth-child(2) { transition-delay: .1s; }
.animate-stagger .animate-in:nth-child(3) { transition-delay: .15s; }
.animate-stagger .animate-in:nth-child(4) { transition-delay: .2s; }
.animate-stagger .animate-in:nth-child(5) { transition-delay: .25s; }
.animate-stagger .animate-in:nth-child(6) { transition-delay: .3s; }

/* Typing animation */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--blue-400);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Progress bar animation */
.progress-animate {
  width: 0;
  transition: width 1.5s var(--ease);
}

.progress-animate.visible {
  width: var(--target-width, 100%);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .features-grid,
  .plans-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .step-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-cta .btn {
    display: none;
  }

  .nav-cta {
    gap: 8px;
  }

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

  .hero {
    padding: 120px 0 60px;
  }

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

  .hero-desc {
    font-size: 17px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 22px;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

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

  .cta h2 {
    font-size: 28px;
  }

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

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

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .stat-divider {
    display: none;
  }

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

  .console-line {
    font-size: 11px;
  }
}

/* ---------- COMPARISON TABLE ---------- */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table thead th {
  padding: 16px 20px;
  background: var(--gray-50);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}

.comparison-table thead th:first-child {
  color: var(--gray-800);
}

.comparison-table thead th.col-featured {
  color: var(--blue-600);
  background: var(--blue-50);
}

.comparison-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.comparison-table tbody td:first-child {
  font-weight: 500;
  color: var(--gray-800);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: var(--green-500);
  font-weight: 700;
  font-size: 16px;
}

.comparison-table .dash {
  color: var(--gray-400);
}

/* ---------- SCROLL INDICATOR ---------- */
.scroll-indicator {
  position: fixed;
  top: 64px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--green-500));
  z-index: 1001;
  transition: width 50ms linear;
}

/* ---------- BODY TRANSITION (i18n) ---------- */
body {
  transition: opacity 150ms ease;
}

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  transition: all var(--duration) var(--ease);
}

.lang-btn:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
  background: var(--blue-50);
}

.lang-btn svg {
  flex-shrink: 0;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 200ms var(--ease);
  z-index: 1100;
  overflow: hidden;
}

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

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--duration) var(--ease);
  text-align: left;
}

.lang-option:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

.lang-option.active {
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 600;
}

.lang-option .lang-flag {
  font-size: 18px;
  line-height: 1;
}

/* Mobile language row */
.mobile-lang-row {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  justify-content: center;
}

.mobile-lang-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  transition: all var(--duration) var(--ease);
}

.mobile-lang-btn:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
}

.mobile-lang-btn.active {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

/* ---------- RTL SUPPORT (Arabic) ---------- */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] .features-grid,
html[dir="rtl"] .trust-grid {
  text-align: right;
}

html[dir="rtl"] .feature-tags {
  justify-content: flex-start;
}

html[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .comparison-table thead th {
  text-align: right;
}

html[dir="rtl"] .step-connector {
  left: auto;
  right: calc(50% + 36px);
}

html[dir="rtl"] .plan-features li {
  text-align: right;
}

html[dir="rtl"] .trust-card {
  text-align: right;
}

html[dir="rtl"] .console-line {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .demo-header {
  direction: ltr;
}

html[dir="rtl"] .hero-badge {
  direction: rtl;
}

html[dir="rtl"] .arrow-icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .cta-actions {
  direction: rtl;
}

html[dir="rtl"] .footer-inner {
  direction: rtl;
}

html[dir="rtl"] .footer-links div {
  text-align: right;
}

html[dir="rtl"] .mobile-menu a {
  text-align: right;
}

html[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .lang-option {
  text-align: right;
}

html[dir="rtl"] .scroll-indicator {
  left: auto;
  right: 0;
}

/* RTL responsive */
@media (max-width: 768px) {
  html[dir="rtl"] .footer-links div {
    text-align: right;
  }
}



