/* Clooly Neon/Material Design System */
@font-face {
  font-family: "Inter";
  src: url("../font/inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../font/inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../font/inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --font-sans: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* === LIGHT MODE (Default) === */
  /* Palette */
  --color-primary: #111111;        /* Monochrome Black */
  --color-primary-dark: #000000;
  --color-secondary: #333333;      /* Dark Gray */
  --color-accent: #2cb67d;
  --color-accent-dark: #209966;
  
  /* Backgrounds */
  --bg-app: #f4f5f7;               /* Cool Light Gray */
  --bg-surface: #ffffff;           /* Pure White */
  --bg-surface-glass: rgba(255, 255, 255, 0.75);
  --bg-surface-strong: #ffffff;
  
  /* Text */
  --text-main: #16161a;
  --text-muted: #94a1b2;
  --text-inverse: #fffffe;
  
  /* Borders & Effects */
  --border-color: rgba(22, 22, 26, 0.1);
  --border-strong: rgba(22, 22, 26, 0.2);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow-primary: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-glow-accent: 0 8px 24px rgba(0, 0, 0, 0.1);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #7f3af0 0%, #6246ea 100%);
  --grad-accent: linear-gradient(135deg, #2cb67d 0%, #209966 100%);
  --grad-surface: linear-gradient(145deg, #ffffff, #f9fafb);
  
  /* Layout */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 999px;
  
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --blur-glass: blur(16px);

  /* Legacy Compatibility */
  --cb-primary: var(--color-primary);
  --cb-primary-dark: var(--color-primary-dark);
  --cb-secondary: var(--color-secondary);
  --cb-accent: var(--color-accent);
  --cb-accent-dark: var(--color-accent-dark);
  --cb-ink: var(--text-main);
  --cb-ink-soft: var(--text-muted);
  --cb-surface: var(--bg-surface);
  --cb-border: var(--border-color);
  --cb-shadow-soft: var(--shadow-sm);
  --cb-shadow-medium: var(--shadow-md);
}

@media (prefers-color-scheme: dark) {
  /*
  :root {
    /* === DARK MODE DISABLED - FORCE LIGHT THEME === */
    /* Reuse Light Mode Variables for consistency */
    --color-primary: #111111;
    --color-primary-dark: #000000;
    --color-secondary: #333333;
    --color-accent: #2cb67d;
    --color-accent-dark: #209966;
    
    --bg-app: #f4f5f7;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.75);
    --bg-surface-strong: #ffffff;
    
    --text-main: #16161a;
    --text-muted: #94a1b2;
    --text-inverse: #fffffe;
    
    --border-color: rgba(22, 22, 26, 0.1);
    --border-strong: rgba(22, 22, 26, 0.2);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow-primary: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-glow-accent: 0 8px 24px rgba(0, 0, 0, 0.1);
    
    --grad-surface: linear-gradient(145deg, #ffffff, #f9fafb);
  }
  */
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: #ebebeb; /* Plain light background */
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.55;
  transition: background var(--transition-base), color var(--transition-base);
}

/* Alternating Section Backgrounds */
.bg-white {
  background-color: #ffffff;
}

/* Context-aware card styles */
.bg-white .card,
.bg-white .product-card,
.bg-white .about-card,
.bg-white .story-card,
.bg-white .hero-metric {
  background-color: #f5f5f7; /* Light gray on white */
  border-color: rgba(0,0,0,0.06);
}

/* Default (Gray Section) card styles */
.card,
.product-card,
.about-card,
.story-card,
.hero-metric {
  background-color: #ffffff; /* White on gray */
  border-color: rgba(0,0,0,0.08);
}

/* Background Ambient Glow - Removed */
/*
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(circle at 10% 10%, rgba(127, 58, 240, 0.08), transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(44, 182, 125, 0.06), transparent 40%);
  pointer-events: none;
}
*/

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--text-muted);
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* === UTILITIES === */
.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === BUTTONS === */
.btn, ._primaryBtn, ._secondaryBtn, ._primaryBtn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 2.75rem;
  border-radius: 4px; /* Minimal radius */
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease-out;
  border: 1px solid transparent;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Primary: Outline Black (Apple style) */
.btn--primary, ._primaryBtn {
  background: transparent;
  color: var(--text-main) !important;
  border-color: var(--text-main);
  border-width: 1.5px;
  box-shadow: none;
}

.btn--primary:hover, ._primaryBtn:hover {
  background: var(--text-main);
  color: #fff !important;
  border-color: var(--text-main);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Secondary: Outline */
.btn--secondary, ._secondaryBtn, ._primaryBtn2 {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn--secondary:hover, ._secondaryBtn:hover, ._primaryBtn2:hover {
  border-color: var(--text-main);
  background: rgba(0,0,0,0.02);
}

.btn--ghost {
  background: transparent;
  color: var(--text-main);
  border-color: transparent;
  padding-inline: 1rem;
}

.btn--ghost:hover {
  color: var(--color-primary);
  background: rgba(0,0,0,0.03);
}

/* Product Card specific button overrides */
.product-card__cta .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  min-height: 2.25rem;
  border-radius: 4px;
}

/* === CARDS & SURFACES === */
.surface, .card {
  background: var(--bg-surface-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
}

.card[data-hover="lift"]:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.site-header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 1.5rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.site-nav__link {
  padding: 0.5rem 0.25rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.site-nav__link:hover {
  color: var(--text-main);
  background: transparent;
}

.site-nav__link[aria-current="page"] {
  color: var(--text-main);
  background: transparent;
  box-shadow: none;
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Dark mode overrides for nav - DISABLED */
@media (prefers-color-scheme: dark) {
  /*
  .site-nav {
    background: transparent;
  }
  .site-nav__link:hover {
    background: transparent;
    color: var(--text-main);
  }
  .site-nav__link[aria-current="page"] {
    background: transparent;
    color: var(--text-main);
  }
  */
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* AI-Trainer specific style */
.site-header__actions .btn--ghost {
  font-size: 0.9rem;
  padding-inline: 1rem;
  color: var(--text-main);
  opacity: 0.7;
}

.site-header__actions .btn--ghost:hover {
  opacity: 1;
  background: transparent;
  color: var(--color-primary);
}
.site-footer {
  position: relative;
  margin-top: var(--space-3xl);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  overflow: hidden;
}

.site-footer__halo {
  position: absolute;
  inset: 0;
  /* Removed gradients */
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

.site-footer ._container {
  position: relative;
  z-index: 1;
}

.site-footer__panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .site-footer__brand {
    grid-column: span 2;
  }
}

.site-footer__logo {
  display: flex;
  align-items: center;
}

.site-footer__logo img {
  max-width: 120px;
  height: auto;
}

.site-footer__text {
  font-size: 1rem;
  color: var(--text-muted);
}

.site-footer__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__highlights li {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer__social-link {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.site-footer__social-link img {
  width: 22px;
  height: 22px;
}

.site-footer__social-link:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--text-muted);
}

.site-footer__nav a {
  color: inherit;
  font-weight: 500;
}

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

.site-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.site-footer__contact-list span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-footer__contact-list p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
}

.site-footer__contact-list a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.site-footer__cta {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 28px;
  border: 1px solid var(--border-color);
  background: var(--grad-surface);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .site-footer__cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__cta-text h4 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: 0.4rem;
}

.site-footer__cta-text p {
  max-width: 460px;
}

.site-footer__form {
  display: grid;
  gap: 0.8rem;
  width: min(420px, 100%);
}

@media (min-width: 576px) {
  .site-footer__form {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .site-footer__form .btn {
    height: 56px;
    padding-inline: 2rem;
  }
}

.site-footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer__bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__bottom-links a {
  color: inherit;
  font-weight: 500;
}

/* === FORMS === */
.field__control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: inherit;
  transition: all var(--transition-base);
}

.field__control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(127, 58, 240, 0.15);
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--primary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-primary);
}

.badge--accent {
  background: rgba(44, 182, 125, 0.12);
  color: var(--color-accent);
}

/* === MOBILE NAV === */
.burger-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
}

@media (max-width: 991px) {
  /* Mobile Nav Background */
  .site-nav {
    display: none;
    position: fixed;
    inset: 5rem 1rem auto;
    background: #ffffff; /* Solid white background for readability */
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    z-index: 1001; /* Ensure it's above other elements */
  }
  
  .site-nav[data-open="true"] {
    display: flex;
  }
  
  /* Burger Toggle Button - Clean & Straight */
  .burger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-main);
    cursor: pointer;
    padding: 0;
    position: relative;
  }

  /* Reset pseudo-elements */
  .burger-toggle::before,
  .burger-toggle::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
    left: 9px; /* Center horizontally (40 - 20) / 2 - 1px border */
  }
  
  /* Top line and Middle line (via shadow) */
  .burger-toggle::before {
    top: 13px;
    box-shadow: 0 6px 0 0 currentColor; /* Middle line */
  }
  
  /* Bottom line */
  .burger-toggle::after {
    top: 25px;
  }

  /* Active State (X) */
  .burger-toggle[aria-expanded="true"]::before {
    top: 19px;
    box-shadow: none;
    transform: rotate(45deg);
  }
  
  .burger-toggle[aria-expanded="true"]::after {
    top: 19px;
    transform: rotate(-45deg);
  }
}

/* === CART === */
.site-header__cart {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: grid;
  place-items: center;
  color: var(--text-main);
  transition: all var(--transition-base);
}

.site-header__cart:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-glow-primary);
}

.site-header__cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(127, 58, 240, 0.4);
}

/* === UTILITIES & HELPERS === */
._d-mn-l { display: none; }
@media (min-width: 992px) { ._d-mn-l { display: block !important; } }

/* Legacy support to prevent breakage */
._p-y { padding-block: 4rem; }
.section-headline {
  margin-bottom: 3rem;
}
.section-headline__title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.section-headline__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}
