/* ==========================================================================
   DENIS DIGITAL STUDIO & AI ECOSYSTEM - 2026 ULTRA LUXURY THEME
   Domain: denisstudio.me | Telegram: @denisstudiome | Phone: +380 73 729 43 64
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,700&family=Syne:wght@600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #05070B;
  --bg-secondary: #0A0E17;
  --bg-tertiary: #111827;
  --bg-card: rgba(13, 20, 34, 0.7);
  --bg-card-hover: rgba(19, 31, 54, 0.9);
  
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.4);
  --accent-cyan: #06B6D4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-gold: #F59E0B;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-purple: #8B5CF6;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-bright: rgba(255, 255, 255, 0.18);
  --border-emerald: rgba(16, 185, 129, 0.3);
  
  --gradient-glow: linear-gradient(135deg, #10B981 0%, #06B6D4 50%, #3B82F6 100%);
  --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
  
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

::selection {
  background: rgba(16, 185, 129, 0.3);
  color: #fff;
}

/* Noise & Grid Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.grid-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  mix-blend-mode: screen;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: break-word;
}

.text-gradient {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.glass-panel:hover {
  border-color: var(--border-glass-bright);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.1);
  transform: translateY(-4px);
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.navbar.scrolled {
  top: 8px;
  background: rgba(5, 7, 11, 0.94);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(16, 185, 129, 0.15);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.brand-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #05070B;
  box-shadow: 0 0 15px var(--accent-emerald-glow);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.6) 50%, transparent 60%);
  animation: shine 3s infinite;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-emerald);
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-btn-text-full {
  display: inline;
}

.nav-btn-text-mobile {
  display: none;
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.sound-toggle-btn:hover, .sound-toggle-btn.active {
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px var(--accent-emerald-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
  position: relative;
  box-sizing: border-box;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #05070B;
  box-shadow: 0 4px 18px var(--accent-emerald-glow);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass-bright);
  backdrop-filter: blur(10px);
}

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

.btn-telegram {
  background: linear-gradient(135deg, #229ED9 0%, #0088CC 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 136, 204, 0.4);
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.6);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 70px;
  position: relative;
  box-sizing: border-box;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
  max-width: 100%;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.stat-item h3 {
  font-size: 1.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-visual-container {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(16, 185, 129, 0.2);
  background: #0B111E;
}

.hero-img-main {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.floating-badge {
  position: absolute;
  background: rgba(10, 16, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass-bright);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  z-index: 5;
  animation: float 4s ease-in-out infinite;
}

.badge-top-left {
  top: -16px;
  left: -16px;
}

.badge-bottom-right {
  bottom: -16px;
  right: -16px;
  animation-delay: -2s;
}

.badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-text-primary {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.badge-text-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* SECTION HEADERS */
.section {
  padding: 90px 0;
  position: relative;
  box-sizing: border-box;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
  padding: 0 10px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-emerald);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  margin-bottom: 18px;
  line-height: 1.15;
}

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

/* LIQUID EXPERIENCE */
.liquid-experience-container {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.liquid-interactive-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}

.liquid-canvas-box {
  position: relative;
  width: 100%;
  height: 360px;
  background: radial-gradient(circle at center, #0F192C 0%, #050810 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  overflow: hidden;
}

#liquid-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.liquid-canvas-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  flex-wrap: wrap;
  gap: 8px;
}

.liquid-hint {
  font-size: 0.78rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  background: rgba(5, 7, 11, 0.85);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.liquid-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.liquid-feature-card {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  box-sizing: border-box;
}

.feature-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-sizing: border-box;
}

.service-card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  pointer-events: none;
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #fff;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.service-tag-item {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* LIVE BOT & VOICE SANDBOX */
.sandbox-container {
  background: #090E18;
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  box-sizing: border-box;
  width: 100%;
}

.sandbox-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
}

.sandbox-tab-btn {
  flex: 1;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  text-align: center;
}

.sandbox-tab-btn:hover {
  color: #fff;
}

.sandbox-tab-btn.active {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.05);
}

.sandbox-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.sandbox-content {
  padding: 28px 20px;
  box-sizing: border-box;
}

/* Telegram Bot Simulator UI */
.telegram-simulator {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: #17212B;
  border-radius: var(--radius-lg);
  border: 1px solid #242F3D;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  box-sizing: border-box;
}

.tg-header {
  background: #242F3D;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tg-bot-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #05070B;
  flex-shrink: 0;
}

.tg-bot-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.tg-bot-status {
  font-size: 0.72rem;
  color: #10B981;
}

.tg-chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0E1621;
  box-sizing: border-box;
}

.tg-message {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  position: relative;
  animation: fadeIn 0.3s ease;
  word-break: break-word;
}

.tg-message.bot {
  align-self: flex-start;
  background: #182533;
  color: #E4ECF2;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tg-message.user {
  align-self: flex-end;
  background: #2B5278;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.tg-time {
  font-size: 0.68rem;
  color: #708499;
  text-align: right;
  margin-top: 4px;
}

.tg-quick-replies {
  padding: 12px 14px;
  background: #17212B;
  border-top: 1px solid #242F3D;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  box-sizing: border-box;
}

.tg-reply-btn {
  background: #2B5278;
  border: none;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.tg-reply-btn:hover {
  background: #3A6D9E;
  transform: scale(1.02);
}

.tg-reply-btn-cta {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #05070B !important;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.tg-reply-btn-cta:hover {
  background: linear-gradient(135deg, #34D399, #10B981);
}

/* Voice Call Simulator UI */
.voice-simulator {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: #0D1422;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass-bright);
  padding: 32px 20px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
  box-sizing: border-box;
}

.voice-avatar-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  border: 2px solid var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 25px var(--accent-emerald-glow);
}

.voice-avatar-ring.active {
  animation: pulse-ring 2s infinite;
}

.voice-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  margin: 18px 0;
}

.wave-bar {
  width: 4px;
  background: var(--accent-emerald);
  border-radius: 4px;
  height: 8px;
  transition: height 0.1s ease;
}

.voice-simulator.active .wave-bar {
  animation: waveform 1.2s infinite ease-in-out alternate;
}
.voice-simulator.active .wave-bar:nth-child(2) { animation-delay: 0.2s; }
.voice-simulator.active .wave-bar:nth-child(3) { animation-delay: 0.4s; }
.voice-simulator.active .wave-bar:nth-child(4) { animation-delay: 0.1s; }
.voice-simulator.active .wave-bar:nth-child(5) { animation-delay: 0.3s; }
.voice-simulator.active .wave-bar:nth-child(6) { animation-delay: 0.5s; }

/* PORTFOLIO SHOWCASE */
.portfolio-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.portfolio-filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.portfolio-filter-btn:hover, .portfolio-filter-btn.active {
  background: var(--accent-emerald);
  color: #05070B;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 18px var(--accent-emerald-glow);
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 45px rgba(0,0,0,0.6), 0 0 25px rgba(16, 185, 129, 0.15);
}

.portfolio-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0A0F1A;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-niche-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.portfolio-metric-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.95);
  color: #05070B;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.portfolio-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  box-sizing: border-box;
}

.portfolio-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #fff;
}

.portfolio-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  margin-top: auto;
}

.portfolio-tag {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

/* COST CALCULATOR */
.calculator-card {
  background: #0A0F1D;
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
  box-sizing: border-box;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 36px;
}

.calc-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.calc-choice-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  min-height: 90px;
  box-sizing: border-box;
}

.calc-choice-label:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.calc-choice-label.selected {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.calc-choice-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

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

.calc-choice-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-top: 8px;
}

.calc-summary-panel {
  background: #0E1627;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass-bright);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.calc-price-display {
  margin-bottom: 20px;
  text-align: center;
}

.calc-price-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.calc-price-amount {
  font-size: 2.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.calc-price-uah {
  font-size: 1rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.calc-included-list {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-included-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-main);
}

.calc-included-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* COMPARISON SECTION */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.comparison-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-sizing: border-box;
}

.comparison-card.bad {
  background: rgba(239, 68, 68, 0.03);
  border-color: rgba(239, 68, 68, 0.15);
}

.comparison-card.good {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.1);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.comparison-item {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* PROCESS TIMELINE */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.timeline-step {
  padding: 22px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-sizing: border-box;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  line-height: 1;
}

.timeline-step h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #fff;
}

.timeline-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ ACCORDION */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  transition: all 0.3s;
  box-sizing: border-box;
  width: 100%;
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  box-sizing: border-box;
}

.faq-answer {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: none;
  box-sizing: border-box;
}

.faq-item.active {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.03);
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-emerald);
}

/* CONTACT SECTION & FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  width: 100%;
  box-sizing: border-box;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  text-decoration: none;
  color: #fff;
  transition: all 0.3s;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.contact-info-card:hover {
  border-color: var(--accent-emerald);
  transform: translateX(4px);
  background: rgba(16, 185, 129, 0.05);
}

.contact-form {
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  background: #0A0F1D;
  border: 1px solid var(--border-glass-bright);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.form-group {
  margin-bottom: 16px;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0A0F1D;
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 70px rgba(0,0,0,0.8);
  box-sizing: border-box;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* FOOTER */
.footer {
  padding: 50px 0 25px;
  background: #030508;
  border-top: 1px solid var(--border-glass);
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-column h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 16px;
}

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--text-dim);
  box-sizing: border-box;
}

/* FLOATING TELEGRAM ACTION BUTTON */
.floating-tg-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-action-pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--accent-emerald);
  opacity: 0.4;
  animation: pulse-ring 2s infinite;
  pointer-events: none;
}

/* KEYFRAME ANIMATIONS */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes waveform {
  0% { height: 6px; }
  100% { height: 32px; }
}

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

@keyframes shine {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (100% NO HORIZONTAL OVERFLOW)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 30px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats-row {
    max-width: 540px;
    margin: 0 auto;
  }
  .calc-grid, .comparison-grid, .contact-grid, .liquid-interactive-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
    width: 100%;
    max-width: 100vw;
  }

  .navbar {
    top: 8px;
    width: calc(100% - 20px);
    padding: 7px 12px;
    gap: 6px;
  }
  .nav-menu {
    display: none;
  }
  .brand-logo {
    font-size: 1rem;
    gap: 6px;
  }
  .brand-icon-wrapper {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }
  .sound-toggle-btn {
    width: 32px;
    height: 32px;
  }
  .navbar .btn-primary {
    padding: 6px 12px;
    font-size: 0.78rem;
    gap: 4px;
  }
  .nav-btn-text-full {
    display: none;
  }
  .nav-btn-text-mobile {
    display: inline;
  }

  .hero-section {
    padding: 95px 0 45px;
  }
  .hero-title {
    font-size: 2rem;
    line-height: 1.15;
  }
  .hero-description {
    font-size: 0.98rem;
    margin-bottom: 24px;
  }
  .hero-badge {
    font-size: 0.74rem;
    padding: 5px 12px;
  }
  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .stat-item h3 {
    font-size: 1.45rem;
  }
  .stat-item p {
    font-size: 0.72rem;
  }

  .badge-top-left, .badge-bottom-right {
    position: static;
    margin: 6px 0;
  }
  .hero-visual-card {
    max-width: 100%;
  }
  .hero-img-main {
    height: 280px;
  }

  .section {
    padding: 60px 0;
  }
  .section-header {
    margin-bottom: 36px;
  }
  .section-title {
    font-size: 1.75rem;
  }

  .services-grid, .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .liquid-experience-container {
    padding: 20px 14px;
  }
  .liquid-canvas-box {
    height: 260px;
  }

  .sandbox-container {
    border-radius: var(--radius-md);
  }
  .sandbox-tab-btn {
    padding: 12px 10px;
    font-size: 0.82rem;
  }
  .sandbox-content {
    padding: 20px 10px;
  }
  .tg-quick-replies {
    grid-template-columns: 1fr;
  }

  .calculator-card {
    padding: 18px 14px;
  }
  .calc-options-grid {
    grid-template-columns: 1fr;
  }
  .calc-price-amount {
    font-size: 2.2rem;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .comparison-card {
    padding: 20px 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 22px 14px;
  }
  .contact-form .btn-primary {
    font-size: 0.9rem;
    padding: 14px;
    white-space: normal;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .floating-tg-bar {
    bottom: 14px;
    right: 14px;
  }
  .floating-tg-bar .btn-telegram {
    padding: 10px 16px;
    font-size: 0.82rem;
  }
}

@media (max-width: 380px) {
  .navbar {
    width: calc(100% - 12px);
    padding: 6px 8px;
  }
  .brand-logo span {
    font-size: 0.88rem;
  }
  .navbar .btn-primary {
    padding: 5px 8px;
    font-size: 0.72rem;
  }
}
