/* ==========================================================================
   DESIGN TOKENS & ROOT VARIABLES
   ========================================================================== */
:root {
  --bg-primary: #08090d;
  --bg-secondary: #0f1118;
  --bg-card: rgba(19, 23, 34, 0.7);
  --bg-card-hover: rgba(28, 33, 49, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);

  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.3);

  --font-heading: "Orbitron", -apple-system, blinkmacsystemfont, sans-serif;
  --font-body: "Poppins", -apple-system, blinkmacsystemfont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-glow: 0 0 35px var(--primary-glow);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Glow */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(6, 182, 212, 0.05) 40%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6.5rem 0;
}

/* ==========================================================================
   TYPOGRAPHY & SECTION HEADERS
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #fff 20%,
    var(--primary) 60%,
    var(--accent-cyan) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(8, 9, 13, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.header.scrolled {
  padding: 0.8rem 0;
  background: rgba(8, 9, 13, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  padding: 6rem 2rem 2rem 2rem;
  z-index: 999;
  transition: right var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--accent-cyan);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 10.5rem;
  padding-bottom: 6rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 1.8s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h4 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Visual Box */
.hero-visual {
  position: relative;
}

.hero-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
}

.dot-group {
  display: flex;
  gap: 6px;
}

.dot-group span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.live-indicator {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-metrics-display {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.metric-bar-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.metric-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.metric-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
}

.floating-badge {
  position: absolute;
  background: rgba(15, 17, 24, 0.9);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(15px);
  z-index: 2;
  animation: floatSlow 4s ease-in-out infinite alternate;
}

.floating-badge.badge-top {
  top: -20px;
  right: -20px;
}

.floating-badge.badge-bottom {
  bottom: -20px;
  left: -20px;
  animation-delay: -2s;
}

.floating-badge i {
  font-size: 1.3rem;
  color: var(--accent-cyan);
}

.floating-badge h5 {
  font-size: 0.95rem;
  font-weight: 700;
}

.floating-badge p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   PARTNER TICKER (FIXED & SEAMLESS)
   ========================================================================== */
.ticker-section {
  padding: 2.2rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
  width: 100%;
  position: relative;
}

.ticker-wrapper {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tickerSlide 25s linear infinite;
}

.ticker-wrapper:hover {
  animation-play-state: paused;
}

.ticker-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4.5rem;
  padding-right: 4.5rem;
}

.ticker-item {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
  opacity: 0.7;
  transition:
    opacity var(--transition-fast),
    color var(--transition-fast);
}

.ticker-item:hover {
  opacity: 1;
  color: var(--accent-cyan);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px -10px rgba(99, 102, 241, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1.8rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}

.service-features li {
  font-size: 0.88rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li i {
  color: var(--accent-emerald);
  font-size: 0.8rem;
}

/* ==========================================================================
   INTERACTIVE ROI CALCULATOR
   ========================================================================== */
.calculator-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-card);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.input-group label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.input-group label span {
  color: var(--accent-cyan);
  font-family: var(--font-heading);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary);
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.select-custom {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.select-custom option {
  background: var(--bg-secondary);
  color: #fff;
}

.calc-results {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  position: relative;
}

.result-card h5 {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.result-value {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.result-row h6 {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.result-subvalue {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   LIVE CAMPAIGN PERFORMANCE PREVIEW
   ========================================================================== */
.report-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.report-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.2rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.report-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.report-tab-btn.active,
.report-tab-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-cyan);
}

.report-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.report-graph-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.graph-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.mock-chart {
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 8px;
}

.chart-bar {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: linear-gradient(180deg, var(--accent-cyan), var(--primary));
  transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.report-kpi-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.kpi-card span {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.kpi-card h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0.3rem 0;
}

.kpi-change {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

/* ==========================================================================
   INDUSTRY SOLUTIONS
   ========================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.solution-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
}

.solution-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.solution-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.solution-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TESTIMONIALS & SOCIAL PROOF GRID
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-5px);
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-cyan);
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   CONSULTATION FORM SECTION
   ========================================================================== */
.consultation-box {
  background: linear-gradient(
    135deg,
    rgba(15, 17, 24, 0.95),
    rgba(30, 27, 75, 0.4)
  );
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  box-shadow: var(--shadow-glow);
}

.consultation-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.consultation-text h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.consultation-text p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.perks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.perks-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.perks-list li i {
  color: var(--accent-cyan);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.form-submit-btn {
  grid-column: span 2;
  width: 100%;
  padding: 1.1rem;
  margin-top: 0.8rem;
}

/* ==========================================================================
   LEGAL & SUBPAGES
   ========================================================================== */
.subpage .page-header {
  padding-top: 10rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(
    180deg,
    rgba(15, 17, 24, 0.8) 0%,
    transparent 100%
  );
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
}

.page-subtitle {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.breadcrumbs a {
  color: var(--accent-cyan);
}

.legal-content .content-wrapper {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 2.2rem 0 0.8rem 0;
  color: #fff;
}

.legal-content p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.legal-content ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Contact Page Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-panel-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.method-details h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.method-details p,
.method-details a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modal Popup Confirmation */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.popup:target,
.popup.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 480px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-glow);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.5rem;
  color: var(--text-dim);
}

.popup-icon {
  font-size: 3.5rem;
  color: var(--accent-emerald);
  margin-bottom: 1.2rem;
}

.popup-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.popup-close-btn {
  margin-top: 1.5rem;
  width: 100%;
}

/* ==========================================================================
   FLOATING LIVE CHAT WIDGET
   ========================================================================== */
.chat-widget-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  border: none;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.chat-widget-btn:hover {
  transform: scale(1.1);
}

.chat-window {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 360px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  z-index: 991;
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.chat-window.open {
  display: flex;
  animation: popIn 0.3s ease-out forwards;
}

.chat-header {
  background: rgba(99, 102, 241, 0.15);
  padding: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.1rem;
}

.chat-messages {
  padding: 1.2rem;
  height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.chat-bubble {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  max-width: 80%;
}

.chat-bubble.bot {
  background: rgba(255, 255, 255, 0.06);
  align-self: flex-start;
  color: var(--text-main);
}

.chat-bubble.user {
  background: var(--primary);
  align-self: flex-end;
  color: #fff;
}

.chat-input-area {
  display: flex;
  padding: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.chat-input-area input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.4rem;
}

.chat-send-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  cursor: pointer;
  padding: 0 0.5rem;
}

/* ==========================================================================
   FOOTER (STRICTLY CONSISTENT SITE-WIDE)
   ========================================================================== */
.footer {
  background: #050608;
  border-top: 1px solid var(--border-subtle);
  padding-top: 5rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  height: 60px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.2rem;
}

.footer-about-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-info li i {
  color: var(--accent-cyan);
  margin-top: 0.3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.8rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

@keyframes floatSlow {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-12px);
  }
}

@keyframes tickerSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-pop-in {
  animation: popIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .calc-grid,
  .report-content-grid,
  .consultation-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav,
  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .chat-window {
    width: calc(100vw - 2rem);
    right: 1rem;
  }
}
