:root {
  --bg: #0a0e17;
  --bg-soft: #111827;
  --bg-deeper: #080c14;
  --surface: rgba(255,255,255,0.06);
  --surface-strong: rgba(255,255,255,0.10);
  --surface-glass: rgba(255,255,255,0.075);
  --border: rgba(124,156,255,0.22);
  --border-soft: rgba(124,156,255,0.13);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent: #7c9cff;
  --accent-light: #a3b8ff;
  --accent-2: #6ee7b7;
  --gradient-primary: linear-gradient(135deg, #7c9cff 0%, #6ee7b7 100%);
  --gradient-bg: linear-gradient(180deg, #0a0e17 0%, #0f1629 75%, #111827 100%);
  --glow: 0 0 35px rgba(124,156,255,0.16);
  --shadow-lg: 0 25px 70px rgba(0,0,0,0.42);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

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

html {
  height: 100%;
  background: var(--gradient-bg);
  background-attachment: fixed;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: var(--text-primary);
  line-height: 1.68;
  overflow-x: hidden;
  position: relative;
  min-height: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  max-width: 100vw;
  width: 100vw;
}

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

/* Spider Web Canvas – full-screen, behind content but visible through dark sections */
#web-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-color: transparent;
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  transition: all 0.3s ease;
  background: rgba(10,14,23,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  isolation: isolate;
  -webkit-transform: translateZ(0);
  padding-top: env(safe-area-inset-top, 0px);
  overflow: hidden;
  width: 100vw;
}

header.scrolled {
  background: rgba(10,14,23,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

nav {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.logo {
  font-size: 2.05rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.nav-links {
  display: flex;
  gap: 44px;
  font-weight: 500;
  font-size: 1.05rem;
}

.nav-links a {
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-primary);
  transition: width 0.4s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

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

.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 100vw);
  height: 800px;
  background: radial-gradient(circle, rgba(124,156,255,0.09) 0%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: clamp(2.9rem, 7.2vw, 4.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #f8fafc 0%, #d1deff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.18rem, 2.9vw, 1.38rem);
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 52px;
}

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

.btn-primary {
  padding: 16px 42px;
  background: var(--gradient-primary);
  color: #020617;
  font-weight: 700;
  font-size: 1.08rem;
  border-radius: 14px;
  box-shadow: var(--glow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 35px 80px rgba(124,156,255,0.3);
}

.btn-secondary {
  padding: 16px 42px;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.08rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.35s ease;
  display: inline-block;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.13);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.trust-badges {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-badges span::before {
  content: "✓";
  color: var(--accent-2);
  font-weight: bold;
  font-size: 1.3rem;
}

section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease-out;
  position: relative;
  overflow: hidden;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section:not(.hero) {
  padding: 50px 0 60px;
}

.section-title {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 80px;
}

.section-title h2 {
  font-size: clamp(2.5rem, 5.2vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #f8fafc, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title p {
  font-size: 1.22rem;
  color: var(--text-secondary);
}

.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 10px 40px rgba(0,0,0,0.28);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  margin: 0;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.09);
  border-color: rgba(124,156,255,0.4);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 36px;
  overflow: hidden;
  padding-top: 20px; /* Prevent hover cut-off */
}

.feature-card {
  padding: 44px 40px;
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.process-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.process-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 35px;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  border-radius: 2px;
  opacity: 0.42;
  z-index: 0;
}

.process-item {
  position: relative;
  margin-bottom: 110px;
  padding-left: 95px;
  z-index: 1;
}

.process-item:last-child {
  margin-bottom: 0;
}

.process-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 74px;
  height: 74px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.02rem;
  font-weight: 700;
  color: #020617;
  box-shadow: var(--glow), 0 0 0 8px rgba(124,156,255,0.16);
  z-index: 2;
}

.process-card {
  padding: 40px 44px;
}

.process-card h3 {
  font-size: 1.9rem;
  margin-bottom: 16px;
}

.process-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Improved Case Studies */
.case-studies-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  padding-top: 20px; /* Prevent hover cut-off */
  align-items: start;
}

.case-card {
  padding: 40px 32px; /* Made more compact */
  text-align: left;
  height: 100%;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px; /* Reduced */
}

.case-header h3 {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
}

.case-icon {
  font-size: 2.5rem;
}

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Reduced gap for compactness */
  margin: 20px 0; /* Reduced */
}

.metric {
  flex: 1 1 120px;
}

.metric .value {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.metric .label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.case-result {
  margin-bottom: 20px; /* Reduced */
}

.result-block {
  margin-bottom: 16px; /* Reduced for compactness */
}

.result-block:last-child {
  margin-bottom: 0;
}

.result-block strong {
  display: block;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.result-block p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  margin: 0;
  line-height: 1.5; /* Added for even readability */
}

.case-quote {
  border-top: 1px solid var(--border-soft);
  padding-top: 20px; /* Reduced */
  font-style: italic;
}

.case-quote blockquote {
  font-size: 1.1rem; /* Slightly smaller for compactness */
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.45;
}

.case-quote cite {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  gap: 44px;
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  padding-top: 20px; /* Prevent hover cut-off */
}

.price-card {
  padding: 52px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.price-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(124,156,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

.price-card h3 {
  font-size: 1.95rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}

.price-main .from {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.price-main .amount {
  font-size: 3.2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-card p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  margin-bottom: 18px;
}

.cta-section {
  background: var(--gradient-primary);
  border-radius: 44px;
  padding: 56px 60px;
  text-align: center;
  margin: 0 auto;
  max-width: 1200px;
  color: #020617;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.20) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(2.3rem, 5.2vw, 3.1rem);
  font-weight: 900;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.22rem;
  max-width: 760px;
  margin: 0 auto 36px;
}

.cta-button {
  display: inline-block;
  padding: 18px 44px;
  background: #020617;
  color: #f8fafc;
  font-size: 1.22rem;
  font-weight: 700;
  border-radius: 14px;
  transition: all 0.4s ease;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-button:hover {
  transform: translateY(-7px) scale(1.035);
  box-shadow: 0 35px 80px rgba(0,0,0,0.4);
}

footer {
  padding: 60px 0 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.97rem;
  overflow: hidden;
}

/* Tablet (iPad, Android tablets) */
@media (max-width: 1024px) and (min-width: 769px) {
  .container { padding: 0 32px; }
  .hero { padding: 100px 0 80px; }
  .features-grid, .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
  .case-studies-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { gap: 32px; font-size: 1rem; }
}

/* Mobile Landscape (iPhone landscape, small tablets) */
@media (max-width: 1024px) {
  .hero { padding: 100px 0 80px; }
}

/* Small Mobile (iPhone SE, Android small) */
@media (min-width: 390px) and (max-width: 430px) {
  .container { padding: 0 24px; }
  .features-grid, .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
  .case-studies-wrapper { grid-template-columns: 1fr; }
  .cta-buttons { gap: 16px; }
  .btn-primary, .btn-secondary { padding: 14px 36px; font-size: 1rem; }
  .trust-badges { gap: 32px; font-size: 0.95rem; }
  .hero::before { width: min(600px, 100vw); height: 600px; }
  nav { padding: 0 24px; }
}

/* General Mobile */
@media (max-width: 768px) {
  html {
    background-attachment: scroll;
    background: radial-gradient(ellipse at center, var(--bg) 0%, var(--bg-soft) 100%);
  }
  body {
    background-attachment: scroll;
    min-height: 100dvh;
  }
  .hero { padding: 90px 0 60px; }
  section:not(.hero) { padding: 50px 0 45px; }
  .process-item { padding-left: 80px; margin-bottom: 80px; }
  .process-number { width: 64px; height: 64px; font-size: 0.98rem; }
  .price-main { flex-direction: column; align-items: center; gap: 8px; }
  .price-main .amount { font-size: 2.8rem; }
  .cta-section { padding: 48px 40px; }
  .hero::before { width: min(400px, 100vw); height: 400px; top: -50px; }
  .case-card { padding: 40px 32px; }
  .case-metrics { justify-content: center; }
  .result-block p { font-size: 1rem; }
}

/* Landscape Mobile */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding: 80px 0 60px; min-height: 100dvh; }
  .container { padding: 0 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  section:not(.hero) { padding: 40px 0; }
  .hero::before { width: min(100vw, 500px); height: 500px; }
  nav { padding: 12px 20px; }
  .logo { font-size: 1.8rem; }
}

/* Extra Small Mobile */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .cta-buttons { flex-direction: column; gap: 18px; }
  .btn-primary, .btn-secondary { width: 100%; padding: 16px 36px; }
  .trust-badges { flex-direction: column; gap: 16px; }
  .features-grid, .pricing-grid, .case-studies-wrapper { grid-template-columns: 1fr; }
  .process-container::before { left: 32px; }
  .process-item { padding-left: 70px; margin-bottom: 60px; }
  .process-number { width: 58px; height: 58px; font-size: 0.92rem; }
  .cta-section {
    padding: 40px 20px;
    margin: 0 20px; /* Added margin left and right for small devices */
    border-radius: 30px; /* Adjusted for margin */
  }
  .cta-button {
    padding: 16px 32px;
    font-size: 1.1rem;
  }
  .case-header { flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
  .case-icon { align-self: flex-end; }
  .case-metrics { flex-direction: column; align-items: center; gap: 16px; }
  .metric { text-align: center; flex: none; }
  nav { padding: 0 20px; }
}