/* exaLink Systems | Production Styles */
:root {
  /* Color Palette */
  --bg-dark: #1e2420;
  --bg-panel: #272f2a;
  --bg-panel-hover: #313b34;
  --primary: #10b981; /* Emerald Green */
  --primary-glow: rgba(16, 185, 129, 0.15);
  --secondary: #047857;
  --text-main: #ffffff;
  --text-muted: #9caaa0;
  --border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(30, 36, 32, 0.85);
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing Tokens */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 8rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================
   2. Typography & Globals
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

a:hover {
  color: var(--primary);
}

ul {
  list-style: none;
}

/* ==========================================
   3. Layout Components
   ========================================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { padding: 0 5%; }
}

.section-padding {
  padding: var(--spacing-xxl) 5%;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

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

/* ==========================================
   4. Header & Navigation
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease, padding 0.3s ease;
}

header.scrolled {
  padding: 1rem 5%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo img {
  height: 60px;
  width: auto;
}

.logo-text span, .logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

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

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

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-panel);
    flex-direction: column;
    padding-top: 6rem;
    transition: 0.3s ease;
    border-left: 1px solid var(--border);
  }
  
  .nav-links.active { right: 0; }
  .hamburger { display: block; z-index: 1001; }
}

/* ==========================================
   5. Buttons & Interactive Elements
   ========================================== */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
  border: 1px solid var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================
   6. Section Specifics
   ========================================== */

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5% 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse 8s infinite alternate;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #a3b8aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  justify-content: center;
  width: 100%;
}

@media (max-width: 600px) {
  .hero-btns { flex-direction: column; align-items: center; gap: 1rem; }
  .hero-btns .btn { width: 100%; max-width: 280px; }
}

/* --- Bento Grid --- */
.bento-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.bento-item {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
}

.bento-item::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 0);
  left: var(--mouse-x, 0);
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  border-radius: 50%;
}

.bento-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(16, 185, 129, 0.4);
}

.bento-item:hover::before { opacity: 1; }

.bento-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.bento-item h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.bento-item p { color: var(--text-muted); font-size: 0.95rem; }

.bento-item.large {
  flex: 1 1 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  padding: 4rem 2rem;
}

/* --- Support Grid --- */
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid .bento-item.large { grid-column: span 2; }
}

@media (min-width: 1200px) {
  .support-grid { grid-template-columns: repeat(5, 1fr); }
  .support-grid .bento-item.large { grid-column: span 5; }
}

/* --- Guarantee Section --- */
.guarantee-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 24px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guarantee-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  background: rgba(16,185,129,0.02);
}

.guarantee-card h3 { font-size: 1.5rem; color: var(--text-main); }
.guarantee-card p { color: var(--text-muted); line-height: 1.6; }
.guarantee-card .bento-icon { margin-bottom: 0.5rem; }

/* --- CTA Section --- */
.cta-section {
  background: radial-gradient(circle at top right, rgba(16,185,129,0.05), transparent),
              radial-gradient(circle at bottom left, rgba(16,185,129,0.05), transparent);
  text-align: center;
  border-top: 1px solid var(--border);
  padding: 10rem 2rem;
}

.cta-content h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 3rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-email {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-family: monospace;
  transition: color var(--transition-normal);
}

.cta-email:hover {
  color: var(--primary);
}

/* ==========================================
   7. Footer
   ========================================== */
footer {
  background: var(--bg-panel);
  padding: var(--spacing-xl) 5% 2rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 3rem;
}

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

.footer-col h4 { font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { 
  color: var(--text-muted); 
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================
   8. Animations & Utilities
   ========================================== */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-panel); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  z-index: 10;
  transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 13px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}
