/* ============================================
   ABOUND CORPORATION — Design Tokens & Styles
   Dark/Moody/Premium — Blue-Purple Gradient Energy
   ============================================ */

/* --- Type Scale --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* --- Spacing (4px base) --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Typography --- */
  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* --- Brand Gradients --- */
  --gradient-primary: linear-gradient(135deg, #4f6ef7, #8b5cf6, #a855f7);
  --gradient-accent: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-subtle: linear-gradient(135deg, rgba(79,110,247,0.15), rgba(139,92,246,0.15));
  --gradient-text: linear-gradient(135deg, #6ea4f7, #a78bfa, #c084fc);

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ===========================
   COLOR SYSTEM — DARK PREMIUM
   Blue-Purple core, Gold accent
   =========================== */

:root, [data-theme="dark"] {
  --color-bg:             #08080c;
  --color-surface:        #0e0e14;
  --color-surface-2:      #14141c;
  --color-surface-offset: #111118;
  --color-surface-offset-2: #1a1a24;
  --color-surface-dynamic: #1e1e2a;
  --color-divider:        #222233;
  --color-border:         #2a2a3d;

  --color-text:           #e4e2ef;
  --color-text-muted:     #8886a0;
  --color-text-faint:     #4e4c66;
  --color-text-inverse:   #08080c;

  /* Primary — Blue-Purple Gradient (rendered as solid for tokens) */
  --color-primary:        #7c6cf7;
  --color-primary-hover:  #9488fa;
  --color-primary-active: #6458d9;
  --color-primary-highlight: #1c1a30;

  /* Gold — subtle accent, not primary */
  --color-gold:           #c9a84c;
  --color-gold-hover:     #dab85a;
  --color-gold-muted:     rgba(201, 168, 76, 0.5);

  /* Error */
  --color-error:          #e05c6c;
  --color-error-hover:    #e87080;
  --color-error-active:   #c44a58;

  /* Success */
  --color-success:        #4aba6a;
  --color-success-hover:  #5ecc7c;
  --color-success-active: #3aa058;

  /* Shadows — cool-tinted */
  --shadow-sm: 0 1px 2px oklch(0.1 0.02 280 / 0.3);
  --shadow-md: 0 4px 16px oklch(0.1 0.02 280 / 0.35);
  --shadow-lg: 0 12px 40px oklch(0.1 0.03 280 / 0.45);
}

[data-theme="light"] {
  --color-bg:             #f4f3f8;
  --color-surface:        #faf9fe;
  --color-surface-2:      #ffffff;
  --color-surface-offset: #eceaf2;
  --color-surface-offset-2: #e4e2ec;
  --color-surface-dynamic: #dbd8e5;
  --color-divider:        #d2d0dc;
  --color-border:         #c5c3d0;

  --color-text:           #16152a;
  --color-text-muted:     #5e5c78;
  --color-text-faint:     #9896b0;
  --color-text-inverse:   #f4f3f8;

  --color-primary:        #5b4cd4;
  --color-primary-hover:  #4a3cbf;
  --color-primary-active: #3d32a5;
  --color-primary-highlight: #e8e4f8;

  --color-gold:           #9a7b2e;
  --color-gold-hover:     #7d6424;
  --color-gold-muted:     rgba(154, 123, 46, 0.4);

  --color-error:          #c43548;
  --color-success:        #2e8a45;

  --shadow-sm: 0 1px 2px oklch(0.3 0.02 280 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.3 0.02 280 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.3 0.02 280 / 0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:             #f4f3f8;
    --color-surface:        #faf9fe;
    --color-surface-2:      #ffffff;
    --color-surface-offset: #eceaf2;
    --color-surface-offset-2: #e4e2ec;
    --color-surface-dynamic: #dbd8e5;
    --color-divider:        #d2d0dc;
    --color-border:         #c5c3d0;
    --color-text:           #16152a;
    --color-text-muted:     #5e5c78;
    --color-text-faint:     #9896b0;
    --color-text-inverse:   #f4f3f8;
    --color-primary:        #5b4cd4;
    --color-primary-hover:  #4a3cbf;
    --color-primary-active: #3d32a5;
    --color-primary-highlight: #e8e4f8;
    --color-gold:           #9a7b2e;
    --color-gold-muted:     rgba(154, 123, 46, 0.4);
    --color-error:          #c43548;
    --color-success:        #2e8a45;
    --shadow-sm: 0 1px 2px oklch(0.3 0.02 280 / 0.06);
    --shadow-md: 0 4px 12px oklch(0.3 0.02 280 / 0.08);
    --shadow-lg: 0 12px 32px oklch(0.3 0.02 280 / 0.12);
  }
}


/* ===========================
   GLOBAL STYLES
   =========================== */

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* --- Gradient text utility --- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s var(--ease-out);
}

.nav--scrolled {
  box-shadow: 0 1px 0 var(--color-divider);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.nav__logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition-interactive);
}

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

.nav__links a.active {
  color: var(--color-text);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s var(--ease-out);
}

.theme-toggle {
  padding: var(--space-2);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-primary);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-6);
    gap: var(--space-6);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }
}


/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-32) var(--space-6) var(--space-16);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, oklch(0.35 0.12 270 / 0.18), transparent),
    radial-gradient(ellipse 40% 60% at 80% 30%, oklch(0.30 0.10 290 / 0.12), transparent),
    radial-gradient(ellipse 30% 30% at 60% 70%, oklch(0.28 0.06 50 / 0.06), transparent);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.hero__eyebrow .gold-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  margin-right: var(--space-2);
  vertical-align: middle;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  max-width: 14ch;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
  line-height: 1.6;
  margin-bottom: var(--space-10);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: var(--gradient-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              opacity var(--transition-interactive);
}

.hero__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px oklch(0.4 0.15 270 / 0.3);
}

.hero__cta:active {
  transform: translateY(0);
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}


/* --- Sections --- */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
}

.section__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.section__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-12);
}


/* --- Product Cards --- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  overflow: hidden;
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-interactive);
}

.product-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}

.product-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.product-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}

.product-card__desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: auto;
  transition: gap var(--transition-interactive),
              color var(--transition-interactive);
}

.product-card__link:hover {
  gap: var(--space-3);
  color: var(--color-primary-hover);
}

.product-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-interactive);
}

.product-card__link:hover svg {
  transform: translateX(2px);
}


/* --- Philosophy / Values --- */
.philosophy {
  border-top: 1px solid var(--color-divider);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
  }
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.value-item__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.6;
}

.value-item__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.value-item__desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
}


/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-divider);
}

.divider--accent {
  background: var(--gradient-primary);
  opacity: 0.2;
}


/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
}

.cta-banner__inner {
  max-width: var(--content-default);
  margin: 0 auto;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.cta-banner__desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 48ch;
  margin: 0 auto var(--space-10);
}


/* --- About Page --- */
.about-hero {
  padding-top: calc(var(--space-32) + var(--space-8));
  padding-bottom: var(--space-16);
}

.about-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-8);
  max-width: 16ch;
}

.about-hero__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.7;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about-block__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}

.about-block__text {
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* --- Contact Page --- */
.contact-hero {
  padding-top: calc(var(--space-32) + var(--space-8));
  padding-bottom: var(--space-8);
}

.contact-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.contact-hero__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-info__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.contact-info__value {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.contact-info__value a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              opacity var(--transition-interactive);
  align-self: flex-start;
}

.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px oklch(0.4 0.15 270 / 0.3);
}

.form-submit:active {
  transform: translateY(0);
}


/* --- Footer --- */
.footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-12) var(--space-6);
}

.footer__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

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

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 32ch;
}

.footer__links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}

.footer__links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: color var(--transition-interactive);
}

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

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer__bottom a:hover {
  color: var(--color-text-muted);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-4);
}


/* --- Scroll Reveal --- */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}


/* --- Grain overlay --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
}
