:root {
  /* ===== BACKGROUNDS ===== */
  --bg: #05070B;              /* Deep Space Black — primary page bg */
  --bg-2: #0A1222;            /* secondary bg */
  --card: #0D1728;            /* card surface */
  --starlink-bg: #091423;     /* starlink banner bg */
  --footer-bg: #030508;       /* footer bg */

  /* ===== BORDERS / GLASS ===== */
  --border: #1C2C46;
  --glass-bg: rgba(13, 23, 40, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* ===== ACCENT (ANID Blue) ===== */
  --accent: #2F7BFF;
  --accent-hover: #4D93FF;
  --glow: rgba(47, 123, 255, 0.45);

  /* ===== TEXT ===== */
  --white: #FFFFFF;
  --text-2: #B7C2D3;          /* secondary text */
  --text-3: #7F8EA3;          /* grey text */

  /* ===== LOGO ===== */
  --logo-silver: #D7DCE5;
  --logo-silver-dark: #9CA8B8;
  --logo-dark-silver: #9CA8B8; /* alias for header SVG markup */
  --logo-blue: #2F7BFF;

  /* ===== FONTS ===== */
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font scale (head) */
  --fs-h1: 72px;
  --fs-h2: 48px;
  --fs-h3: 32px;
  /* Font scale (body) */
  --fs-body-l: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 13px;

  /* ===== LAYOUT ===== */
  --max-content: 1440px;
  --container: 1320px;
  --pad: 60px;

  /* ===== EFFECTS ===== */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --shadow-glow: 0 0 40px rgba(47, 123, 255, 0.4);
  --shadow-glow-soft: 0 0 40px rgba(47, 123, 255, 0.2);
  --blur: blur(20px);
  --header-h: 90px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   ANIDTEK — BASE / GLOBAL STYLES
   Depends on tokens (:root) declared before this block.
   ============================================================ */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* clear the sticky header when jumping to #anchors */
  scroll-padding-top: 130px;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-width: 320px;
}

img,
svg,
picture,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */

.h1 {
  font-family: var(--font-head);
  font-weight: 700;                 /* Oswald 700 - heavy condensed caps, full Cyrillic */
  font-size: var(--fs-h1);          /* 72px */
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
}

.h2 {
  font-family: var(--font-head);
  font-weight: 700;                 /* Oswald 700 - heavy condensed caps, full Cyrillic */
  font-size: var(--fs-h2);          /* 48px */
  line-height: 1.0;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
}

.h3 {
  font-family: var(--font-head);
  font-weight: 700;                 /* Oswald 700 - heavy condensed caps, full Cyrillic */
  font-size: var(--fs-h3);          /* 32px */
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--white);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-label);       /* 13px */
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Body text helpers (optional, for section agents) */
.body-l { font-size: var(--fs-body-l); line-height: 1.6; color: var(--text-2); }
.body   { font-size: var(--fs-body);   line-height: 1.6; }
.small  { font-size: var(--fs-small);  line-height: 1.5; }
.muted  { color: var(--text-2); }
.muted-3 { color: var(--text-3); }
.accent { color: var(--accent); }

/* ============================================================
   LAYOUT — CONTAINER + 12-COL GRID
   ============================================================ */

.container {
  width: 100%;
  /* 1440 outer - 60px padding each side = 1320px content box (spec point 2) */
  max-width: var(--max-content);    /* 1440px */
  margin-inline: auto;
  padding-inline: var(--pad);       /* 60px desktop */
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* span helpers */
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: 1 / -1; }

/* vertical rhythm for content sections */
.section-pad {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 220px;
  min-height: 58px;
  padding: 0 28px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);  /* 8px */
  box-shadow: var(--shadow-glow);   /* 0 0 40px rgba(47,123,255,0.4) */
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 48px rgba(47, 123, 255, 0.55);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary .icon { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; }
.btn-primary:hover .icon { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 24px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(47, 123, 255, 0.06);
}
.btn-ghost .icon { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s ease; }
.btn-ghost:hover .icon { transform: translateX(4px); }

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(13, 23, 40, 0.9);
}
.btn-dark .icon { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s ease; }

/* ============================================================
   GLASS MORPHISM UTILITY
   ============================================================ */

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

/* staggered children helper — set --d on the element */
.fade-up[style*="--d"] { transition-delay: var(--d); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* ============================================================
   FOCUS / A11Y
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   CUSTOM SCROLLBAR (thin, dark, accent thumb)
   ============================================================ */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-2);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
  border: 2px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection {
  background: var(--accent);
  color: var(--white);
}

/* ============================================================
   RESPONSIVE BASE
   Tablet <=1024 : scale headings down ~15%
   Mobile  <=640 : --pad 20px + stack helpers
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --fs-h1: 60px;   /* 72 * ~0.83 */
    --fs-h2: 40px;   /* 48 * ~0.83 */
    --fs-h3: 28px;
    --pad: 40px;
  }
  .grid-12 { gap: 20px; }
  .section-pad { padding-top: 80px; padding-bottom: 80px; }
  /* tablet column collapse */
  .col-3 { grid-column: span 6; }
  .col-4 { grid-column: span 6; }
}

@media (max-width: 640px) {
  :root {
    --pad: 20px;
    --fs-h1: 46px;
    --fs-h2: 34px;
    --fs-h3: 26px;
    --fs-body-l: 16px;
  }
  body { font-size: 15px; }
  .grid-12 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* mobile stack — every span goes full width */
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 {
    grid-column: 1 / -1;
  }
  .section-pad { padding-top: 64px; padding-bottom: 64px; }
  .btn-primary { width: 100%; }
}

/* ===== header ===== */
.hdr{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(5,7,11,0.95);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  transition:background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hdr--scrolled{
  background:rgba(5,7,11,0.98);
  box-shadow:0 8px 30px rgba(0,0,0,0.55);
  border-bottom-color:var(--border);
}

/* ---- Top bar ---- */
.hdr__topbar{
  border-bottom:1px solid var(--border);
  background:var(--bg-2);
}
.hdr__topbar-inner{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  height:34px;
}
.hdr__top-phone,
.hdr__top-hours{
  font-family:"Inter",sans-serif;
  font-size:13px;
  font-weight:400;
  color:var(--text-3);
  text-decoration:none;
  letter-spacing:.2px;
  line-height:1;
}
.hdr__top-phone{transition:color .2s ease;}
.hdr__top-phone:hover{color:var(--text-2);}
.hdr__top-sep{
  width:1px;
  height:14px;
  background:var(--border);
}

/* ---- Main row ---- */
.hdr__main-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  height:var(--header-h);   /* 90px (spec point 5) */
}

/* ---- Logo ---- */
.hdr__logo{text-decoration:none;flex-shrink:0;}
.logo{
  display:inline-flex;
  align-items:center;
  gap:12px;
}
.logo__img{
  display:block;
  height:46px;
  width:auto;
}
.logo--ft .logo__img{ height:54px; }
.logo__mark{
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
}
.logo__mark svg{display:block;height:40px;width:auto;}
.logo__text{
  display:flex;
  flex-direction:column;
  gap:3px;
  line-height:1;
}
.logo__word{
  font-family:"Inter",sans-serif;
  font-weight:800;
  font-size:25px;
  letter-spacing:1.5px;
  line-height:1;
}
.logo__word-anid{color:var(--logo-silver);}
.logo__word-tek{color:var(--accent);}
.logo__tag{
  font-family:"Inter",sans-serif;
  font-weight:500;
  font-size:7.5px;
  letter-spacing:2.6px;
  color:var(--text-3);
  text-transform:uppercase;
  white-space:nowrap;
  /* never let the tagline make the logo column wider than the wordmark */
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ---- Nav (center) ---- */
.hdr__nav{flex:1 1 auto;display:flex;justify-content:center;}
.hdr__nav-list{
  display:flex;
  align-items:center;
  gap:26px;
  list-style:none;
  margin:0;
  padding:0;
}
.hdr__nav-link{
  position:relative;
  display:inline-block;
  font-family:"Inter",sans-serif;
  font-size:14px;
  font-weight:500;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--text-2);
  text-decoration:none;
  padding:6px 0;
  transition:color .2s ease;
  white-space:nowrap;
}
.hdr__nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:2px;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .25s ease;
}
.hdr__nav-link:hover,
.hdr__nav-link:focus-visible{color:var(--accent);}
.hdr__nav-link:hover::after,
.hdr__nav-link:focus-visible::after{transform:scaleX(1);}

/* ---- Actions (right) ---- */
.hdr__actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-shrink:0;
}
.hdr__phone{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:"Inter",sans-serif;
  font-size:14px;
  font-weight:600;
  color:var(--white);
  text-decoration:none;
  transition:color .2s ease;
  white-space:nowrap;
}
.hdr__phone-glyph{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--accent);
  transition:color .2s ease;
}
.hdr__phone:hover{color:var(--accent);}
.hdr__phone:hover .hdr__phone-glyph{color:var(--accent-hover);}

.hdr__icon-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:var(--radius-sm,8px);
  border:1px solid var(--border);
  background:transparent;
  color:var(--text-2);
  cursor:pointer;
  transition:color .2s ease, border-color .2s ease, background .2s ease;
}
.hdr__icon-btn:hover,
.hdr__icon-btn:focus-visible{
  color:var(--white);
  border-color:var(--accent);
  background:rgba(47,123,255,0.08);
}
/* ---- Burger (hidden on desktop) ---- */
.hdr__burger{
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:44px;
  height:42px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm,8px);
  background:transparent;
  cursor:pointer;
  transition:border-color .2s ease;
}
.hdr__burger:hover{border-color:var(--accent);}
.hdr__burger-line{
  display:block;
  width:20px;
  height:2px;
  background:var(--white);
  border-radius:2px;
  transition:transform .3s ease, opacity .2s ease;
}

/* ===== RESPONSIVE / MOBILE NAV ===== */
/* The full 7-link inline nav + logo + actions only fit above ~1320px.
   Below that: drop the tagline and compress the nav so 1151-1320 stays clean. */
@media (max-width:1320px){
  .hdr__nav-list{gap:18px;}
  .hdr__nav-link{font-size:13px;}
  .logo__tag{display:none;}
}

@media (max-width:1150px){
  .hdr__phone-num{display:none;}
  .hdr__phone{padding:0;width:42px;height:42px;justify-content:center;border:1px solid var(--border);border-radius:var(--radius-sm,8px);}
  .hdr__phone:hover{border-color:var(--accent);}
}

/* Burger overlay engages at <=1150px so the inline nav never overflows/collides */
@media (max-width:1150px){
  .hdr__main-inner{height:72px;}
  .hdr__burger{display:flex;}

  /* nav becomes full-screen overlay */
  .hdr__nav{
    /* sized to the viewport explicitly: .hdr has backdrop-filter, which makes
       it the containing block for this fixed overlay, so inset:0 would size it
       to the header instead of the screen. */
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    height:100dvh;
    z-index:99;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(3,5,8,0.98);
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);
    opacity:0;
    visibility:hidden;
    /* fade + vertical nudge (NOT translateX) so the closed panel never
       extends past the right edge and creates phantom horizontal scroll */
    transform:translateY(-12px);
    transition:transform .4s cubic-bezier(.4,0,.2,1), opacity .3s ease, visibility .4s;
  }
  .hdr__nav-list{
    flex-direction:column;
    gap:26px;
    text-align:center;
  }
  .hdr__nav-link{font-size:20px;letter-spacing:1px;}
  .hdr__nav-link::after{height:2px;}

  .hdr--open .hdr__nav{
    opacity:1;
    visibility:visible;
    transform:none;
  }
  /* burger -> X */
  .hdr--open .hdr__burger{position:relative;z-index:100;}
  .hdr--open .hdr__burger-line:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .hdr--open .hdr__burger-line:nth-child(2){opacity:0;}
  .hdr--open .hdr__burger-line:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  body.hdr-no-scroll{overflow:hidden;}
}

@media (max-width:640px){
  .hdr__topbar-inner{justify-content:center;height:30px;gap:10px;}
  .hdr__top-hours{display:none;}
  .hdr__main-inner{gap:14px;}
  .logo__word{font-size:21px;}
  .logo__mark svg{height:34px;}
  .logo__img{height:34px;}
  .hdr__actions{gap:8px;}
  .hdr__icon-btn{width:40px;height:40px;}
  .hdr__phone{display:none;}
}

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: max(100vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

/* Layer 1: background slides (crossfade carousel) */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.hero__slide.is-active { opacity: 1; }

/* real image url is the top layer and falls back to the gradient scene beneath */
.hero__slide--dji {
  background-image:
    url('assets/hero.jpg'),
    radial-gradient(ellipse 60% 70% at 78% 22%, var(--glow) 0%, rgba(47,123,255,0.12) 35%, rgba(5,7,11,0) 65%),
    radial-gradient(ellipse 120% 90% at 50% 120%, rgba(5,7,11,0.9) 0%, rgba(5,7,11,0) 60%),
    linear-gradient(180deg, #060A12 0%, var(--bg) 55%, #03050A 100%);
}
.hero__slide--autel {
  background-image:
    url('assets/hero-2.jpg'),
    radial-gradient(ellipse 58% 68% at 76% 26%, rgba(255,106,31,0.32) 0%, rgba(255,106,31,0.08) 38%, rgba(5,7,11,0) 64%),
    radial-gradient(ellipse 90% 80% at 22% 30%, rgba(47,123,255,0.16) 0%, rgba(5,7,11,0) 55%),
    linear-gradient(180deg, #0B0907 0%, var(--bg) 55%, #050403 100%);
}
.hero__slide--starlink {
  background-image:
    url('assets/hero-3.jpg'),
    radial-gradient(ellipse 65% 70% at 72% 28%, rgba(47,123,255,0.28) 0%, rgba(47,123,255,0.06) 40%, rgba(5,7,11,0) 66%),
    radial-gradient(ellipse 130% 90% at 50% 115%, rgba(5,7,11,0.92) 0%, rgba(5,7,11,0) 60%),
    linear-gradient(180deg, #04060D 0%, #060A16 52%, #03050A 100%);
}

/* subtitle fade when the slide changes */
.hero__sub--in { animation: heroSubIn 0.5s ease; }
@keyframes heroSubIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Layer 2: radar rings */
.hero__radar {
  position: absolute;
  top: -8%;
  right: -4%;
  width: min(720px, 60vw);
  height: min(720px, 60vw);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero__radar-svg {
  width: 100%;
  height: 100%;
  transform-origin: center;
  animation: spin 60s linear infinite;
}

/* Layer 3: overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(5,7,11,0.95) 0%, rgba(5,7,11,0.75) 45%, rgba(5,7,11,0.2) 100%);
  pointer-events: none;
}

/* Foreground */
.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
}
.hero__content {
  max-width: 720px;
}

.hero__title {
  margin: 0 0 22px;
}
.hero__title span {
  display: block;
}

.hero__sub {
  margin: 0 0 36px;
  color: var(--text-2);
  line-height: 1.5;
}

/* Trust badges */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}
.hero__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.hero__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--accent);
  background: rgba(47,123,255,0.08);
}
.hero__badge-label {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-2);
  white-space: nowrap;
}

/* CTAs */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Vertical slider pagination on right edge */
.hero__dots {
  position: absolute;
  top: 50%;
  right: clamp(20px, 4vw, 56px);
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 8px 0;
}
/* faint vertical connecting line */
.hero__dots::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1px;
  transform: translateX(-50%);
  background: var(--border);
  z-index: -1;
}
.hero__dot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s ease;
}
.hero__dot-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--text-3);
  transition: 0.25s ease;
}
.hero__dot-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-3);
  transition: 0.25s ease;
}
.hero__dot.is-active .hero__dot-mark {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--glow);
}
.hero__dot.is-active .hero__dot-num {
  color: var(--white);
}
.hero__dot:hover .hero__dot-num {
  color: var(--text-2);
}
.hero__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__radar {
    width: min(560px, 70vw);
    height: min(560px, 70vw);
    top: -4%;
  }
  .hero__overlay {
    background: linear-gradient(90deg, rgba(5,7,11,0.95) 0%, rgba(5,7,11,0.8) 55%, rgba(5,7,11,0.4) 100%);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;       /* no 900px floor on phones shorter than 900px */
    align-items: flex-start;
    padding-top: 96px;
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__overlay {
    background: linear-gradient(180deg, rgba(5,7,11,0.7) 0%, rgba(5,7,11,0.9) 60%, var(--bg) 100%);
  }
  .hero__badges {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero__badge {
    width: 100%;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta-primary,
  .hero__cta-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero__dots {
    /* hide hero slider pagination on phones - it collided with the CTA; slides still auto-rotate every 5s */
    display: none;
  }
}

/* ===================== CATEGORIES (.cat) ===================== */
.cat {
  padding-top: 100px;
  padding-bottom: 100px;
  background: var(--bg);
}
.cat__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}
.cat__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.cat__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 32px 32px 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  transition: transform .3s ease-out, border-color .3s ease-out, box-shadow .3s ease-out;
  overflow: hidden;
}
.cat__card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(47, 123, 255, 0.25);
}
.cat__card:focus-within {
  border-color: var(--accent);
}

/* Brand wordmarks */
.cat__brand {
  font-family: "Inter", sans-serif;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 6px;
}
.cat__brand--dji {
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--white);
}
.cat__brand--autel {
  font-weight: 800;
  letter-spacing: 1px;
  color: #ff5a1f;
}
.cat__brand--starlink {
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--white);
}

/* Inner product image placeholder with blue radial glow */
.cat__img {
  position: relative;
  width: 100%;
  height: 150px;
  margin: 10px 0 22px;
  border-radius: 12px;
  background-color: var(--bg-2);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform .3s ease-out;
}
.cat__img::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(60% 70% at 50% 50%, rgba(47, 123, 255, 0.28) 0%, rgba(47, 123, 255, 0) 70%);
  pointer-events: none;
}
.cat__card:hover .cat__img {
  transform: scale(1.05);
}
.cat__img--dji {
  background-image: url('assets/cat-dji.jpg');
}
.cat__img--autel {
  background-image: url('assets/cat-autel.jpg');
}
.cat__img--starlink {
  background-image: url('assets/cat-starlink.jpg');
}

.cat__title {
  margin-bottom: 12px;
}
.cat__desc {
  margin-bottom: 24px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}
.cat__btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ===================== POPULAR PRODUCTS (.prod) ===================== */
.prod {
  padding-top: 100px;
  padding-bottom: 100px;
  background: var(--bg);
}
.prod__head {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;            /* "view all" wraps below the title instead of overflowing */
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.prod__head-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prod__viewall {
  flex: none;
  white-space: nowrap;
}
.prod__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.prod__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 22px 22px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 14px);
  transition: border-color .3s ease-out, box-shadow .3s ease-out, transform .3s ease-out;
  overflow: hidden;
}
.prod__card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(47, 123, 255, 0.2);
}
.prod__card:focus-within {
  border-color: var(--accent);
}

/* Favourite heart button */
.prod__fav {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--text-3);
  background: rgba(13, 23, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.prod__fav:hover,
.prod__fav:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(47, 123, 255, 0.08);
  outline: none;
}

/* Product photo placeholder */
.prod__img {
  position: relative;
  width: 100%;
  height: 230px;
  margin-bottom: 22px;
  border-radius: 12px;
  background-color: var(--bg-2);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.prod__img::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(55% 60% at 50% 55%, rgba(47, 123, 255, 0.22) 0%, rgba(47, 123, 255, 0) 70%);
  pointer-events: none;
}
.prod__img--1 { background-image: url('assets/prod-1.jpg'); }
.prod__img--2 { background-image: url('assets/prod-2.jpg'); }
.prod__img--3 { background-image: url('assets/prod-3.jpg'); }
.prod__img--4 { background-image: url('assets/prod-4.jpg'); }

.prod__name {
  margin: 0 0 14px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--white);
}
.prod__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.prod__price {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}


/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .cat__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .cat__img {
    /* single-column cards are wide: fill width edge-to-edge instead of letterboxing */
    background-size: cover;
    height: 200px;
  }
  .prod__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prod__head {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .cat,
  .prod {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .prod__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .prod__head {
    flex-direction: column;
    gap: 20px;
  }
  .prod__viewall {
    align-self: flex-start;
  }
}

/* ===================== ADVANTAGES (.adv) ===================== */
.adv {
  padding-top: 100px;
  padding-bottom: 100px;
}
.adv__head {
  margin-bottom: 48px;
}

.adv__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.adv__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 8px 40px;
  color: var(--white);
  transition: color 0.3s ease-out;
  cursor: default;
}
/* thin 1px vertical dividers between items (desktop) */
.adv__item + .adv__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}
.adv__item:first-child {
  padding-left: 0;
}
.adv__item:last-child {
  padding-right: 0;
}

.adv__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  color: var(--white);
  transition: color 0.3s ease-out, transform 0.3s ease-out;
}
.adv__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* whole item is the hover target -> icon turns accent */
.adv__item:hover .adv__icon,
.adv__item:focus-within .adv__icon {
  color: var(--accent);
  transform: translateY(-2px);
}

.adv__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

.adv__desc {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

/* tablet: 2 columns */
@media (max-width: 1024px) {
  .adv__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 48px;
  }
  .adv__item {
    padding: 8px 32px;
  }
  /* divider only between columns within a row -> hide on the left-of-row items */
  .adv__item:nth-child(odd)::before {
    display: none;
  }
  .adv__item:nth-child(odd) {
    padding-left: 0;
  }
  .adv__item:nth-child(even) {
    padding-right: 0;
  }
}

/* mobile: 1 column, no vertical dividers */
@media (max-width: 640px) {
  .adv {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .adv__head {
    margin-bottom: 32px;
  }
  .adv__row {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }
  .adv__item {
    padding: 0;
  }
  .adv__item::before {
    display: none;
  }
}

/* ===================== STARLINK BANNER (.sl) ===================== */
.sl {
  padding-top: 40px;
  padding-bottom: 60px;
}

.sl__band {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background: var(--starlink-bg);
  display: flex;
  align-items: center;
  isolation: isolate;
}

/* starry-night gradient placeholder: deep blue base + star dots + faint diagonal star-trails */
.sl__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--starlink-bg);
  background-image:
    /* faint diagonal blue star-trail lines */
    repeating-linear-gradient(
      35deg,
      transparent 0,
      transparent 38px,
      rgba(47, 123, 255, 0.05) 38px,
      rgba(47, 123, 255, 0.05) 39px,
      transparent 40px,
      transparent 120px
    ),
    /* tiny star dots */
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1.2px 1.2px at 28% 64%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.6px 1.6px at 42% 18%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(1px 1px at 55% 48%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.3px 1.3px at 66% 30%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.1px 1.1px at 74% 72%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 40%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 92% 60%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.2px 1.2px at 20% 84%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.4px 1.4px at 48% 80%, rgba(255, 255, 255, 0.6), transparent 60%),
    /* deep blue night gradient wash */
    radial-gradient(120% 140% at 78% 18%, rgba(47, 123, 255, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #061325 0%, var(--starlink-bg) 45%, #050C18 100%);
}

/* satellite-dish image placeholder on the right */
.sl__img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  z-index: 1;
  background-color: #07111f;
  background-image:
    url('assets/starlink.jpg'),
    radial-gradient(70% 80% at 70% 50%, rgba(47, 123, 255, 0.22) 0%, transparent 65%);
  background-size: cover, cover;
  background-position: center right, center;
  background-repeat: no-repeat, no-repeat;
  /* fade the image into the dark band on its left edge */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%);
}

.sl__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.sl__title {
  display: flex;
  flex-direction: column;
  line-height: 0.96;
  margin: 4px 0 4px;
}

.sl__text {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}

.sl__btn {
  margin-top: 12px;
}

/* tablet */
@media (max-width: 1024px) {
  .sl__band {
    min-height: 400px;
  }
  .sl__img {
    width: 52%;
  }
  .sl__content {
    padding: 48px 40px;
    max-width: 480px;
  }
}

/* mobile: image becomes a top backdrop, content stacks below */
@media (max-width: 640px) {
  .sl {
    padding-bottom: 48px;
  }
  .sl__band {
    min-height: 460px;
    align-items: flex-end;
  }
  .sl__img {
    width: 100%;
    height: 48%;
    bottom: auto;
    top: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  }
  .sl__content {
    padding: 28px 24px 32px;
    max-width: 100%;
  }
}

/* ============ CONTACTS (.ct) ============ */
.ct {
  background: var(--bg);
  padding-top: 100px;
  padding-bottom: 100px;
}
.ct__inner {
  display: grid;
  grid-template-columns: 1fr;       /* intro above, 4-card grid below at full width (~285px cards) */
  gap: 48px;
  align-items: start;
}
.ct__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.ct__text {
  margin-bottom: 32px;
  line-height: 1.6;
}
.ct__cta {
  display: inline-flex;
}

.ct__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.ct__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  min-height: 180px;
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform .3s ease-out, border-color .3s ease-out, box-shadow .3s ease-out;
}
.ct__card:hover,
.ct__card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--glow);
  outline: none;
}
.ct__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: rgba(47, 123, 255, 0.06);
}
.ct__label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
}
.ct__value {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-2);
}

/* ============ FOOTER (.ft) ============ */
.ft {
  background: var(--footer-bg);
  min-height: 320px;
  padding-top: 72px;
  padding-bottom: 28px;
}
.ft__cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
}

/* brand column */
.logo--ft {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo--ft .logo__mark { display: inline-flex; }
.logo--ft .logo__word {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.logo--ft .logo__word-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 1px;
}
.logo--ft .logo__anid { color: var(--logo-silver); }
.logo--ft .logo__tek { color: var(--accent); }
.logo--ft .logo__tag {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-3);
}
.ft__tagline {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.6;
}
.ft__socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.ft__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.ft__social:hover,
.ft__social:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

/* link columns */
.ft__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}
.ft__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ft__link {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-3);
  text-decoration: none;
  transition: color .2s ease;
}
.ft__link:hover,
.ft__link:focus-visible {
  color: var(--white);
  outline: none;
}

/* subscribe column */
.ft__sub-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.ft__form {
  display: flex;
  gap: 10px;
  max-width: 320px;
}
.ft__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color .2s ease;
}
.ft__input::placeholder { color: var(--text-3); }
.ft__input:focus {
  outline: none;
  border-color: var(--accent);
}
.ft__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ft__submit:hover,
.ft__submit:focus-visible {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--glow);
  transform: translateY(-2px);
  outline: none;
}

/* bottom bar */
.ft__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.ft__copy,
.ft__site {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-3);
}
.ft__site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ft__site svg { color: var(--text-3); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .ct__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ct__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ft__cols {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .ft__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ct,
  .ft { padding-top: 64px; }
  .ct { padding-bottom: 64px; }
  .ct__cards {
    grid-template-columns: 1fr;
  }
  .ft__cols {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ft__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
