/* ============================================
   ARSES Landing — Main Styles
   ============================================ */

:root {
  --primary: #1f7a5c;
  --primary-light: #e8f5ef;
  --primary-dark: #165a44;
  --background: #f6f7f5;
  --text: #111111;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e5e7eb;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --transition: 250ms ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --container: 1400px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Section loader containers */
#ai-center,
#command-center,
#sellers,
#categories,
#suggestions,
#delivery,
#cta,
#footer {
  min-height: 1px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-3);
  }
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(31, 122, 92, 0.25);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(31, 122, 92, 0.3);
}

.btn--secondary {
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

/* ---- Badge ---- */

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 100px;
  margin-bottom: var(--space-2);
}

.badge--outline {
  background: transparent;
  border: 1.5px solid var(--primary);
}

/* ---- Glass ---- */

.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
}

/* ---- Section ---- */

.section {
  padding: var(--space-6) 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-5);
}

.section__header h2 {
  margin-bottom: var(--space-1);
  color: var(--text);
}

.section__header p {
  font-size: 1.0625rem;
}

/* ---- Fade-in (scroll animation base) ---- */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar/header styles: css/components/navbar.css (loaded by js/components/navbar.js) */

/* ---- Footer ---- */

.footer {
  --footer-bg: #0f1117;
  --footer-surface: #161a22;
  --footer-text: #c8cdd6;
  --footer-muted: #7b8494;
  --footer-heading: #f0f2f5;
  --footer-accent: #1f7a5c;
  --footer-accent-soft: rgba(31, 122, 92, 0.12);
  --footer-blue: #3b82f6;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-divider: linear-gradient(
    90deg,
    transparent 0%,
    rgba(31, 122, 92, 0.35) 20%,
    rgba(59, 130, 246, 0.25) 50%,
    rgba(31, 122, 92, 0.35) 80%,
    transparent 100%
  );

  position: relative;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--space-6) 0 var(--space-4);
  border-top: 1px solid var(--footer-border);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--footer-divider);
  pointer-events: none;
}

/* Top area: brand + columns */
.footer__top {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-4);
}

/* Brand block */
.footer__brand {
  max-width: 360px;
}

.footer .logo {
  color: var(--footer-heading);
  margin-bottom: var(--space-2);
}

.footer__eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--footer-accent);
  margin-bottom: var(--space-2);
}

.footer__desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--footer-muted);
  margin-bottom: var(--space-3);
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-3);
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--footer-text);
  background: var(--footer-accent-soft);
  border: 1px solid rgba(31, 122, 92, 0.2);
  border-radius: 100px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__email {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--footer-heading);
  transition: color var(--transition);
}

.footer__email:hover {
  color: var(--footer-accent);
}

.footer__holding {
  font-size: 0.75rem;
  color: var(--footer-muted);
}

/* Link columns */
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-3);
}

.footer__col-title {
  color: var(--footer-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__col a {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--footer-muted);
  transition: color var(--transition), transform var(--transition);
}

.footer__col a:hover {
  color: var(--footer-heading);
}

.footer__col a:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer__link-strong {
  font-weight: 500;
  color: var(--footer-text) !important;
}

.footer__link-strong:hover {
  color: var(--footer-accent) !important;
}

.footer__link-strong.is-disabled {
  color: var(--footer-muted) !important;
  opacity: 0.52;
}

.footer__link-strong.is-disabled:hover {
  color: var(--footer-muted) !important;
}

/* Footer disabled link states */
.footer__col .arses-footer-link.is-disabled {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--footer-muted);
  opacity: 0.52;
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

.footer__col .arses-footer-link.is-disabled:hover {
  color: var(--footer-muted);
}

/* Compliance note */
.footer__compliance {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--footer-muted);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--footer-border);
  border-bottom: 1px solid var(--footer-border);
  margin-bottom: var(--space-3);
  max-width: 72ch;
}

/* Bottom bar */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--footer-muted);
}

.footer__mission {
  font-size: 0.8125rem;
  color: var(--footer-muted);
  opacity: 0.85;
}

/* Tablet */
@media (min-width: 768px) {
  .footer__nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
  }

  .footer__mission {
    text-align: right;
    max-width: 420px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .footer__top {
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: var(--space-6);
    align-items: start;
  }

  .footer__nav {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-3);
  }

  .footer__compliance {
    max-width: none;
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .footer {
    padding: var(--space-7) 0 var(--space-4);
  }

  .footer__top {
    gap: var(--space-7);
  }
}
