/* ===== LifestyleTechie — Design System ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --ink: #0a0a0b;
  --ink-soft: #4a4d54;
  --ink-faint: #8a8e96;
  --line: #e7e9ee;
  --accent: #ff4d2e;
  --accent-soft: #ffe9e3;
  --accent-2: #1a1a1f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10,10,15,.04), 0 8px 30px rgba(10,10,15,.06);
  --shadow-lg: 0 12px 50px rgba(10,10,15,.14);
  --maxw: 1180px;
  --ease: cubic-bezier(.22,1,.36,1);
  --nav-h: 68px;
}
[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-alt: #111114;
  --surface: #141417;
  --surface-2: #1a1a1e;
  --ink: #f2f3f5;
  --ink-soft: #b4b7be;
  --ink-faint: #797d86;
  --line: #26262c;
  --accent: #ff5a3c;
  --accent-soft: #2a1712;
  --accent-2: #f2f3f5;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 50px rgba(0,0,0,.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Clash Display", "Plus Jakarta Sans", sans-serif; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.accent { color: var(--accent); }
section { position: relative; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 1.18rem; letter-spacing: -.02em; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .94rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.theme-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; display: grid; place-items: center;
  color: var(--ink); transition: transform .3s var(--ease), border-color .2s; font-size: 1.05rem;
}
.theme-btn:hover { transform: rotate(20deg); border-color: var(--accent); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px;
  border-radius: 100px; font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn-dark { background: var(--accent-2); color: var(--bg); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===== Hero ===== */
.hero { padding: calc(var(--nav-h) + 70px) 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: .9; z-index: 0; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
  background: var(--accent-soft); padding: 7px 14px; border-radius: 100px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); max-width: 14ch; margin-bottom: 22px; }
.hero p.sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 52ch; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 42px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .stat strong { font-family: "Clash Display", sans-serif; font-size: 2rem; display: block; }
.hero-stats .stat span { font-size: .88rem; color: var(--ink-faint); }

/* ===== Section heading ===== */
.section { padding: 84px 0; }
.section-head { margin-bottom: 48px; max-width: 640px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.bg-alt { background: var(--bg-alt); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-text p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.06rem; }
.about-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.about-card .row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.about-card .row:last-child { border-bottom: 0; }
.about-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.about-card .row strong { display: block; font-size: .98rem; }
.about-card .row span { font-size: .86rem; color: var(--ink-faint); }

/* ===== Categories ===== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  position: relative; overflow: hidden; cursor: pointer;
}
.cat-card::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent-soft), transparent);
  opacity: 0; transition: opacity .35s; z-index: 0;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card:hover::after { opacity: 1; }
.cat-card > * { position: relative; z-index: 1; }
.cat-card .emoji { font-size: 2rem; margin-bottom: 18px; display: block; }
.cat-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.cat-card p { font-size: .92rem; color: var(--ink-soft); }
.cat-card .arrow { margin-top: 18px; font-size: .88rem; font-weight: 600; color: var(--accent); display: inline-flex; gap: 6px; }

/* ===== Why ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { text-align: left; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .3s var(--ease); }
.why-card:hover { transform: translateY(-5px); }
.why-card .num { font-family: "Clash Display", sans-serif; font-size: 1.4rem; color: var(--accent); margin-bottom: 14px; }
.why-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { font-size: .9rem; color: var(--ink-soft); }

/* ===== Content grid ===== */
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.content-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.content-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.content-card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--surface-2), var(--bg-alt)); display: grid; place-items: center; font-size: 2.6rem; position: relative; }
.content-card .tag { position: absolute; top: 14px; left: 14px; background: var(--bg); color: var(--ink); font-size: .72rem; font-weight: 600; padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line); }
.content-card .body { padding: 22px; }
.content-card .body h4 { font-size: 1.12rem; margin-bottom: 8px; }
.content-card .body p { font-size: .9rem; color: var(--ink-soft); }

/* ===== Social strip ===== */
.social-strip { display: flex; gap: 16px; flex-wrap: wrap; }
.social-link {
  flex: 1; min-width: 150px; display: flex; align-items: center; gap: 14px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s; font-weight: 600;
}
.social-link:hover { transform: translateY(-4px); border-color: var(--accent); }
.social-link .si { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.social-link span.h { font-size: .96rem; display: block; }
.social-link span.s { font-size: .8rem; color: var(--ink-faint); font-weight: 500; }
.si-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.si-tt { background: #000; }
.si-fb { background: #1877f2; }
.si-yt { background: #ff0000; }
[data-theme="dark"] .si-tt { background: #25252b; }

/* ===== CTA band ===== */
.cta-band { background: var(--accent-2); border-radius: 28px; padding: 60px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--bg); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: color-mix(in srgb, var(--bg) 65%, var(--ink-faint)); margin-bottom: 28px; max-width: 46ch; margin-left: auto; margin-right: auto; }

/* ===== Footer ===== */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid p { color: var(--ink-soft); font-size: .92rem; max-width: 34ch; margin-top: 14px; }
.footer h5 { font-family: "Plus Jakarta Sans", sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 16px; font-weight: 700; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: .92rem; color: var(--ink-soft); transition: color .2s; }
.footer ul li a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: .86rem; color: var(--ink-faint); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); transition: .25s var(--ease); }
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Affiliate page ===== */
.aff-controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.search-box { flex: 1; min-width: 230px; position: relative; }
.search-box input {
  width: 100%; padding: 13px 16px 13px 44px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: .95rem; font-family: inherit; transition: border-color .2s;
}
.search-box input:focus { outline: none; border-color: var(--accent); }
.search-box .si-search { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); font-size: .88rem; font-weight: 500; cursor: pointer; transition: .2s var(--ease); font-family: inherit;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .pimg { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--surface-2), var(--bg-alt)); display: grid; place-items: center; font-size: 3rem; }
.product-card .pbody { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-card .pcat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 8px; }
.product-card h4 { font-size: 1.12rem; margin-bottom: 8px; }
.product-card .pdesc { font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; flex: 1; }
.product-card .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.product-card .disclosure { font-size: .72rem; color: var(--ink-faint); }
.no-results { text-align: center; padding: 60px 0; color: var(--ink-faint); grid-column: 1/-1; }
.disclosure-banner { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--radius); padding: 18px 22px; font-size: .9rem; color: var(--ink-soft); margin-bottom: 34px; }
.disclosure-banner strong { color: var(--ink); }

/* ===== Contact page ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: .95rem; font-family: inherit; transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field .err { color: var(--accent); font-size: .8rem; margin-top: 6px; display: none; }
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--accent); }
.form-field.invalid .err { display: block; }
.form-success { display: none; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--radius-sm); padding: 16px; color: var(--ink); font-weight: 500; margin-bottom: 18px; }
.contact-side .info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 20px; }
.contact-side .info-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.contact-side .info-card p { color: var(--ink-soft); font-size: .96rem; }
.contact-side .loc { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 600; }
.contact-side .loc .ico { color: var(--accent); }

/* ===== Page header ===== */
.page-head { padding: calc(var(--nav-h) + 60px) 0 30px; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.page-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 52ch; margin: 0 auto; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .cat-grid, .content-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: flex-start;
    background: var(--bg); padding: 22px; gap: 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
  .burger { display: flex; }
  .cat-grid, .content-grid, .product-grid, .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .cta-band { padding: 44px 24px; }
  .section { padding: 60px 0; }
}
