/* ==========================================================================
   IXLA SOLUTIONS — DESIGN SYSTEM & LUXURY NAUTICAL STYLES
   ========================================================================== */

:root {
  --bg-dark: #04080F;
  --bg-card: rgba(10, 20, 38, 0.75);
  --bg-card-hover: rgba(16, 32, 60, 0.9);
  --bg-glass: rgba(6, 14, 28, 0.65);
  
  --text-primary: #F0F4FC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --accent-cyan: #00F0FF;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-emerald: #00E599;
  --accent-gold: #E5C07B;
  --accent-blue: #2563EB;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 240, 255, 0.4);
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 240, 255, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(0, 229, 153, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, #04080F 0%, #060D1A 50%, #03060C 100%);
  background-attachment: fixed;
}

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

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

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-cyan) 60%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-text {
  background: linear-gradient(135deg, #FFF1D0 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(4, 8, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-hex {
  width: 38px;
  height: 38px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 229, 153, 0.1));
  border: 1px solid var(--accent-cyan);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.logo-hex-inner {
  width: 16px;
  height: 16px;
  background: var(--accent-cyan);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FFF;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-cyan);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0099FF 100%);
  color: #03060C;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: #FFF;
  backdrop-filter: blur(8px);
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B8860B 100%);
  color: #04080F;
  box-shadow: 0 0 25px rgba(229, 192, 123, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(229, 192, 123, 0.5);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.4) contrast(1.15);
  transform: scale(1.02);
  transition: transform 10s ease-out;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,8,15,0.7) 0%, rgba(4,8,15,0.4) 40%, #04080F 100%);
}

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

.hero-title {
  font-size: 3.8rem;
  line-height: 1.1;
  margin: 20px 0 24px 0;
}

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

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

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFF;
  font-family: var(--font-mono);
}

.stat-value span {
  color: var(--accent-cyan);
}

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

/* Feature Preview Card in Hero */
.hero-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-glow);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Sections Common */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.6rem;
  margin: 16px 0;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Section 1: Value Engineering 15k Cards */
.cost-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.cost-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-smooth);
}

.cost-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.1);
}

.cost-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cost-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
}

.cost-price {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.cost-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.cost-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Value Comparison Banner */
.value-comparison-box {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(0, 229, 153, 0.05) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.comp-col h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.comp-tag-old {
  color: #FF5A5F;
  font-weight: 700;
  text-decoration: line-through;
  font-size: 1.6rem;
  font-family: var(--font-mono);
}

.comp-tag-new {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 2.4rem;
  font-family: var(--font-mono);
}

/* Competitor Matrix Table */
.matrix-container {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-top: 30px;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 750px;
}

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

.matrix-table th {
  background: rgba(4, 8, 15, 0.6);
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.matrix-table .highlight-row {
  background: rgba(0, 240, 255, 0.05);
}

.matrix-table .highlight-row td {
  border-bottom: 1px solid var(--border-active);
  font-weight: 600;
}

/* INTERACTIVE CONFIGURATOR SECTION */
.configurator-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
}

.canvas-area {
  position: relative;
  background: #03060C;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hexCanvas {
  cursor: crosshair;
  display: block;
}

.canvas-hint {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(4, 8, 15, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.config-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.palette-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.module-palette {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.palette-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.palette-btn:hover, .palette-btn.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: #FFF;
}

.palette-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
}

.config-live-stats {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.live-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.live-stat-row:last-child {
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFF;
}

.live-stat-row strong {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.live-stat-row.total strong {
  color: var(--accent-emerald);
  font-size: 1.25rem;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 8, 15, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-title {
  font-size: 1rem;
  color: #FFF;
  font-weight: 600;
}

/* Modal Lightbox */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-active);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #FFF;
  font-size: 2.5rem;
  cursor: pointer;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(4, 8, 15, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #FFF;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

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

.form-status-msg {
  display: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: 15px;
  font-size: 0.9rem;
}

.form-status-msg.success {
  display: block;
  background: rgba(0, 229, 153, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
}

.form-status-msg.error {
  display: block;
  background: rgba(255, 90, 95, 0.15);
  border: 1px solid #FF5A5F;
  color: #FF5A5F;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px 0;
  background: #020408;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead {
    margin: 0 auto 36px auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .configurator-wrapper {
    grid-template-columns: 1fr;
  }
  .value-comparison-box {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-stats-bar {
    grid-template-columns: 1fr;
  }
}
