/* ===================================================================
   SHU DIGITAL — Built with soul. Driven by speed.
   Design System & Stylesheet
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Lilita+One&family=Syne:wght@700;800&display=swap');

:root {
  /* Color Palette - Active Light Theme (Default) */
  --bg-dark: #f3f5f8;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  
  --color-primary: #0052ff;       /* Electric Royal Blue */
  --color-primary-glow: rgba(0, 82, 255, 0.15);
  --color-secondary: #b8ff00;     /* Acid Lime Green */
  --color-accent: #003cc2;        /* Darker Royal Blue */
  --color-text-main: #0b0f19;     /* Deep charcoal/black */
  --color-text-muted: #475569;    /* Muted slate gray */
  --color-border: #0b0f19;        /* Solid contrast border */
  --color-border-hover: #0052ff;
  
  /* Pricing Card Specifics (Light Active Mode) */
  --bg-price-card: #ffffff;
  --bg-price-card-hit: #b8ff00; /* Center card gets acid lime green bg! */
  --color-price-title: #0b0f19; /* Bold solid title */
  --color-price-sub: #0052ff;
  --color-price-text: #0b0f19;
  --color-price-desc: #334155;
  --color-price-val: #0f172a;
  --color-price-star: #0052ff;
  --bg-price-btn: #0052ff;
  --border-price-btn: 2px solid #0b0f19;
  
  /* Fonts */
  --font-heading: 'Syne', 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --container-max-width: 1200px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--color-text-main);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(217, 70, 239, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.6);
}

/* Interactive Particle Canvas Background */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--color-border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.6);
  background: linear-gradient(135deg, #b55fe6 0%, #9063f7 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Header / Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header.scrolled {
  background: var(--bg-card);
  padding: 0.5rem 0;
}

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

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.logo-author {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.logo span {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  color: var(--color-primary); /* 'SHU' in solid Electric Blue */
}

.logo-dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-secondary); /* 'dot' in solid Acid Green */
  border-radius: 50%;
  display: inline-block;
  box-shadow: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

nav a:hover {
  color: var(--color-text-main);
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
}

.nav-cta {
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
}

#nav-cta-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8b5cf6 100%);
  color: #ffffff;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
  font-weight: 700;
  letter-spacing: 0.03em;
  animation: button-pulse-glow 2.5s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#nav-cta-btn:hover {
  background: linear-gradient(135deg, #b55fe6 0%, #9063f7 100%);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.8), 0 0 35px rgba(139, 92, 246, 0.4);
  transform: translateY(-1px) scale(1.04);
}

@keyframes button-pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
  }
  50% {
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.75), 0 0 32px rgba(139, 92, 246, 0.45);
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-main);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 6rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow-blob {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
  animation: pulse-glow 10s infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.5rem;
  display: inline-block;
  border: 2px solid var(--color-border);
  padding: 0.5rem 1.4rem;
  border-radius: 9999px;
  background: var(--color-primary);
  box-shadow: 3px 3px 0px var(--color-border);
  font-family: var(--font-heading);
}

.hero-title {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  min-height: 6rem; /* Prevent layout shifting during typing */
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}

.typewriter-cursor {
  color: var(--color-primary);
  font-weight: 800;
  margin-left: 4px;
  animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
  from, to { color: transparent; opacity: 0; }
  50% { color: var(--color-primary); opacity: 1; }
}

.hero-manifesto {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-main);
  margin: 2rem 0;
  text-shadow: none;
}

.hero-manifesto-sub {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

.hero-usp {
  max-width: 600px;
  margin: 0 auto 3rem auto;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Product Matrix Section */
.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

#tariffs-title {
  animation: title-glow-pulse 2.5s infinite ease-in-out;
  display: block;
  transform-origin: center;
}

@keyframes title-glow-pulse {
  0%, 100% {
    transform: scale(1);
    color: var(--color-primary);
  }
  50% {
    transform: scale(1.03);
    color: var(--color-accent);
  }
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.2rem;
  margin-top: 3.5rem;
  margin-bottom: 5rem;
}

/* Row 1 cards span 2 columns of 6 (which is 1/3) */
#tariff-card-event,
#tariff-card-resume,
#tariff-card-calc {
  grid-column: span 2;
}

/* Row 2 cards span 2 columns of 6, but offset to center them:
   - Chatbot starts at col 2, spans 2 (occupies cols 2 & 3)
   - Custom starts at col 4, spans 2 (occupies cols 4 & 5) */
#tariff-card-bot {
  grid-column: 2 / span 2;
}

#tariff-card-custom {
  grid-column: 4 / span 2;
}

/* ==========================================
   Price Board (Airy 3D Tablet Style)
   ========================================== */
.price-board-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.price-board-header-tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #f1f5f9;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  padding: 4px 24px;
  color: #7c3aed;
  font-family: 'Lilita One', cursive;
  font-size: 0.95rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.price-board-inner {
  border-radius: 40px;
  border: 1px solid var(--color-border);
  padding: 3.5rem 1.8rem 2.2rem;
  background: var(--bg-price-card);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(168, 85, 247, 0.05);
  position: relative;
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
  color: var(--color-price-text);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.price-board-wrapper:hover .price-board-inner {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  box-shadow: 0 30px 60px rgba(168, 85, 247, 0.2), 0 0 40px rgba(168, 85, 247, 0.1);
}

/* Highlighted popular card */
.price-board-wrapper.hit-card .price-board-inner {
  border-color: #f59e0b;
  box-shadow: 0 25px 50px rgba(245, 158, 11, 0.12), 0 0 30px rgba(245, 158, 11, 0.08);
  background: var(--bg-price-card-hit);
}

/* Sparkle stars floating around the title */
.board-sparkle {
  position: absolute;
  width: 32px;
  height: 32px;
  color: #818cf8;
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.5));
  animation: sparkle-glow 3.5s infinite ease-in-out;
}

.sparkle-top-right {
  top: 8%;
  right: 8%;
  transform: rotate(15deg);
}

@keyframes sparkle-glow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(180deg);
  }
}

/* 3D Glossy Inflated Bubble Title */
.price-board-title-group {
  text-align: center;
  margin-bottom: 1.5rem;
  user-select: none;
}

.bubble-title-main {
  font-family: 'Lilita One', cursive;
  font-size: 5rem;
  line-height: 1;
  margin: 0;
  letter-spacing: 0.05em;
  background: var(--color-price-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.2));
  animation: bubble-float 3.5s ease-in-out infinite alternate;
}

.bubble-title-main.font-size-card {
  font-size: 3.2rem;
}

.bubble-title-sub {
  display: inline-block;
  font-family: 'Lilita One', cursive;
  font-size: 1.25rem;
  color: var(--color-price-sub);
  margin-top: 2px;
  transform: rotate(-3deg) translate(3px, -3px);
  text-shadow: 0 2px 4px rgba(168, 85, 247, 0.1);
}

@keyframes bubble-float {
  0% {
    transform: translateY(0) rotate(-0.5deg);
  }
  100% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

/* Pricing values styling */
.matrix-card-price {
  font-family: 'Lilita One', cursive;
  font-size: 2.2rem;
  color: var(--color-price-val);
  text-shadow: none;
  margin-bottom: 0.4rem;
  text-align: center;
  letter-spacing: 0.02em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.price-board-wrapper:hover .matrix-card-price {
  color: var(--color-primary);
  text-shadow: 0 0 10px var(--color-primary-glow);
}

.matrix-card-price span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.matrix-card-term {
  font-size: 0.85rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Feature lists */
.matrix-card-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.matrix-card-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-price-desc);
  text-align: left;
  font-weight: 500;
}

.matrix-card-features li .price-item-star {
  width: 14px;
  height: 14px;
  color: var(--color-price-star);
  flex-shrink: 0;
  transition: transform 0.4s ease, color 0.4s ease;
}

.price-board-wrapper:hover .price-item-star {
  color: var(--color-primary);
  transform: rotate(90deg) scale(1.15);
}

/* Hit item labels */
.hit-label-tag {
  position: absolute;
  top: -8px;
  right: 25px;
  background: linear-gradient(90deg, #d946ef, #a855f7);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.35);
  z-index: 11;
}

/* Bottom pill button style */
.price-board-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1.1rem;
  background: var(--bg-price-btn);
  border: var(--border-price-btn);
  color: #fff;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-top: auto;
}

.price-board-btn:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8b5cf6 100%);
  border-color: transparent;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.35);
}

@media (max-width: 992px) {
  .matrix-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 450px;
    margin: 3rem auto 5rem;
  }
}

@media (max-width: 768px) {
  .price-board-inner {
    padding: 3rem 1.5rem 2rem;
    border-radius: 30px;
  }
  .bubble-title-main {
    font-size: 3.8rem;
  }
  .bubble-title-sub {
    font-size: 1.2rem;
  }
  .price-list-card {
    padding: 1rem;
    border-radius: 20px;
  }
  .price-item {
    padding: 1rem 0.5rem;
  }
  .price-item-name {
    font-size: 0.95rem;
  }
  .price-item-value {
    font-size: 1.15rem;
  }
}

/* Brief Calculator Section */
.calculator-section {
  background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
}

.calc-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  position: relative;
}

.calc-progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.calc-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--color-primary);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.calc-step {
  display: none;
}

.calc-step.active {
  display: block;
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-step-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.calc-step-desc {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.calc-option {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  box-shadow: 4px 4px 0px var(--color-border);
}

.calc-option:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-border);
}

.calc-option.selected {
  background: var(--color-secondary) !important;
  border-color: var(--color-border) !important;
  box-shadow: 4px 4px 0px var(--color-border) !important;
}

.calc-option.selected .calc-option-title {
  color: #0b0f19 !important;
}

.calc-option.selected .calc-option-desc {
  color: rgba(11, 15, 25, 0.7) !important;
}

.calc-option-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-text-main);
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.calc-option-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.calc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--color-border);
  padding-top: 2rem;
}

.calc-live-price {
  font-family: var(--font-heading);
}

.calc-live-price-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-live-price-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  text-shadow: none;
  font-family: var(--font-heading);
}

.calc-nav-btns {
  display: flex;
  gap: 1rem;
}

/* Form Styles for Step 4 */
.calc-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-input {
  background: var(--bg-card);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  color: var(--color-text-main);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--bg-card);
  box-shadow: none;
}

/* Success Modal / Screen */
.calc-success {
  text-align: center;
  padding: 3rem 1rem;
  display: none;
  animation: fadeInUp 0.5s ease forwards;
}

.calc-success-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

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

/* Philosophy Section */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-visual {
  position: relative;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: 
    radial-gradient(circle at 80% 20%, rgba(0, 245, 255, 0.12) 0%, transparent 50%), 
    radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 50%), 
    #0b0f19;
  box-shadow: 
    inset 0 0 30px rgba(168, 85, 247, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(168, 85, 247, 0.12) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.8;
}

.visual-glowing-backdrop {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(59, 130, 246, 0.15) 50%, transparent 100%);
  filter: blur(40px);
  border-radius: 50%;
  animation: rotate-backdrop 12s infinite linear;
}

@keyframes rotate-backdrop {
  0% { transform: rotate(0deg) scale(0.9); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(0.9); }
}

.visual-cyber-container {
  position: absolute;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.visual-cyber-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Cyber Emblem SVG Animations */
.cyber-ring-outer {
  transform-origin: 100px 100px;
  animation: rotate-ccw 20s infinite linear;
}

.cyber-ring-mid {
  transform-origin: 100px 100px;
  animation: rotate-cw 10s infinite linear;
}

.cyber-ring-inner {
  transform-origin: 100px 100px;
  animation: rotate-cw 5s infinite linear;
}

.cyber-heart {
  transform-origin: 100px 90px;
  animation: heartbeat 2s infinite ease-in-out;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(168, 85, 247, 0.4)); }
  15% { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8)); }
  30% { transform: scale(1.02); filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6)); }
  45% { transform: scale(1.12); filter: drop-shadow(0 0 12px rgba(236, 72, 153, 0.9)); }
  60% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(168, 85, 247, 0.4)); }
}

.cyber-lightning {
  transform-origin: 100px 100px;
  animation: lightning-shiver 1.5s infinite alternate ease-in-out;
}

@keyframes lightning-shiver {
  0%, 100% { transform: scale(0.95) translate(0, 0); opacity: 0.9; filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.7)); }
  50% { transform: scale(1.05) translate(-1px, 1px); opacity: 1; filter: drop-shadow(0 0 14px rgba(0, 245, 255, 1)); }
}

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

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

.visual-statement {
  position: absolute;
  bottom: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
  text-align: center;
}

.philosophy-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.philosophy-item {
  display: flex;
  gap: 1.5rem;
}

.philosophy-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--color-secondary);
}

.philosophy-item-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text-main) !important;
}

.philosophy-item-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Footer Section */
footer {
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  padding: 4rem 0 3rem 0;
  background: rgba(7, 4, 18, 0.9);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  color: var(--color-text-muted);
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-col-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

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

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .matrix-card.hit {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 79px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--color-border);
    flex-direction: column;
    padding: 2.2rem;
    gap: 2rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
  }
  
  nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .hero-title {
    font-size: 2.8rem;
    min-height: 3.5rem; /* Prevent layout shifting on mobile */
  }
  
  .hero-manifesto {
    font-size: 1.4rem;
  }
  
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  
  .matrix-card.hit {
    grid-column: span 1;
  }
  
  .calc-container {
    padding: 2rem 1.5rem;
  }
  
  .calc-options-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-footer {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    text-align: center;
  }
  
  .calc-nav-btns {
    justify-content: space-between;
  }
  
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .philosophy-visual {
    height: 250px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Mobile padding & CTA adjustments */
  .container {
    padding: 0 1.25rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0 1rem;
  }

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

/* ==========================================
   Typing Philosopher Video Styles
   ========================================== */
.philosopher-container {
  position: relative;
  width: 580px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5rem auto;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px;
  filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.25));
  
  /* Smooth radial mask to fade the video boundaries */
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 92%);
  mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 92%);
}

.philosopher-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .philosopher-container {
    width: 90%;
    margin: 1rem auto;
  }
}

/* ==========================================
   Hero CTA Button Enhancements
   ========================================== */
.btn-primary svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover svg {
  transform: translateX(5px);
}

.btn-secondary.btn-contact {
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary.btn-contact:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
}

.btn-secondary.btn-contact svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary.btn-contact:hover svg {
  transform: translate(3px, -3px) scale(1.1);
}

/* ==========================================
   Contacts Modal / Tab Overlay Styles
   ========================================== */
.contacts-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contacts-modal.active {
  opacity: 1;
  pointer-events: all;
}

.contacts-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 4, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contacts-modal-content {
  position: relative;
  width: 480px;
  max-width: 90%;
  padding: 2.5rem;
  border-radius: 20px;
  background: rgba(15, 10, 32, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 20px 50px rgba(168, 85, 247, 0.25);
  z-index: 10001;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contacts-modal.active .contacts-modal-content {
  transform: scale(1) translateY(0);
}

.contacts-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.contacts-close-btn:hover {
  color: #fff;
  transform: rotate(90deg);
}

.contacts-modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: left;
}

.contacts-modal-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  text-align: left;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: #fff;
  transition: var(--transition-smooth);
}

.contact-card:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-right: 1rem;
  transition: var(--transition-smooth);
}

.contact-card:hover .contact-card-icon {
  background: var(--color-primary);
  color: #fff;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.contact-action {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  border-bottom: 1px dashed var(--color-secondary);
  transition: var(--transition-smooth);
}

.contact-card:hover .contact-action {
  color: #fff;
  border-color: #fff;
}

.contact-card.max-card:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.contact-card.max-card:hover .contact-card-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  color: #fff;
}

/* ==========================================
   Highlight & FOMO Styles for Pricing Cards
   ========================================== */
.price-board-wrapper.resume-fomo-card .price-board-inner {
  border-color: #f59e0b;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.15);
  background: #fffdf9;
}

.price-board-wrapper.resume-fomo-card:hover .price-board-inner {
  border-color: #f59e0b;
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.25);
}

.price-glow-highlight {
  color: #d97706 !important;
  text-shadow: none !important;
  font-size: 2.6rem !important;
}

.price-board-wrapper.resume-fomo-card:hover .price-glow-highlight {
  color: #b45309 !important;
  text-shadow: 0 0 10px rgba(180, 83, 9, 0.2) !important;
}

.hit-label-tag.glow-orange {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

/* FOMO Clock widget */
.fomo-timer-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(245, 158, 11, 0.05);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  margin: 0.5rem 0;
  animation: border-glow-pulse 2s infinite ease-in-out;
}

.fomo-timer-text {
  font-size: 0.7rem;
  color: #7c2d12;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fomo-timer-clock {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 2px;
}

.ticking-clock-icon {
  color: #d97706;
  animation: spin-pulse 2s infinite linear;
}

#fomo-countdown {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #d97706;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

@keyframes border-glow-pulse {
  0%, 100% { border-color: rgba(245, 158, 11, 0.3); }
  50% { border-color: rgba(245, 158, 11, 0.7); box-shadow: 0 0 8px rgba(245, 158, 11, 0.05); }
}

/* "Я особенный" Card styles */
.custom-card-promo-note {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #475569;
  background: #f8fafc;
  border-left: 3px solid var(--color-primary);
  padding: 0.6rem 0.8rem;
  border-radius: 4px 12px 12px 4px;
  margin-bottom: 1.2rem;
  text-align: left;
}

.custom-card-promo-note strong {
  color: #fff;
}

@media (max-width: 1200px) {
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 3rem auto 5rem;
  }
  #tariff-card-event,
  #tariff-card-resume,
  #tariff-card-calc,
  #tariff-card-bot,
  #tariff-card-custom {
    grid-column: span 1 !important;
  }
  /* Center the fifth card on tablet */
  #tariff-card-custom {
    grid-column: 1 / span 2 !important;
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .matrix-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
  #tariff-card-custom {
    grid-column: span 1 !important;
    max-width: 100%;
    margin: 0;
  }
}

/* ==========================================
   Dark Theme Variable Overrides
   ========================================== */
body.dark-theme {
  --bg-dark: #0b0f19;
  --bg-card: #131926;
  --bg-card-hover: #1b2336;
  
  --color-primary: #0052ff;
  --color-primary-glow: rgba(0, 82, 255, 0.3);
  --color-secondary: #b8ff00;
  --color-accent: #3b82f6;
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.15);
  --color-border-hover: #0052ff;
  
  /* Pricing Card Specifics (Dark Active Mode) */
  --bg-price-card: #131926;
  --bg-price-card-hit: #b8ff00;
  --color-price-title: #ffffff;
  --color-price-sub: #3b82f6;
  --color-price-text: #ffffff;
  --color-price-desc: #94a3b8;
  --color-price-val: #ffffff;
  --color-price-star: #b8ff00;
  --bg-price-btn: #0052ff;
  --border-price-btn: 2px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================
   Global adjustments for Active / Neo-Brutalist look
   ========================================== */
body {
  background-color: var(--bg-dark);
  color: var(--color-text-main);
  font-family: var(--font-body);
  transition: background-color 0.3s ease, color 0.3s ease;
}

header {
  background: var(--bg-card);
  border-bottom: 2px solid var(--color-border);
  box-shadow: none;
}

.logo-text {
  color: var(--color-text-main);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.logo-author {
  color: var(--color-text-muted);
}

nav a {
  color: var(--color-text-main);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

nav a:hover {
  color: var(--color-primary);
  text-shadow: none;
}

/* Hero Section Adjustments */
#hero-canvas-container {
  background: #070412; /* keeps original developer video glowing contrast */
  border: 3px solid var(--color-border);
  border-radius: 32px !important;
  box-shadow: 8px 8px 0px var(--color-border) !important;
  overflow: hidden;
}

body.dark-theme #hero-canvas-container {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Primary buttons (Pills with arrows) */
.btn-primary, #nav-cta-btn {
  background: var(--color-secondary) !important; /* Acid Green! */
  color: #0b0f19 !important; /* Dark text */
  border: 2px solid var(--color-border) !important;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 800;
  border-radius: 9999px !important;
  box-shadow: 4px 4px 0px var(--color-border) !important;
  animation: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-primary:hover, #nav-cta-btn:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 6px 6px 0px var(--color-border) !important;
  background: var(--color-secondary) !important;
}

/* Secondary buttons */
.btn-secondary {
  background: #ffffff !important;
  color: #0b0f19 !important;
  border: 2px solid var(--color-border) !important;
  box-shadow: 4px 4px 0px var(--color-border) !important;
  border-radius: 9999px !important;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-secondary:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 6px 6px 0px var(--color-border) !important;
  background: #ffffff !important;
}

/* Pricing Card Layout Modifications */
.price-board-inner {
  border-radius: 32px !important;
  border: 3px solid var(--color-border) !important;
  box-shadow: 8px 8px 0px var(--color-border) !important;
  background: var(--bg-price-card) !important;
  padding: 3rem 1.8rem 2.2rem !important;
}

.price-board-wrapper:hover .price-board-inner {
  transform: translate(-3px, -3px) !important;
  box-shadow: 11px 11px 0px var(--color-border) !important;
}

/* Highlighted (HIT) Pricing Card (Center card - Resume) */
.price-board-wrapper.hit-card .price-board-inner {
  background: var(--bg-price-card-hit) !important; /* Acid Green background */
  color: #0b0f19 !important;
}

.price-board-wrapper.hit-card .bubble-title-main {
  color: #0b0f19 !important;
}

.price-board-wrapper.hit-card .matrix-card-price {
  color: #0b0f19 !important;
}

.price-board-wrapper.hit-card .matrix-card-features li {
  color: #0b0f19 !important;
  font-weight: 600 !important;
}

.price-board-wrapper.hit-card .matrix-card-features li .price-item-star {
  color: #0b0f19 !important;
}

.price-board-wrapper.hit-card .price-board-btn {
  background: #0b0f19 !important;
  color: #ffffff !important;
  border-color: #0b0f19 !important;
  box-shadow: none !important;
}

.price-board-wrapper.hit-card .price-board-btn:hover {
  background: #0052ff !important;
  color: #ffffff !important;
}

/* Heading bubble letters style (capitalized Syne font) */
.bubble-title-main {
  font-family: var(--font-heading) !important;
  font-size: 2.1rem !important; /* Fixed: Reduced size from 3.5rem to 2.1rem to stop overflows */
  font-weight: 900 !important;
  text-transform: uppercase !important;
  color: var(--color-text-main) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  filter: none !important;
  letter-spacing: -0.02em !important;
  animation: none !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.2rem !important;
}

.bubble-title-sub {
  font-family: var(--font-heading) !important;
  font-size: 1.05rem !important; /* Slightly smaller for cleaner visual hierarchy */
  font-weight: 800 !important;
  color: var(--color-primary) !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  transform: none !important;
}

.price-board-header-tag {
  background: #0b0f19 !important; /* Fixed: Solid black tag to prevent transparency & cut-offs */
  color: #ffffff !important;      /* Solid white text */
  border: 2px solid #0b0f19 !important;
  font-family: var(--font-heading) !important;
  text-transform: uppercase !important;
  font-weight: 800;
  font-size: 0.78rem !important;
  letter-spacing: 0.05em !important;
  z-index: 12 !important;          /* Sit above the container borders */
  padding: 4px 16px !important;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.15) !important;
}

/* Fixed: Styled the Cyrillic 'от' prefix to use Inter and normal style to prevent italic 'om' fallback */
.price-from {
  font-family: var(--font-body) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  color: inherit !important;
  margin-right: 6px !important;
}

/* Ticking clock widget on active card */
.fomo-timer-widget {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 2px dashed #0b0f19 !important;
  border-radius: 16px !important;
  padding: 0.8rem 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin: 1.2rem 0 !important;
  animation: fomo-border-pulse 1.2s infinite ease-in-out !important;
}

@keyframes fomo-border-pulse {
  0%, 100% { border-color: #0b0f19; }
  50% { border-color: #ef4444; }
}

@keyframes clock-wiggling {
  0% { transform: scale(1) rotate(0deg); }
  10% { transform: scale(1.1) rotate(-8deg); }
  20% { transform: scale(1.1) rotate(8deg); }
  30% { transform: scale(1.1) rotate(-8deg); }
  40% { transform: scale(1.1) rotate(8deg); }
  50% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.price-board-wrapper.hit-card .ticking-clock-icon {
  animation: clock-wiggling 1.5s infinite ease-in-out !important;
  color: #0b0f19 !important;
  width: 16px !important;
  height: 16px !important;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 6px #ef4444;
  animation: live-blink 0.8s infinite alternate;
}

@keyframes live-blink {
  0% { opacity: 0.3; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.2); }
}

.price-board-wrapper.hit-card #fomo-countdown,
.price-board-wrapper.hit-card .fomo-timer-text {
  color: #0b0f19 !important;
  text-shadow: none !important;
}

.price-board-wrapper.hit-card .fomo-timer-text {
  font-weight: 800 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.03em !important;
}

.price-board-wrapper.hit-card #fomo-countdown {
  font-family: var(--font-body) !important; /* Reverted to clean Inter font for legible digits! */
  font-size: 1.6rem !important; /* Stretched/bigger digits */
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
}

/* Matrix card bottom button styles */
.price-board-btn {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border: 2px solid var(--color-border) !important;
  border-radius: 9999px !important;
  box-shadow: 3px 3px 0px var(--color-border) !important;
  font-family: var(--font-heading) !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.price-board-btn:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 5px 5px 0px var(--color-border) !important;
  background: var(--color-primary) !important;
}

/* Abstract decorations */
.decor-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.decor-wave {
  position: absolute;
  border: 2px solid rgba(0, 82, 255, 0.06);
  border-radius: 50%;
}

.decor-wave-1 {
  width: 600px;
  height: 600px;
  top: -100px;
  right: -200px;
  border-color: rgba(0, 82, 255, 0.08);
}

.decor-wave-2 {
  width: 800px;
  height: 800px;
  bottom: -200px;
  left: -300px;
  border-color: rgba(184, 255, 0, 0.25);
}

/* ==========================================
   Theme Toggler Button Styles
   ========================================== */
.theme-toggle-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 2px solid var(--color-border);
  color: var(--color-text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-right: 0.8rem;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--color-primary-glow);
  transform: scale(1.05);
}

body.dark-theme .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-border);
  color: var(--color-text-main);
}

/* Sun/Moon Toggle icons display logic */
body.dark-theme .sun-icon {
  display: block;
}
body.dark-theme .moon-icon {
  display: none;
}
body:not(.dark-theme) .sun-icon {
  display: none;
}
body:not(.dark-theme) .moon-icon {
  display: block;
}

/* Modal and modal items */
.contacts-modal-content {
  background: var(--bg-card) !important;
  border: 3px solid var(--color-border) !important;
  box-shadow: 12px 12px 0px var(--color-border) !important;
  color: var(--color-text-main) !important;
  border-radius: 32px !important;
}

.contact-card {
  background: var(--bg-dark) !important;
  border: 2px solid var(--color-border) !important;
  border-radius: 18px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.contact-card:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 4px 4px 0px var(--color-border) !important;
}

.contact-label {
  color: var(--color-text-muted) !important;
}

.contact-value {
  color: var(--color-text-main) !important;
}

.contact-action {
  color: var(--color-primary) !important;
  border-bottom: 2px solid var(--color-primary) !important;
}

/* Alternating Active Card Styles */
#tariff-card-event .price-board-inner,
#tariff-card-calc .price-board-inner,
#tariff-card-custom .price-board-inner {
  background: var(--color-primary) !important;
  color: #ffffff !important;
}

#tariff-card-event .bubble-title-main,
#tariff-card-event .matrix-card-price,
#tariff-card-event .matrix-card-features li,
#tariff-card-event .matrix-card-features li .price-item-star,
#tariff-card-event .bubble-title-sub,
#tariff-card-calc .bubble-title-main,
#tariff-card-calc .matrix-card-price,
#tariff-card-calc .matrix-card-features li,
#tariff-card-calc .matrix-card-features li .price-item-star,
#tariff-card-calc .bubble-title-sub,
#tariff-card-custom .bubble-title-main,
#tariff-card-custom .matrix-card-price,
#tariff-card-custom .matrix-card-features li,
#tariff-card-custom .matrix-card-features li .price-item-star,
#tariff-card-custom .bubble-title-sub {
  color: #ffffff !important;
}

#tariff-card-event .price-board-btn,
#tariff-card-calc .price-board-btn,
#tariff-card-custom .price-board-btn {
  background: #ffffff !important;
  color: #0b0f19 !important;
  border-color: #0b0f19 !important;
  box-shadow: 3px 3px 0px #0b0f19 !important;
}

#tariff-card-event .price-board-btn:hover,
#tariff-card-calc .price-board-btn:hover,
#tariff-card-custom .price-board-btn:hover {
  background: var(--color-secondary) !important;
  color: #0b0f19 !important;
}

#tariff-card-bot .price-board-inner {
  background: var(--color-secondary) !important;
  color: #0b0f19 !important;
}

#tariff-card-bot .bubble-title-main,
#tariff-card-bot .matrix-card-price,
#tariff-card-bot .matrix-card-features li,
#tariff-card-bot .matrix-card-features li .price-item-star,
#tariff-card-bot .bubble-title-sub {
  color: #0b0f19 !important;
}

#tariff-card-bot .price-board-btn {
  background: #0b0f19 !important;
  color: #ffffff !important;
  border-color: #0b0f19 !important;
  box-shadow: none !important;
}

#tariff-card-bot .price-board-btn:hover {
  background: #0052ff !important;
  color: #ffffff !important;
}

#tariff-card-custom .custom-card-promo-note {
  background: rgba(255, 255, 255, 0.1) !important;
  border-left-color: var(--color-secondary) !important;
  color: #ffffff !important;
}

#tariff-card-custom .custom-card-promo-note strong {
  color: var(--color-secondary) !important;
}
