/* =========================================================
   Al Khat Al Ahmar — Solar & Energy
   Design system + components
   ========================================================= */

:root {
  /* Brand */
  --red: #c8102e;
  --red-dark: #a30c25;
  --orange: #ff8a00;
  --yellow: #ffc107;
  --charcoal: #1f2933;
  --ink: #12202c;
  --navy: #16314f;

  /* Neutrals */
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-soft-2: #eef2f6;
  --line: #e6eaef;
  --muted: #5b6775;
  --muted-2: #8b97a4;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(18, 32, 44, .06), 0 1px 2px rgba(18, 32, 44, .04);
  --shadow: 0 10px 30px rgba(18, 32, 44, .08);
  --shadow-lg: 0 24px 60px rgba(18, 32, 44, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --container: 1200px;
  --header-h: 76px;

  --grad-solar: linear-gradient(135deg, var(--orange), var(--yellow));
  --grad-red: linear-gradient(135deg, var(--red), var(--red-dark));

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
/* Inline SVG icons must NOT inherit img-like block sizing — that blows them up to full width. */
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; max-width: none; overflow: visible; }
/* Safety net: any SVG without explicit width/height stays icon-sized */
svg:not([width]) { width: 1.25rem; height: 1.25rem; max-width: 1.25rem; max-height: 1.25rem; }

/* ---- Icon containers & sizes (never use display:block on icons) ---- */
.trust-stars { display: inline-flex; flex-direction: row; align-items: center; gap: 2px; color: var(--orange); flex: none; vertical-align: middle; }
.trust-stars svg { width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important; }
.trust-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 22px; }

.cat-ic svg { width: 32px !important; height: 32px !important; max-width: 32px !important; max-height: 32px !important; }

.cat-arrow { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--red); line-height: 1; }
.cat-arrow svg { width: 14px !important; height: 14px !important; max-width: 14px !important; max-height: 14px !important; stroke-width: 2; }

.hero-card .ic svg { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
.btn svg { width: 18px !important; height: 18px !important; max-width: 18px !important; max-height: 18px !important; }
.feature .ic svg, .solution .ic svg { width: 26px !important; height: 26px !important; max-width: 26px !important; max-height: 26px !important; }
.benefit .ic svg { width: 30px !important; height: 30px !important; max-width: 30px !important; max-height: 30px !important; }
.deye-features .ic { width: 38px; height: 38px; min-width: 38px; min-height: 38px; overflow: hidden; flex-shrink: 0; }
.deye-features .ic svg { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
.float-wa svg { width: 28px !important; height: 28px !important; max-width: 28px !important; max-height: 28px !important; }
.to-top svg { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
.search-box svg, .check-list li svg, .partner li svg, .footer-contact svg, .footer-social svg, .feature-bullets li svg, .carousel-btn svg, .cta-contact .ic svg, .info-item .ic svg, .download-item .ic svg { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid rgba(255, 138, 0, .55); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: #dfe7ef; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.grid { display: grid; gap: 26px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red);
  background: rgba(200, 16, 46, .08); padding: 7px 14px; border-radius: 999px;
}
.section-head { max-width: 720px; margin: 0 auto 50px; }
.section-head.left { margin-inline: 0; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 16px 0 12px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.section--ink .section-title { color: #fff; }
.section--ink .section-sub { color: #aab8c6; }
.text-grad { background: var(--grad-solar); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .96rem;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-red); color: #fff; box-shadow: 0 10px 24px rgba(200, 16, 46, .28); }
.btn-primary:hover { box-shadow: 0 16px 32px rgba(200, 16, 46, .36); }
.btn-solar { background: var(--grad-solar); color: #2a1c00; box-shadow: 0 10px 24px rgba(255, 138, 0, .3); }
.btn-solar:hover { box-shadow: 0 16px 32px rgba(255, 138, 0, .4); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0c1822; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--orange); color: var(--red); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); letter-spacing: -.02em; }
.brand-text span { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--charcoal);
  padding: 9px 14px; border-radius: 10px; transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--red); background: var(--bg-soft); }
.nav-links a.active { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 80% -10%, #fff5e7 0%, #ffffff 55%); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(22, 49, 79, .05) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(#000, transparent 70%); pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: 72px 0 84px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: 18px; }
.hero h1 .accent { color: var(--red); }
.hero .lead { font-size: 1.16rem; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; }
.hero-stat strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--ink); display: block; }
.hero-stat span { font-size: .85rem; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual img { filter: drop-shadow(0 30px 50px rgba(18, 32, 44, .14)); }
.hero-badge {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600;
  font-family: var(--font-head); animation: floaty 5s ease-in-out infinite;
}
.hero-badge i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-solar); color: #2a1c00; }
.hero-badge.b1 { top: 18px; left: -10px; }
.hero-badge.b2 { bottom: 26px; right: -6px; animation-delay: 1.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Category cards ---------- */
.cat-grid { grid-template-columns: repeat(6, 1fr); }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cat-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-soft); color: var(--red); transition: .2s; }
.cat-card:hover .cat-ic { background: var(--grad-solar); color: #2a1c00; transform: rotate(-6deg); }
.cat-ic svg { width: 32px; height: 32px; }
.cat-card h3 { font-size: 1rem; margin-bottom: 4px; }
.cat-card p { font-size: .82rem; color: var(--muted); }

/* ---------- Feature / Why cards ---------- */
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(255, 138, 0, .12); color: var(--orange); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; }
.feature .ic svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* "Why solar" benefits on ink/soft band */
.benefit-grid { grid-template-columns: repeat(4, 1fr); }
.benefit { text-align: center; padding: 14px; }
.benefit .ic { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-solar); color: #2a1c00; }
.benefit .ic svg { width: 34px; height: 34px; }
.benefit h3 { font-size: 1.08rem; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: .9rem; }
.section--ink .benefit p { color: #9fb0bf; }

/* ---------- Product cards ---------- */
.product-grid { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #ffffff 0%, #f1f4f8 100%); overflow: hidden; display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: radial-gradient(60% 100% at 50% 100%, rgba(18,32,44,.06), transparent 70%); pointer-events: none; }
.card-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(18, 32, 44, .85); color: #fff;
  font-size: .72rem; font-weight: 600; font-family: var(--font-head); padding: 6px 11px; border-radius: 999px;
  letter-spacing: .02em; backdrop-filter: blur(4px);
}
.card-brand {
  position: absolute; top: 12px; right: 12px; background: var(--grad-solar); color: #2a1c00;
  font-size: .68rem; font-weight: 700; font-family: var(--font-head); padding: 5px 10px; border-radius: 999px;
}
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.card-body h3 a:hover { color: var(--red); }
.card-desc { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.spec-chips span {
  font-size: .76rem; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 8px; font-weight: 500;
}
.card-actions { display: flex; gap: 10px; margin-top: auto; }
.card-actions .btn { flex: 1; }

/* ---------- Filters / search ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted-2); }
.search-box input {
  width: 100%; padding: 13px 16px 13px 44px; border: 1px solid var(--line); border-radius: 999px;
  font-family: inherit; font-size: .95rem; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 138, 0, .14); }
.result-count { color: var(--muted); font-size: .9rem; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  font-family: var(--font-head); font-weight: 500; font-size: .88rem; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--charcoal); transition: .18s;
}
.chip:hover { border-color: var(--orange); color: var(--red); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters-main { gap: 12px; margin-bottom: 14px; }
.filters-main .chip { font-size: .95rem; font-weight: 600; padding: 11px 22px; }
.filters-sub { gap: 8px; margin-bottom: 30px; padding-top: 16px; border-top: 1px dashed var(--line); }
.filters-sub .chip-sub { font-size: .82rem; padding: 7px 14px; }
.filters-sub .chip-sub.active { background: var(--red); color: #fff; border-color: var(--red); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Brand / partner ---------- */
.partner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 46px; box-shadow: var(--shadow);
}
.partner-logo {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800;
  font-size: 2rem; color: var(--ink); letter-spacing: -.02em;
}
.partner-logo b { color: var(--red); }
.partner ul { display: grid; gap: 12px; margin: 22px 0 28px; }
.partner li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.partner li svg { width: 22px; height: 22px; color: #27c07a; flex: none; margin-top: 2px; }
.brand-marquee { display: flex; flex-wrap: wrap; gap: 16px; }
.brand-pill {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px;
  font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.brand-pill.featured { background: var(--grad-red); color: #fff; border-color: transparent; }

/* ---------- Split solution feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.check-list { display: grid; gap: 14px; margin: 24px 0 30px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li svg { width: 24px; height: 24px; color: var(--red); flex: none; }
.check-list li strong { display: block; color: var(--ink); font-family: var(--font-head); }
.check-list li span { color: var(--muted); font-size: .92rem; }

/* ---------- Solutions cards ---------- */
.solution-grid { grid-template-columns: repeat(3, 1fr); }
.solution {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.solution::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-solar); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.solution:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.solution:hover::after { transform: scaleX(1); }
.solution .ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(200, 16, 46, .08); color: var(--red); }
.solution .ic svg { width: 28px; height: 28px; }
.solution h3 { font-size: 1.25rem; margin-bottom: 12px; }
.solution .problem, .solution .benefit-line { font-size: .92rem; margin-bottom: 10px; }
.solution .problem strong, .solution .benefit-line strong { font-family: var(--font-head); color: var(--ink); }
.solution .problem { color: var(--muted); }
.solution .benefit-line { color: var(--charcoal); }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.compare, table.specs { width: 100%; border-collapse: collapse; min-width: 560px; }
table.compare th, table.compare td, table.specs th, table.specs td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
table.compare thead th { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600; }
table.compare tbody th { font-family: var(--font-head); color: var(--ink); font-weight: 600; background: var(--bg-soft); }
table.specs th { width: 42%; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
table.specs tr:last-child td, table.specs tr:last-child th { border-bottom: none; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px; -ms-overflow-style: none; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex: 0 0 320px; }
.carousel-nav { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.carousel-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow-sm); transition: .18s; }
.carousel-btn:hover { background: var(--ink); color: #fff; }
.carousel-btn svg { width: 20px; height: 20px; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--grad-red); color: #fff; border-radius: var(--radius-lg); padding: 56px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, .88); margin-bottom: 0; }
.cta-contacts { display: grid; gap: 14px; position: relative; }
.cta-contact { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 14px 18px; border-radius: 14px; backdrop-filter: blur(4px); }
.cta-contact .ic { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--red); display: grid; place-items: center; flex: none; }
.cta-contact small { display: block; opacity: .82; font-size: .76rem; }
.cta-contact strong { font-family: var(--font-head); font-size: 1.05rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .88rem; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; font-family: inherit;
  font-size: .95rem; background: #fff; color: var(--charcoal); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 138, 0, .14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-size: .9rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(39, 192, 122, .12); color: #18794e; }
.form-status.err { background: rgba(200, 16, 46, .1); color: var(--red-dark); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--ink), var(--navy)); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 24px 24px; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-hero p { color: #a9bccd; max-width: 640px; }
.breadcrumbs { font-size: .85rem; color: #8ba1b4; margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs span { color: var(--orange); }

/* ---------- Product detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.gallery-main { background: linear-gradient(160deg, #ffffff, #eef2f6); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 26px; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.gallery-thumbs button { width: 84px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: var(--bg-soft); padding: 0; }
.gallery-thumbs button.active { border-color: var(--orange); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.detail-meta .cat-label { color: var(--red); font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.detail-meta h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 8px 0 16px; }
.detail-meta .lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.downloads { display: grid; gap: 12px; }
.download-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: .18s; }
.download-item:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.download-item .ic { width: 42px; height: 42px; border-radius: 10px; background: rgba(200, 16, 46, .08); color: var(--red); display: grid; place-items: center; flex: none; }
.download-item strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.download-item small { color: var(--muted); }
.download-item .arrow { margin-left: auto; color: var(--muted-2); }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tab-btn { font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 12px 18px; background: none; border: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.feature-bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-bullets li { display: flex; gap: 10px; align-items: flex-start; color: var(--charcoal); }
.feature-bullets li svg { width: 22px; height: 22px; color: #27c07a; flex: none; margin-top: 2px; }
.compat-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.compat-pill { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; font-weight: 500; color: var(--navy); display: flex; gap: 8px; align-items: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.info-list { display: grid; gap: 16px; margin-bottom: 26px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }
.info-item .ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--grad-solar); color: #2a1c00; }
.info-item small { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.info-item strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.info-item a:hover { color: var(--red); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: var(--bg-soft); position: relative; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); gap: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b9c6d2; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand img { height: 50px; }
.footer-about p { margin-top: 16px; font-size: .92rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: .92rem; color: #9fb0bf; transition: color .15s, padding .15s; }
.footer-links a:hover { color: var(--orange); padding-left: 4px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; margin-bottom: 13px; }
.footer-contact svg { width: 19px; height: 19px; color: var(--orange); flex: none; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; transition: .18s; }
.footer-social a:hover { background: var(--orange); color: #2a1c00; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: #8b97a4; }

/* ---------- Floating buttons ---------- */
.float-wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37, 211, 102, .45); transition: transform .2s; }
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 30px; height: 30px; }
.float-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.to-top { position: fixed; right: 24px; bottom: 92px; z-index: 89; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); border: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; }

/* ---------- Mobile menu container ---------- */
@media (max-width: 980px) {
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 22px 22px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .22s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-call-desktop { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .section { padding: 64px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 60px; }
  .hero-visual { max-width: 440px; margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .partner, .split, .cta, .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cta { padding: 40px; }
}
@media (max-width: 680px) {
  .section { padding: 52px 0; }
  .cat-grid, .product-grid, .product-grid.cols-4, .feature-grid, .benefit-grid, .solution-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .feature-bullets { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .partner, .form-card, .cta { padding: 26px; }
  .brand-text { display: none; }
  .hero-stats { gap: 20px; }
  .product-grid.sm-2, .cat-grid.sm-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .product-grid.sm-2, .cat-grid.sm-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   PREMIUM ENHANCEMENTS
   ========================================================= */

/* ---- Section rhythm & typography ---- */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section-title { letter-spacing: -.02em; }
.section-sub { line-height: 1.7; }
@media (max-width: 980px) { .section { padding: 68px 0; } }
@media (max-width: 680px) { .section { padding: 54px 0; } }

/* ---- Premium hero ---- */
.hero { background: linear-gradient(180deg, #fff8ef 0%, #ffffff 60%); }
.hero::after {
  content: ""; position: absolute; top: -180px; right: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,138,0,.22), rgba(255,138,0,0) 70%); pointer-events: none;
}
.hero-inner { padding: 84px 0 96px; }
.hero h1 { letter-spacing: -.025em; }
.trust-row span:not(.trust-stars) { font-size: .9rem; color: var(--muted); font-weight: 500; }

.hero-frame { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; aspect-ratio: 5 / 4; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,32,44,0) 55%, rgba(18,32,44,.28)); }
.hero-visual::before {
  content: ""; position: absolute; inset: 24px -22px -22px 24px; border-radius: 30px; z-index: -1;
  background: linear-gradient(135deg, rgba(200,16,46,.10), rgba(255,138,0,.12));
}
.hero-card {
  position: absolute; z-index: 3; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.6); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
.hero-card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; overflow: hidden; }
.hero-card .ic.solar { background: var(--grad-solar); color: #2a1c00; }
.hero-card .ic.red { background: var(--grad-red); color: #fff; }
.hero-card .ic svg { width: 22px; height: 22px; }
.hero-card strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); line-height: 1.1; }
.hero-card small { color: var(--muted); font-size: .76rem; }
.hero-card.c1 { left: -22px; bottom: 70px; animation: floaty 5.5s ease-in-out infinite; }
.hero-card.c2 { right: -16px; top: 48px; animation: floaty 6s ease-in-out infinite 1.2s; }
@media (max-width: 980px) { .hero-card.c1 { left: 4px; } .hero-card.c2 { right: 4px; } }
@media (max-width: 480px) { .hero-card { transform: scale(.86); } .hero-card.c1 { left: -6px; bottom: 40px; } }

/* ---- Premium category cards ---- */
.section-soft-wrap { background: var(--bg-soft); }
.cat-card { position: relative; padding: 30px 20px 26px; overflow: hidden; }
.cat-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-solar); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.cat-card:hover::before { transform: scaleX(1); }
.cat-card .cat-arrow { opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.cat-card:hover .cat-arrow { opacity: 1; transform: none; }

/* Three main top-level category cards */
.cat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cat-card--main { padding: 42px 30px 34px; }
.cat-card--main .cat-ic { width: 78px; height: 78px; }
.cat-card--main .cat-ic svg { width: 38px; height: 38px; }
.cat-card--main h3 { font-size: 1.28rem; }
.cat-card--main p { font-size: .92rem; }
@media (max-width: 860px) { .cat-grid.cols-3 { grid-template-columns: 1fr; } }

/* ---- Premium product cards ---- */
.card { border-radius: 18px; }
.card-tag { background: rgba(255,255,255,.92); color: var(--navy); border: 1px solid var(--line); backdrop-filter: blur(4px); }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.14rem; }
.spec-chips span { background: linear-gradient(180deg,#fff,#f4f6f9); }
.card-actions .btn-ghost { border-color: var(--line); }

/* ---- Premium Deye / partner band ---- */
.partner-band { background: var(--ink); position: relative; overflow: hidden; }
.partner-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 26px 26px; }
.partner-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,0,.22), transparent 70%); }
.partner-pro { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.partner-pro .eyebrow { background: rgba(255,138,0,.16); color: var(--orange); }
.partner-pro h2 { color: #fff; font-size: clamp(1.7rem,3vw,2.4rem); margin: 16px 0 14px; }
.partner-pro p { color: #aebccb; }
.deye-wordmark { display: inline-flex; align-items: baseline; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: #fff; letter-spacing: -.03em; }
.deye-wordmark b { color: var(--orange); }
.deye-tagline { color: #8da0b2; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; margin-top: 2px; }
.deye-features { display: grid; gap: 14px; margin: 26px 0 30px; }
.deye-features li { display: flex; gap: 13px; align-items: flex-start; color: #c7d3de; }
.deye-features .ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--orange); }
.deye-features .ic svg { width: 20px; height: 20px; }
.deye-features strong { color: #fff; font-family: var(--font-head); display: block; font-size: .98rem; }
.deye-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.deye-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px 20px; min-width: 120px; }
.deye-stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: #fff; }
.deye-stat span { color: #8da0b2; font-size: .82rem; }
.deye-visual { position: relative; }
.deye-visual .panel-img { background: linear-gradient(160deg,#1c3450,#16314f); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); }
.deye-visual .panel-img img { border-radius: 14px; background: #fff; }
.deye-chip-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; justify-content: center; }
.deye-chip-strip span { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #cdd9e3; border-radius: 999px; padding: 7px 14px; font-size: .8rem; font-weight: 500; font-family: var(--font-head); }
@media (max-width: 980px) { .partner-pro { grid-template-columns: 1fr; gap: 38px; } }

/* ---- Premium CTA ---- */
.cta { padding: 60px; box-shadow: 0 30px 70px rgba(200,16,46,.28); }
.cta::after { content: ""; position: absolute; left: -50px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta h2 { letter-spacing: -.02em; }
.cta-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; font-family: var(--font-head); letter-spacing: .04em; margin-bottom: 16px; }

/* ---- Split media (use real photos) ---- */
.split-media img { object-fit: cover; aspect-ratio: 4 / 3; width: 100%; }
.split-media.contain { background: linear-gradient(160deg,#fff,#eef2f6); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.split-media.contain img { object-fit: contain; padding: 30px; border-radius: var(--radius-lg); }
