/* ============================================================
   BRILLENTRAX — Clean Tech UI
   ============================================================ */

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

:root {
  --clr-bg: #f8f9fa;
  --clr-surface: #ffffff;
  --clr-card: #ffffff;
  --clr-text-main: #1a1b1e;
  --clr-text-muted: #6b7280;
  --clr-border: #e5e7eb;
  
  --clr-primary: #2563eb; /* Tech Blue */
  --clr-primary-dark: #1d4ed8;
  --clr-accent: #06b6d4; /* Cyan */
  
  --ff-sans: 'Outfit', sans-serif;
  --ff-display: 'Space Grotesk', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* UTILS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--clr-surface); }
.text-center { text-align: center; }
.text-primary { color: var(--clr-primary); }

/* TOPBAR */
.topbar { background: var(--clr-text-main); color: #fff; padding: 0.5rem 0; text-align: center; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}
.header__inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 700; color: var(--clr-text-main); display: flex; align-items: center; gap: 0.5rem; }
.logo span { color: var(--clr-primary); }
.nav__list { display: flex; gap: 2rem; align-items: center; }
.nav__link { font-weight: 500; color: var(--clr-text-muted); transition: color var(--transition); }
.nav__link:hover, .nav__link--active { color: var(--clr-primary); }
.nav__cta { background: var(--clr-primary); color: #fff; padding: 0.6rem 1.2rem; border-radius: var(--radius-pill); font-weight: 600; transition: background var(--transition); }
.nav__cta:hover { background: var(--clr-primary-dark); }
.hamburger { display: none; font-size: 1.5rem; color: var(--clr-text-main); }

/* MOBILE NAV */
.mobile-nav { position: fixed; inset: 0; background: var(--clr-surface); z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; transform: translateX(100%); transition: transform var(--transition); }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__close { position: absolute; top: 1.5rem; right: 2rem; font-size: 2rem; }
.mobile-nav__link { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 600; }

/* HERO */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; min-height: calc(100vh - 110px); padding: 4rem 0; }
.hero__content { max-width: 500px; }
.hero__badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(37, 99, 235, 0.1); color: var(--clr-primary); padding: 0.5rem 1rem; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero__title { font-family: var(--ff-display); font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; color: var(--clr-text-main); }
.hero__desc { font-size: 1.1rem; color: var(--clr-text-muted); margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: var(--clr-primary); color: #fff; padding: 1rem 2rem; border-radius: var(--radius-pill); font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; transition: all var(--transition); box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3); }
.btn-primary:hover { transform: translateY(-2px); background: var(--clr-primary-dark); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); }
.btn-outline { background: transparent; color: var(--clr-text-main); border: 2px solid var(--clr-border); padding: 1rem 2rem; border-radius: var(--radius-pill); font-weight: 600; font-size: 1rem; transition: all var(--transition); }
.btn-outline:hover { border-color: var(--clr-text-main); }
.hero__img-wrapper { position: relative; }
.hero__img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__shape { position: absolute; inset: -20px; background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent)); border-radius: var(--radius-lg); z-index: -1; opacity: 0.1; filter: blur(20px); }

/* FEATURES */
.sec-title { font-family: var(--ff-display); font-size: 2.5rem; margin-bottom: 1rem; }
.sec-desc { color: var(--clr-text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 4rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: var(--clr-surface); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--clr-border); transition: transform var(--transition), box-shadow var(--transition); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-icon { width: 50px; height: 50px; background: rgba(37, 99, 235, 0.1); color: var(--clr-primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-title { font-family: var(--ff-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.feature-desc { color: var(--clr-text-muted); font-size: 0.95rem; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }

/* CTA SECTION */
.cta-banner { background: var(--clr-text-main); color: #fff; padding: 5rem 2rem; border-radius: var(--radius-lg); text-align: center; position: relative; overflow: hidden; margin: 4rem 0; }
.cta-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at top right, var(--clr-primary), transparent 50%); opacity: 0.2; }
.cta-banner h2 { font-family: var(--ff-display); font-size: 2.5rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-banner p { font-size: 1.1rem; opacity: 0.9; max-width: 500px; margin: 0 auto 2rem; position: relative; z-index: 1; }
.cta-banner .btn-primary { background: #fff; color: var(--clr-text-main); box-shadow: none; position: relative; z-index: 1; }
.cta-banner .btn-primary:hover { background: var(--clr-bg); transform: translateY(-2px); }

/* FOOTER */
.footer { background: var(--clr-surface); padding: 4rem 0 2rem; border-top: 1px solid var(--clr-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--clr-text-muted); margin-top: 1rem; font-size: 0.95rem; max-width: 300px; }
.footer-title { font-family: var(--ff-display); font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--clr-text-muted); font-size: 0.95rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--clr-primary); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--clr-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { color: var(--clr-text-muted); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--clr-text-muted); font-size: 0.85rem; transition: color var(--transition); }
.footer-legal a:hover { color: var(--clr-primary); }

/* PRELOADER */
#preloader { position: fixed; inset: 0; background: var(--clr-surface); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.4s, visibility 0.4s; }
#preloader.is-hidden { opacity: 0; visibility: hidden; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--clr-border); border-top-color: var(--clr-primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* COOKIE POPUP */
.cookie-popup { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(150%); background: var(--clr-text-main); color: #fff; padding: 1.5rem; border-radius: var(--radius-md); z-index: 9000; display: flex; align-items: center; gap: 2rem; box-shadow: var(--shadow-lg); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); width: 90%; max-width: 800px; }
.cookie-popup.is-visible { transform: translateX(-50%) translateY(0); }
.cookie-text { flex: 1; font-size: 0.9rem; }
.cookie-text a { color: var(--clr-accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 1rem; }
.cookie-btn { padding: 0.6rem 1.2rem; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all var(--transition); }
.cookie-btn-accept { background: var(--clr-primary); color: #fff; border: none; }
.cookie-btn-accept:hover { background: var(--clr-primary-dark); }
.cookie-btn-decline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.cookie-btn-decline:hover { background: rgba(255,255,255,0.1); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 2rem 0; gap: 2rem; }
  .hero__content { margin: 0 auto; }
  .hero__actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__list { display: none; }
  .hamburger { display: block; }
  .cookie-popup { flex-direction: column; text-align: center; gap: 1rem; bottom: 1rem; }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}
