/* ==========================================================================
   ZURTECH LLC — SOLAR EMERALD DESIGN SYSTEM
   Premium Light Corporate Visual Architecture
   ========================================================================== */

:root {
  /* Surface & Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-surface: #FBFBFD;
  --bg-elevated: #F8FAFC;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-strong: rgba(255, 255, 255, 0.94);
  --bg-dark-accent: #0F172A;

  /* Typography / Text Colors */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Solar Emerald Brand Accents */
  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-700: #047857;
  --emerald-50: #ECFDF5;
  --emerald-100: #D1FAE5;
  
  --amber-500: #F59E0B;
  --amber-600: #D97706;
  --amber-50: #FEF3C7;

  /* Gradients */
  --grad-emerald: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --grad-solar: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --grad-hero-text: linear-gradient(135deg, #0F172A 0%, #334155 70%, #059669 100%);
  --grad-subtle-mesh: radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
                      radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.04) 0px, transparent 50%),
                      radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.04) 0px, transparent 50%);

  /* Borders & Shadows */
  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-emerald: rgba(5, 150, 105, 0.25);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 18px -3px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 45px -12px rgba(15, 23, 42, 0.08);
  --shadow-emerald: 0 20px 40px -10px rgba(5, 150, 105, 0.18);
  --shadow-amber: 0 20px 40px -10px rgba(245, 158, 11, 0.18);

  /* Dimensions & Spacing */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  --nav-height: 76px;
  --container-max: 1240px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg-surface);
  background-image: var(--grad-subtle-mesh);
  background-attachment: fixed;
  line-height: 1.6;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--emerald-600);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Section Spacing */
.section-py {
  padding-top: 100px;
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .section-py {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* ==========================================================================
   Typography System
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2vw + 0.2rem, 1.85rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.7;
}

.text-editorial-hero {
  background: var(--grad-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent-emerald {
  color: var(--emerald-600);
}

.text-accent-amber {
  color: var(--amber-600);
}

/* ==========================================================================
   Pills & Eyebrows
   ========================================================================== */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--emerald-50);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--emerald-700);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.eyebrow-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   Navigation Bar (Glassmorphism Navbar)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: var(--bg-glass-strong);
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.9;
}

.brand-logo-img {
  height: 42px;
  width: auto;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
  padding: 8px 0;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--emerald-600);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-toggle {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.lang-btn {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: #FFFFFF;
  color: var(--emerald-700);
  box-shadow: var(--shadow-sm);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad-emerald);
  color: #FFFFFF;
  box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -10px rgba(5, 150, 105, 0.28);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.btn-solar {
  background: var(--grad-solar);
  color: #FFFFFF;
  box-shadow: var(--shadow-amber);
}

.btn-solar:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -10px rgba(245, 158, 11, 0.28);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}

/* ==========================================================================
   Cards & Elevated Containers
   ========================================================================== */
.card-clean {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card-clean:hover {
  border-color: var(--border-emerald);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Hero Visual Stage (Smartphone Showcase & Floating Pills)
   ========================================================================== */
.hero-device-wrapper {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}

.hero-phone {
  max-width: 285px;
  transform: rotate(-1.5deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  box-shadow: 0 30px 70px -15px rgba(5, 150, 105, 0.22), 0 12px 30px -10px rgba(15, 23, 42, 0.12);
}

.hero-phone:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 40px 85px -15px rgba(5, 150, 105, 0.32), 0 15px 35px -5px rgba(15, 23, 42, 0.18);
}

.floating-glass-pill {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.1), 0 5px 15px rgba(5, 150, 105, 0.08);
  animation: floatSlow 6s ease-in-out infinite;
}

.pill-top {
  top: 14%;
  right: -25px;
}

.pill-bottom {
  bottom: 16%;
  left: -35px;
  animation-delay: -3s;
}

.pill-icon {
  font-size: 1.25rem;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-device-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 95%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(245, 158, 11, 0.12) 40%, transparent 70%);
  filter: blur(45px);
  z-index: -1;
  pointer-events: none;
}

.hero-metrics {
  display: flex;
  gap: 36px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Hero Section & Visual Stage
   ========================================================================== */
.hero-section {
  padding-top: 54px;
  padding-bottom: 60px;
  min-height: 84vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 80% 25%, rgba(16, 185, 129, 0.12) 0%, rgba(245, 158, 11, 0.08) 32%, transparent 68%), var(--bg-body);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-visual-col {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 30px 70px -15px rgba(5, 150, 105, 0.22), 0 12px 30px -10px rgba(245, 158, 11, 0.16);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  background: #0F172A;
}

.hero-image-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 40px 85px -15px rgba(5, 150, 105, 0.28), 0 16px 36px -10px rgba(245, 158, 11, 0.22);
}

.hero-image-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

@media (max-width: 992px) {
  .hero-section {
    padding-top: 36px;
    padding-bottom: 48px;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual-col {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Interactive Showcase Frame (Zurbul Showcase & Mockup)
   ========================================================================== */
.device-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}

.device-tab-bar {
  display: inline-flex;
  padding: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  gap: 6px;
}

.device-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-tab-btn.active {
  background: #FFFFFF;
  color: var(--emerald-700);
  box-shadow: var(--shadow-md);
}

.device-showcase-container {
  width: 100%;
  max-width: 940px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .device-showcase-container {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* Realistic Smartphone Mockup Frame */
.phone-mockup-frame {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  background: #0F172A;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3),
              0 0 0 1px #334155,
              inset 0 0 0 2px #1E293B;
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: #FFFDF5;
  overflow: hidden;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000000;
  border-radius: 14px;
  z-index: 10;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  padding-top: 80px;
  padding-bottom: 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9375rem;
  max-width: 320px;
}

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

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

.footer-col a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--emerald-600);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
