/* DAVE-AI Computers website. Light theme. Tokens mirror src/theme.ts. */

:root {
  --navy: #07111f;
  --soft: #f2f5f9;
  --white: #ffffff;
  --electric: #20c8f5;
  --electric-deep: #0a8fb8;
  --vega: #4f46e5;
  --vega-tint: #eceafd;
  --electric-tint: #e3f8fd;
  --body: #1e293b;
  --muted: #475569;
  --line: #d9e0ea;

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-card: 0 1px 2px rgba(7, 17, 31, 0.06), 0 12px 32px -18px rgba(7, 17, 31, 0.22);
  --shadow-lift: 0 2px 4px rgba(7, 17, 31, 0.06), 0 22px 44px -20px rgba(7, 17, 31, 0.3);

  --header-h: 72px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --container: 1200px;
  --section-y: clamp(4rem, 8vw, 6.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--soft);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
figure,
ul,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  overflow-wrap: break-word;
  min-width: 0;
}

h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

p {
  max-width: 62ch;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--vega);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 60;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-nav a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  padding-block: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--electric);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Buttons: 56px minimum height, 2px focus outline. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0 1.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease), transform 150ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--electric);
  color: var(--navy);
  box-shadow: 0 10px 24px -12px rgba(32, 200, 245, 0.9);
}

.btn--primary:hover {
  background: #45d4f7;
}

.btn--outline {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}

.btn--dark:hover {
  background: #14203a;
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__copy {
  display: grid;
  gap: 1.5rem;
}

.hero__copy h1 span {
  color: var(--vega);
}

.hero__text {
  font-size: 1.15rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__points .icon {
  width: 18px;
  height: 18px;
  color: var(--electric-deep);
}

.hero__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 5 / 4;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shared section pieces */
.section {
  padding-block: var(--section-y);
}

.section--white {
  background: var(--white);
}

.section__head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2.75rem;
}

.section__head--row {
  align-items: end;
}

.section__head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--vega);
  text-decoration: none;
  min-height: 44px;
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Category grid: icon tiles */
.categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.category {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--navy);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}

.category:hover {
  background: var(--white);
  border-color: var(--line);
  transform: translateY(-2px);
}

.category__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}

.category__icon .icon {
  width: 26px;
  height: 26px;
}

.category__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.category__count {
  margin-top: -0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.tone-electric {
  background: var(--electric-tint);
  color: var(--electric-deep);
}

.tone-vega {
  background: var(--vega-tint);
  color: var(--vega);
}

.tone-navy {
  background: #e3e8f0;
  color: var(--navy);
}

/* Featured products */
.products {
  display: grid;
  gap: 1.25rem;
}

.product {
  display: grid;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 250ms var(--ease), transform 250ms var(--ease);
}

.product:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.product__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.product:hover .product__media img {
  transform: scale(1.03);
}

.product__body {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem 1.6rem 1.7rem;
}

.product__brand {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vega);
}

.product__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
}

.product__specs {
  margin-top: 0.4rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.97rem;
  color: var(--muted);
}

.product__specs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product__specs .icon {
  width: 16px;
  height: 16px;
  color: var(--electric-deep);
}

.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.product__foot strong {
  color: var(--navy);
}

/* Brands */
.brand-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.brand-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--soft);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  text-align: center;
}

.brand-note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Value cards */
.values {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.value__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--electric-tint);
  color: var(--electric-deep);
}

.value p {
  color: var(--muted);
  font-size: 1rem;
}

/* Call to action panel */
.cta {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.75rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e3f8fd 0%, #eceafd 100%);
  border: 1px solid #cfe9f4;
}

.cta h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.cta p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.cta__action {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.cta__action small {
  font-size: 0.95rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* About */
.about {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__body {
  display: grid;
  gap: 1.1rem;
}

.about__body p {
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c3ccd9;
  padding-block: 4rem 2.5rem;
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
}

.footer-brand {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.footer-logo {
  width: 92px;
  height: 92px;
  border-radius: 22px;
}

.footer-brand p {
  color: #b2bccb;
  font-size: 0.97rem;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.9rem;
}

.footer-nav {
  display: grid;
  gap: 0.2rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #d6dde8;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: #9aa6b8;
}

/* Privacy page */
.page-head {
  padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.meta-rows {
  margin-top: 1.75rem;
  max-width: 640px;
  border-top: 1px solid var(--navy);
}

.meta-rows__row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0.25rem 2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.meta-rows dt {
  font-weight: 600;
  color: var(--navy);
}

.meta-rows dd {
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 559px) {
  .meta-rows__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.prose {
  display: grid;
  gap: 2rem;
  max-width: 70ch;
  padding-block: 3.5rem var(--section-y);
  margin-inline: auto;
}

.prose h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.prose a {
  color: var(--vega);
  word-break: break-word;
}

/* Reveal on scroll. Content stays visible without scripts (.js is set in <head>). */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Tablet and up */
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .section__head--row {
    grid-template-columns: minmax(0, 1fr) auto;
    display: grid;
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product--wide {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .product--wide .product__media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .product--wide .product__body {
    align-content: center;
    padding: 2.25rem;
  }

  .product--wide .product__name {
    font-size: 1.7rem;
  }
}

/* Desktop */
@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 4rem;
  }

  .categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
    box-shadow: var(--shadow-card);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    position: relative;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .brand-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values {
    grid-template-columns: minmax(0, 1fr);
  }

  .categories {
    column-gap: 24px;
  }

  .product__foot {
    flex-wrap: wrap;
  }
}
