/* PolarGuard Brand CSS Design System
   Designed by Antigravity
   Aesthetic: Premium Frost & Tech (Dark theme with cold cyans, teals, ice-blue gradients, and glassmorphism)
*/

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

:root {
  /* Color Palette */
  --bg-deep-navy: hsl(220, 30%, 5%);
  --bg-card: hsla(220, 25%, 10%, 0.6);
  --bg-card-hover: hsla(220, 25%, 15%, 0.85);
  
  --primary-polar-blue: hsl(198, 93%, 60%);
  --primary-teal: hsl(174, 75%, 45%);
  --primary-cyan: hsl(187, 100%, 45%);
  
  --text-primary: hsl(210, 20%, 98%);
  --text-secondary: hsl(210, 14%, 80%);
  --text-muted: hsl(210, 10%, 60%);
  
  --accent-blue: hsl(212, 100%, 50%);
  --accent-light-blue: hsl(190, 100%, 75%);
  --accent-gold: hsl(43, 96%, 56%);
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.3);
  --border-glow-active: rgba(56, 189, 248, 0.6);

  /* Gradients */
  --gradient-hero: radial-gradient(circle at 50% -20%, hsl(200, 50%, 15%) 0%, var(--bg-deep-navy) 70%);
  --gradient-polar: linear-gradient(135deg, var(--primary-polar-blue) 0%, var(--primary-teal) 100%);
  --gradient-mastic: linear-gradient(135deg, var(--primary-teal) 0%, hsl(200, 85%, 40%) 100%);
  --gradient-dark-glass: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
  --gradient-text-glow: linear-gradient(to right, var(--text-primary), var(--accent-light-blue));

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Layout & Spacing */
  --container-width: 1200px;
  --header-height: 110px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);
  --shadow-glow-hover: 0 0 35px rgba(56, 189, 248, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep-navy);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  background: var(--gradient-polar);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Glassmorphic Utilities */
.glass {
  background: var(--gradient-dark-glass);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--border-light);
  border-radius: 16px;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 30px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  height: 85px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.nav-brand span.highlight {
  background: var(--gradient-polar);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-brand .brand-logo {
  width: 40px;
  height: 40px;
  background: var(--gradient-polar);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--bg-deep-navy);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.nav-brand-img {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  padding-right: 64px;
}

.logo-main {
  height: 92px;
  width: auto;
  display: block;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.logo-sub {
  position: absolute;
  bottom: -4px;
  right: 4px;
  height: 32px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

/* When navbar is scrolled, make the header logo transition slightly smaller */
.navbar.scrolled .logo-main {
  height: 68px;
}

.navbar.scrolled .logo-sub {
  height: 24px;
}

/* Footer specific brand logo adjustment */
.footer-brand .logo-main {
  height: 120px;
}

.footer-brand .logo-sub {
  height: 40px;
  right: -5px;
  bottom: -4px;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--primary-polar-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-polar);
  transition: var(--transition-fast);
}

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

.nav-btn {
  background: var(--gradient-polar);
  color: var(--bg-deep-navy);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
  border: 1px solid transparent;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
  color: var(--bg-deep-navy);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.75rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 20px);
  position: relative;
  overflow: hidden;
}

/* Decorative background glow */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(13, 148, 136, 0.05) 50%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, rgba(56, 189, 248, 0.03) 60%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

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

.hero-content {
  z-index: 10;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 100px;
  color: var(--primary-polar-blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: pulse-border 3s infinite;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-title span {
  display: block;
}

.hero-title span.accent {
  background: var(--gradient-polar);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.25);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gradient-polar);
  color: var(--bg-deep-navy);
  border: none;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
}

.stat-item h3 {
  font-size: 2.25rem;
  background: var(--gradient-polar);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Dynamic Interactive Bucket Showcase in Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
}

.showcase-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.polar-circle-bg {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  border: 1px dashed rgba(56, 189, 248, 0.25);
  animation: rotate-dashed 40s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bucket-showcase-img {
  position: absolute;
  max-width: 330px;
  max-height: 400px;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  z-index: 5;
  transition: var(--transition-smooth);
  animation: float 6s ease-in-out infinite;
}

.bucket-quick-selector {
  position: absolute;
  bottom: 0;
  display: flex;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.selector-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.selector-dot:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-polar-blue);
  border-color: rgba(56, 189, 248, 0.3);
}

.selector-dot.active {
  background: var(--gradient-polar);
  color: var(--bg-deep-navy);
  border-color: var(--text-primary);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Feature highlight cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: left;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary-polar-blue);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-polar);
  color: var(--bg-deep-navy);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

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

/* Catalog Filter Controls */
.catalog-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.filter-btn.active {
  background: var(--gradient-polar);
  color: var(--bg-deep-navy);
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

/* Product Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Square ratio */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}

.product-img-wrapper img {
  position: absolute;
  top: 5%;
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  transition: var(--transition-smooth);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 15px 30px rgba(56, 189, 248, 0.25));
}

.product-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 10px;
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light-blue);
  text-transform: uppercase;
}

.product-badge-number {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 48px;
  height: 48px;
  background: var(--gradient-polar);
  color: var(--bg-deep-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.product-badge-number.mastic {
  background: var(--gradient-mastic);
  color: var(--text-primary);
}

.product-badge-number.primer {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.product-subtitle {
  font-size: 0.9rem;
  color: var(--primary-polar-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 15px;
}

.product-desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-specs-preview {
  border-top: 1px solid var(--border-light);
  padding-top: 15px;
  margin-bottom: 24px;
}

.spec-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.spec-preview-item i {
  color: var(--primary-teal);
  font-size: 1rem;
}

.product-cta-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.product-card:hover .product-cta-btn {
  background: var(--gradient-polar);
  color: var(--bg-deep-navy);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

/* Roof Coating Calculator */
.calc-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-unit input {
  width: 100%;
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.input-with-unit input:focus {
  outline: none;
  border-color: var(--primary-polar-blue);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.input-unit {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  pointer-events: none;
}

.radio-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-tile-label {
  position: relative;
  cursor: pointer;
}

.radio-tile-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-tile-content {
  background: rgba(10, 15, 30, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.radio-tile-label input:checked + .radio-tile-content {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--primary-polar-blue);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.radio-tile-label input:checked + .radio-tile-content h4 {
  color: var(--primary-polar-blue);
}

.radio-tile-content h4 {
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.radio-tile-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.slider-value {
  font-weight: 700;
  color: var(--primary-polar-blue);
  font-family: var(--font-display);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-polar);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Calculator Results Display */
.calc-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* Cool grid backing effect for results */
.calc-results::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.results-content {
  position: relative;
  z-index: 5;
  text-align: center;
}

.results-header {
  margin-bottom: 30px;
}

.results-header h3 {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.result-main-number {
  font-size: 4.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-polar);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 10px 0;
}

.result-main-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.results-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
  text-align: left;
}

.breakdown-item h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.breakdown-item p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.results-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Comparison Matrix */
.matrix-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 800px;
}

.matrix-table th, .matrix-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
}

.matrix-table th {
  background: rgba(15, 23, 42, 0.8);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.matrix-table tbody tr {
  transition: var(--transition-fast);
}

.matrix-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.matrix-table tbody tr:last-child td {
  border-bottom: none;
}

.matrix-product-name {
  font-weight: 700;
  color: var(--primary-polar-blue);
}

.matrix-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-polar-blue);
  text-transform: uppercase;
}

.matrix-badge.mastic {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.2);
  color: var(--primary-teal);
}

.matrix-badge.primer {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.rating-stars {
  color: var(--accent-gold);
}

/* Application Guide */
.guide-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.guide-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-polar-blue), var(--primary-teal), transparent);
}

.guide-step {
  position: relative;
  padding-left: 80px;
  margin-bottom: 50px;
}

.guide-step:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-deep-navy);
  border: 2px solid var(--primary-polar-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-polar-blue);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
  z-index: 5;
}

.guide-step:nth-child(even) .step-number {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.step-content h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Contact Section & Form */
.contact-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-polar-blue);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-text h5 {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.contact-item-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-form .form-group.full-width {
  grid-column: span 2;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: rgba(10, 15, 30, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary-polar-blue);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
  background: rgba(10, 15, 30, 0.6);
}

.contact-form button[type="submit"] {
  grid-column: span 2;
  border: none;
  padding: 16px;
  font-size: 1.05rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0f172a;
  border-left: 4px solid var(--primary-polar-blue);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.1);
  padding: 16px 24px;
  border-radius: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateY(100px);
  opacity: 0;
  animation: slide-up-toast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 380px;
}

.toast.success {
  border-left-color: var(--primary-teal);
}

.toast-icon {
  font-size: 1.25rem;
  color: var(--primary-teal);
}

.toast-content h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.toast-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  background: #070a13;
  padding: 60px 0 30px;
  font-size: 0.9rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 280px;
}

.footer-links h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

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

.footer-links a:hover {
  color: var(--primary-polar-blue);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes rotate-dashed {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

@keyframes slide-up-toast {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.25rem; }
  .calc-container { grid-template-columns: 1fr; }
  .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0f172a;
    flex-direction: column;
    padding: 40px;
    gap: 30px;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    height: 380px;
  }
  
  .polar-circle-bg {
    width: 280px;
    height: 280px;
  }
  
  .bucket-showcase-img {
    max-width: 240px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .catalog-controls {
    flex-wrap: wrap;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .contact-form .form-group.full-width {
    grid-column: span 1;
  }
  
  .contact-form button[type="submit"] {
    grid-column: span 1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Special highlight for the System Warranty block */
.breakdown-item.warranty-highlight {
  background: rgba(250, 204, 21, 0.05) !important;
  border: 1px dashed rgba(250, 204, 21, 0.25) !important;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.06);
  transition: var(--transition-smooth);
}

.breakdown-item.warranty-highlight:hover {
  background: rgba(250, 204, 21, 0.08) !important;
  border-color: rgba(250, 204, 21, 0.4) !important;
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.15);
}

/* Glowing text effect for the Warranty timeframe output */
.warranty-glow {
  color: var(--accent-gold) !important;
  font-weight: 800 !important;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.5), 0 0 20px rgba(250, 204, 21, 0.25);
  animation: warranty-pulse 1.8s infinite alternate ease-in-out;
  display: inline-block;
}

@keyframes warranty-pulse {
  from {
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.4), 0 0 15px rgba(250, 204, 21, 0.2);
  }
  to {
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.8), 0 0 30px rgba(250, 204, 21, 0.4);
  }
}

/* Toggle buttons inside the Estimated Material Required card */
.results-toggle-container {
  display: inline-flex;
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 4px;
  margin: 15px 0 25px;
  backdrop-filter: blur(8px);
}

.results-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.results-toggle-btn:hover {
  color: var(--text-primary);
}

.results-toggle-btn.active {
  background: var(--gradient-polar);
  color: var(--bg-deep-navy);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

/* Product TDS Button styling */
.product-tds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.product-tds-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  color: var(--primary-polar-blue);
  border-color: rgba(56, 189, 248, 0.3);
}

