/* ============================================================
   TechStyle — Base: reset, variables, typography, utilities
   ============================================================ */

:root {
  /* Brand colors */
  --primary: #0b63ff;
  --primary-dark: #0347c2;
  --primary-darker: #052e7f;
  --primary-light: #e8f1ff;
  --accent-red: #ef3d47;
  --accent-red-dark: #d42632;
  --accent-blue-tag: #2f8fef;

  /* Navy (hero / footer / promo) */
  --navy-900: #040a1c;
  --navy-800: #071433;
  --navy-700: #0b1e48;
  --navy-600: #10285c;

  /* Neutrals */
  --ink: #0e1526;
  --ink-soft: #333c4f;
  --muted: #6b7280;
  --muted-light: #9aa3b2;
  --border: #e7eaf1;
  --border-soft: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-soft-2: #f0f3f9;

  /* Type */
  --font-heading: "Manrope", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Layout */
  --container: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 50px rgba(6, 15, 40, 0.18);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

svg {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

/* Section spacing rhythm */
.section {
  padding: 72px 0;
}
.section--tight {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
}

.section-sub {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  white-space: nowrap;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover {
  gap: 10px;
  color: var(--primary-dark);
}
.link-arrow:hover svg {
  transform: translateX(2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  border-radius: var(--radius-full);
  padding: 14px 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 99, 255, 0.32);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11, 99, 255, 0.4);
}
.btn-white {
  background: #fff;
  color: var(--navy-800);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 10px 20px;
  font-size: 13.5px;
}

/* Rating stars */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f5a623;
}
.rating svg {
  width: 14px;
  height: 14px;
}
.rating span {
  color: var(--muted);
  font-size: 12.5px;
  margin-left: 2px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  color: #fff;
  letter-spacing: 0.01em;
}
.badge-sale { background: var(--accent-red); }
.badge-hot { background: var(--accent-red); }
.badge-best { background: var(--accent-blue-tag); }
.badge-new { background: #19b674; }

/* Visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* AOS-light fallback so content isn't hidden if AOS fails to load */
[data-aos] {
  opacity: 1;
}

/* Skeleton container width used by JS-rendered grids before paint */
.grid {
  display: grid;
}
