/* ==========================================================================
   FAYLABS - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #151414;      /* Deep soft black/charcoal */
  --bg-secondary: #0d0c0c;    /* True black for header/footer */
  --bg-card: #1e1d1d;         /* Card dark grey background */
  --bg-card-hover: #242323;   /* Lighter grey for hover/interactivity */
  --accent: #D2FF00;          /* FayLabs Neon Lime Green */
  --accent-rgb: 210, 255, 0;  /* RGB representation for opacity manipulation */
  --accent-hover: #b8df00;    /* Darker tone for active states */
  --text-main: #FFFFFF;       /* High emphasis white */
  --text-body: #b8b8b8;       /* Medium emphasis soft grey for paragraphs */
  --text-muted: #757575;     /* Low emphasis grey for labels/borders */
  
  /* Fonts */
  --font-headings: 'Inter Display', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter Display', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Spacing */
  --container-max-width: 1200px;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --border-radius-pill: 50px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-body);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: #2a2929;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography Defaults */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.highlight {
  color: var(--accent);
}

.section-label {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(21, 20, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background-color var(--transition-normal), border-bottom var(--transition-normal), padding var(--transition-normal);
  padding: 1.5rem 0;
}

#site-header.scrolled {
  padding: 1rem 0;
  background-color: rgba(13, 12, 12, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 1;
  text-decoration: none !important;
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.logo-link:hover,
.logo-link:focus,
.logo-link:active,
.logo-link.active {
  text-decoration: none !important;
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.logo-img {
  height: 22px;
  width: auto;
  display: block;
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#site-nav {
  display: block;
}

.header-cta {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Logo Design */
.logo-link-footer {
  margin-bottom: 0.75rem;
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.logo-link-footer:hover,
.logo-link-footer:focus,
.logo-link-footer:active {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.logo-img-footer {
  height: 26px;
  border: none !important;
  outline: none !important;
}

/* Nav Menu */
#site-nav {
  display: block;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--accent);
}

/* Dynamic Active Nav Link Underline */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
}

/* Header CTA Button & General Buttons */
.btn {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  border: none;
}

.btn-nav {
  background-color: var(--accent);
  color: var(--bg-secondary);
}

.btn-nav:hover {
  background-color: var(--text-main);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-secondary);
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.15);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
  transform: translateY(-3px);
}

.btn-arrow {
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-body);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1.75rem;
  cursor: not-allowed;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 11rem 0 7rem 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Hero Section Subtle Background Grid */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(210, 255, 0, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Hero Image with Glowing Frame */
.hero-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  transition: transform var(--transition-slow);
}

.hero-image-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 40% 40%, rgba(var(--accent-rgb), 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

/* Hero content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 550px;
}

/* ==========================================================================
   PRODUCTS (KROMA) SECTION
   ========================================================================== */

.products-section {
  padding: 8rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  position: relative;
}

.products-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.02) 0%, transparent 70%);
  pointer-events: none;
}

/* Product Card - Glassmorphic / Sleek Container */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(var(--accent-rgb), 0.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.product-desc {
  font-size: 0.98rem;
  color: var(--text-body);
  margin-bottom: 2.25rem;
}

/* Features List */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-icon-wrapper {
  background-color: rgba(210, 255, 0, 0.07);
  border: 1px solid rgba(210, 255, 0, 0.15);
  border-radius: var(--border-radius-sm);
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.feature-item:hover .feature-icon-wrapper {
  transform: scale(1.08);
  background-color: rgba(210, 255, 0, 0.12);
}

.feature-icon {
  width: 22px;
  height: 22px;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text strong {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.feature-text span {
  font-size: 0.9rem;
  color: var(--text-body);
}

/* Product Promo Image */
.product-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.15);
  aspect-ratio: 1 / 1;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(210, 255, 0, 0.05) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   SUPPORT & CONTACT SECTION
   ========================================================================== */

.contact-section {
  padding: 9rem 0;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.contact-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-desc {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 3.5rem;
  color: var(--text-body);
}

/* Huge Glowing Email Link */
.email-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  position: relative;
}

.email-link {
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  position: relative;
}

.email-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0.7);
  transform-origin: center;
  transition: transform var(--transition-normal);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
}

.email-link:hover {
  color: var(--text-main);
  text-shadow: 0 0 25px rgba(var(--accent-rgb), 0.35);
}

.email-link:hover::after {
  background-color: var(--text-main);
  transform: scaleX(1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Copy Email Button */
.copy-email-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-body);
  border-radius: var(--border-radius-sm);
  padding: 0.6rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.copy-email-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.copy-email-btn:active {
  transform: scale(0.95);
}

/* Tooltip */
.tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-headings);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--bg-card) transparent transparent transparent;
}

.copy-email-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Social Badges */
.social-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.social-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  background: transparent;
  transition: all var(--transition-normal);
  position: relative;
}

.social-circle svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
}

.social-circle:hover {
  color: var(--bg-secondary);
  background-color: var(--text-main);
  border-color: var(--text-main);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

.social-circle:hover svg {
  transform: scale(1.1);
}

.social-label {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  letter-spacing: 0.02em;
}

.social-item:hover .social-label {
  color: var(--text-main);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 4rem 0;
  text-align: left;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet & Smaller Desktop Layout (992px) */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  
  .hero-image-wrapper {
    order: 2;
    max-width: 550px;
    margin: 0 auto;
  }
  
  .hero-content {
    order: 1;
    align-items: center;
  }
  
  .hero-subtitle {
    max-width: 100%;
  }
  
  .product-card {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem;
  }
  
  .product-image-wrapper {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Mobile & Navigation Collapse (768px) */
@media (max-width: 768px) {
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo-link {
    flex: none;
  }

  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .hero-section {
    padding: 8rem 0 5rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  /* Mobile Menu Toggle button styling */
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  
  .mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all var(--transition-normal);
    border-radius: var(--border-radius-sm);
  }
  
  /* Navigation List hidden by default on mobile */
  #site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 7rem 2.5rem 2.5rem 2.5rem;
    transition: right var(--transition-slow);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  #site-nav.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 1.25rem;
  }
  
  /* Navigation CTA hidden on mobile, placed inside navigation drawer */
  .header-cta {
    display: none;
  }
  
  /* Toggle Active Animation for Hamburguer to Close Icon */
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }
  
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Email Link Resize */
  .email-link {
    font-size: 1.35rem;
  }
  
  .email-wrapper {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
  }
  
  .social-badges {
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Very Small Mobile screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .email-link {
    font-size: 1.15rem;
  }
  
  .product-card {
    padding: 1.5rem;
  }
  
  .social-badges {
    gap: 1.5rem;
  }
}
