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

/* === PREMIUM TOKENS === */
:root {
  --bg: #050505; /* Carbon Fiber base */
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #c0c0c0; /* Silver-steel accent */
  --accent-glow: rgba(192, 192, 192, 0.3);
  --industrial-blue: #1a1a2e;
  --radius-sm: 4px; /* Industrial precision: sharper corners */
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.4);
  --glass-bg: rgba(20, 20, 25, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --carbon-texture: linear-gradient(45deg, #050505 25%, #0a0a0a 25%, #0a0a0a 50%, #050505 50%, #050505 75%, #0a0a0a 75%, #0a0a0a 100%);
  --carbon-size: 4px 4px;
}

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--carbon-texture);
  background-size: var(--carbon-size);
  width: 100%;
  max-width: 100vw;
  padding-bottom: 70px; /* Space for Bottom Nav Bar */
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-glass);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* === STRUCTURAL BASELINES === */
.container {
  max-width: 1200px; /* As per spec: standard centered grid constrained to 1200px */
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

section {
  position: relative;
  overflow: hidden;
}

/* Spacing Strategy: Tight-then-expand */
/* 50-60px for first 3 sections, 90-110px for later ones */
.section-tight { padding: 60px 0; }
.section-medium { padding: 85px 0; }
.section-expand { padding: 110px 0; }

/* Section Internal Layout: Offset grid (cascading staircase) */
.offset-row {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .offset-row > div:nth-child(2) { margin-left: 60px; }
  .offset-row > div:nth-child(3) { margin-left: 120px; }
}

/* Paper Tear Edge Divider */
.tear-divider {
  width: 100%;
  height: 60px;
  background: inherit;
  clip-path: polygon(0% 0%, 5% 20%, 10% 0%, 15% 25%, 20% 5%, 25% 30%, 30% 10%, 35% 35%, 40% 15%, 45% 40%, 50% 20%, 55% 45%, 60% 25%, 65% 50%, 70% 30%, 75% 55%, 80% 35%, 85% 60%, 90% 40%, 95% 65%, 100% 45%, 100% 100%, 0% 100%);
  margin-top: -59px;
  position: relative;
  z-index: 2;
}

/* === PAGE LAYOUT SCHEME: Bottom Navigation Bar === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 10px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
  gap: 4px;
  flex: 1;
  text-align: center;
}

.nav-item i {
  font-size: 24px;
}

.nav-item.active {
  color: var(--text);
}

.nav-item.active i {
  color: var(--accent);
  filter: drop-shadow(0 0 5px var(--accent-glow));
}

/* === NAVIGATION STYLE: Transparent Hero Nav === */
/* This is an auxiliary top bar for brand presence, becomes solid on scroll */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 900;
  transition: all 0.4s ease;
  background: transparent;
}

.top-header.scrolled {
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.brand {
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === PREMIUM UI BLOCKS === */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
}

.btn-primary {
  background: var(--accent);
  color: #050505;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
}

.btn-primary i {
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: translateX(8px);
}

/* === HERO SECTION === */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

/* Vibrant animated glowing radial-gradient spotlight */
.hero-spotlight {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192,192,192,0.15) 0%, rgba(5,5,5,0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse-glow 8s infinite alternate ease-in-out;
}

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

.hero h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.9;
  margin-bottom: 20px;
}

/* Animated text hero characters */
.hero h1 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: char-in 0.5s forwards;
}

@keyframes char-in {
  to { opacity: 1; transform: translateY(0); }
}

/* === MASONRY GRID (Layout Archetype) === */
.masonry-grid {
  column-count: 1;
  column-gap: 20px;
}

@media (min-width: 768px) {
  .masonry-grid { column-count: 2; }
}

@media (min-width: 1024px) {
  .masonry-grid { column-count: 3; }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  display: block;
}

/* === CONTENT DENSITY === */
.high-density {
  font-size: 0.9rem;
}

.low-density {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* === ROI CALCULATOR (Mandatory Interactive) === */
.calc-container {
  max-width: 600px;
  margin: 0 auto;
}

.calc-input-group {
  margin-bottom: 20px;
}

.calc-input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.calc-input-group input {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: var(--radius-sm);
}

.calc-result {
  margin-top: 30px;
  text-align: center;
  padding: 20px;
  background: rgba(192,192,192,0.1);
  border-radius: var(--radius-md);
}

.calc-number {
  font-size: 3rem;
  font-family: 'Anton', sans-serif;
  color: var(--accent);
  display: block;
}

/* === VIDEO SECTION === */
.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-placeholder:hover .video-overlay {
  background: rgba(0,0,0,0.2);
}

.play-btn {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #050505;
  box-shadow: 0 0 30px var(--accent-glow);
  transition: transform 0.3s ease;
}

.video-placeholder:hover .play-btn {
  transform: scale(1.1);
}

/* === FOOTER STYLE: Map + Info === */
.main-footer {
  background: #0a0a0c;
  padding: 80px 0 20px;
  border-top: 1px solid var(--glass-border);
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-map-col {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
}

.footer-map-col iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(1) invert(1) contrast(1.2);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-link-col h4 {
  margin-bottom: 20px;
  color: var(--text);
}

.footer-link-col ul {
  list-style: none;
}

.footer-link-col ul li {
  margin-bottom: 10px;
}

.footer-link-col a {
  color: var(--text-muted);
}

.footer-link-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* === TESTIMONIAL INTERVIEW STYLE === */
.testimonial-interview {
  margin-bottom: 40px;
}

.q-box {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Anton', sans-serif;
}

.a-box {
  font-style: italic;
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs span {
  margin: 0 10px;
}

/* === SIDEBAR (Inner Pages) === */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 1024px) {
  .page-with-sidebar {
    grid-template-columns: 1fr 300px;
  }
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  margin-bottom: 40px;
}

/* === STATS SECTION === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 3rem;
  font-family: 'Anton', sans-serif;
  color: var(--accent);
  display: block;
}

/* Reading time indicator */
.reading-time {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

/* Gradient Section Transitions */
.grad-transition-1 { background: linear-gradient(to bottom, #050505, #0a0a0c); }
.grad-transition-2 { background: linear-gradient(to bottom, #0a0a0c, #050505); }

/* Utility classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
