/* ==============================================================================
   DJI DESIGN SYSTEM - OFFICIAL THEME SPECIFICATION
   Brightly lit product showroom aesthetic:
   Canvas white (#ffffff), studio photography on fog grey (#f5f5f5),
   Open Sans with tight tracking (-0.02em to -0.03em),
   Engineering Blue (#0070d5) for actions, 1px ink outline secondary pills,
   Tier Orange (#be4e04) eyebrows, 0px square photo tiles with 16px white gutters,
   Canvas-soft (#f7f9fa) feature bands, Charcoal (#272727) footer.
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Brand & Action Colors */
  --dji-primary: #0070d5;
  --dji-primary-hover: #005bb0;
  --dji-store-blue: #0060ef;
  --dji-store-blue-tint: #deeafd;
  --dji-on-primary: #ffffff;
  --dji-link-blue: #1890ff;
  --dji-tier-orange: #be4e04;
  --dji-badge-orange: #fa8c16;

  /* Surfaces */
  --dji-canvas: #ffffff;
  --dji-canvas-soft: #f7f9fa;
  --dji-panel: #f6f8f9;
  --dji-fog: #f5f5f5;
  --dji-announce: #fafafa;
  --dji-media-black: #111111;
  --dji-footer: #272727;
  --dji-footer-pill: #383838;
  --dji-footer-divider: #414141;

  /* Lines & Borders */
  --dji-hairline: #f0f0f0;
  --dji-divider: #e8e8e8;
  --dji-card-border: #d9d9d9;
  --dji-dashed-border: #dddddd;
  --dji-input-border: #d4d7d9;
  --dji-control-border: #cccccc;

  /* Typography Colors */
  --dji-ink: #262626;
  --dji-ink-secondary: #595959;
  --dji-ink-tertiary: #8c8c8c;
  --dji-store-ink: #333333;
  --dji-graphite: #3b3e40;
  --dji-nav-ink: #303233;
  --dji-slate: #6c7073;
  --dji-steel: #9fa3a6;
  --dji-footer-link: #b3b3b3;
  --dji-error: #f5222d;

  /* Layout Spacing */
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 20px;
  --spacing-xl: 24px;
  --spacing-xxl: 32px;
  --spacing-xxxl: 40px;
  --spacing-huge: 48px;
  --spacing-section: 64px;

  /* Radii */
  --rounded-none: 0px;
  --rounded-xs: 4px;
  --rounded-sm: 8px;
  --rounded-xl: 60px;
  --rounded-xxl: 64px;
  --rounded-pill: 100px;
  --rounded-full: 9999px;

  /* Elevation */
  --shadow-floating: 0 8px 16px rgba(0, 0, 0, 0.1);
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--dji-canvas);
  color: var(--dji-ink);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--dji-canvas);
  color: var(--dji-ink);
  letter-spacing: -0.02em;
  line-height: 1.5;
  padding-top: var(--header-height);
}

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

/* ==============================================================================
   ANNOUNCEMENT BAR
   ============================================================================== */
.dji-announcement-bar {
  background: var(--dji-announce);
  border-bottom: 1px solid var(--dji-hairline);
  color: var(--dji-ink);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.02em;
  padding: 8px 16px;
  text-align: center;
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.dji-announcement-bar a {
  color: var(--dji-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dji-announcement-bar a:hover {
  text-decoration: underline;
}

/* ==============================================================================
   WHITE SHOWROOM NAVIGATION HEADER
   ============================================================================== */
.dji-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dji-divider);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.dji-header-inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dji-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dji-ink);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.dji-brand-logo {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dji-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dji-brand-text {
  display: flex;
  flex-direction: column;
}

.dji-brand-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--dji-ink);
  letter-spacing: -0.03em;
}

.dji-brand-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--dji-ink-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dji-nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.dji-nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--dji-nav-ink);
  letter-spacing: -0.02em;
  padding: 8px 0;
  position: relative;
  transition: color 0.15s ease;
}

.dji-nav-link:hover,
.dji-nav-link.active {
  color: var(--dji-ink);
  font-weight: 600;
}

.dji-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--dji-ink);
}

.dji-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Button Pills */
.button-store-pill {
  background: var(--dji-primary);
  color: var(--dji-on-primary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.02em;
  border-radius: var(--rounded-full);
  padding: 6px 18px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
  border: none;
  cursor: pointer;
}

.button-store-pill:hover {
  background: var(--dji-primary-hover);
}

.button-primary {
  background: var(--dji-primary);
  color: var(--dji-on-primary);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  border-radius: var(--rounded-xl);
  padding: 0 var(--spacing-xl);
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.button-primary:hover {
  background: var(--dji-primary-hover);
}

.button-outline {
  background: transparent;
  color: var(--dji-ink);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  border: 1px solid var(--dji-ink);
  border-radius: var(--rounded-xl);
  padding: 0 var(--spacing-xl);
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.button-outline:hover {
  background: var(--dji-fog);
}

.button-outline-lg {
  background: transparent;
  color: var(--dji-ink);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  border: 1px solid var(--dji-ink);
  border-radius: var(--rounded-full);
  padding: 12px var(--spacing-xl);
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.button-hero-ghost {
  background: transparent;
  color: var(--dji-on-primary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.02em;
  border: 1px solid var(--dji-on-primary);
  border-radius: var(--rounded-xxl);
  padding: 5px var(--spacing-md);
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.button-store-buy {
  background: var(--dji-store-blue);
  color: var(--dji-on-primary);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  border-radius: var(--rounded-full);
  padding: 12px var(--spacing-xxl);
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.button-store-cart {
  background: var(--dji-store-blue-tint);
  color: var(--dji-store-blue);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  border-radius: var(--rounded-full);
  padding: 12px var(--spacing-xxl);
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.button-dark-pill {
  background: var(--dji-ink);
  color: var(--dji-on-primary);
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--rounded-full);
  padding: 6px var(--spacing-sm);
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.text-link {
  color: var(--dji-primary);
  font-size: 16px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.text-link:hover {
  text-decoration: underline;
}

.tier-eyebrow {
  color: var(--dji-tier-orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}

.tile-eyebrow {
  color: var(--dji-ink-tertiary);
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 6px;
  display: inline-block;
}

.dji-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--dji-ink);
  padding: 6px;
  cursor: pointer;
}

/* ==============================================================================
   FULL-BLEED HERO CAROUSEL / PRODUCT SHOWCASE (PREMIUM STUDIO)
   ============================================================================== */
.dji-hero-full {
  position: relative;
  background: radial-gradient(circle at 70% 45%, rgba(0, 112, 213, 0.22) 0%, rgba(15, 23, 42, 0.96) 55%, #070b12 100%);
  color: var(--dji-on-primary);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dji-hero-inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: var(--spacing-section) var(--spacing-xl);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--spacing-huge);
  align-items: center;
  position: relative;
  z-index: 2;
}

.dji-hero-content {
  max-width: 600px;
}

.dji-hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.dji-hero-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border-radius: var(--rounded-full);
  padding: 6px 14px;
  font-size: 12px;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.dji-hero-chip-item strong {
  color: #38bdf8;
}

/* Image Card Containers */
.dji-card-img-wrap {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f5f5f5;
  margin-top: auto;
  padding: 12px;
}

.dji-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.dji-product-tile:hover .dji-card-img-wrap img {
  transform: scale(1.03);
}

/* 3-Column Image Grid */
.dji-product-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  max-width: 1360px;
  margin: var(--spacing-md) auto;
  padding: 0 var(--spacing-md);
}

@media (max-width: 1024px) {
  .dji-product-grid-3col {
    grid-template-columns: 1fr;
  }
}

.dji-hero-heading {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--dji-on-primary);
  margin-bottom: 16px;
}

.dji-hero-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.dji-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dji-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dji-hero-img {
  width: 100%;
  max-width: 540px;
  height: auto;
  object-fit: contain;
}

/* ==============================================================================
   TWO-UP SQUARE GUTTER-SEPARATED PRODUCT TILES
   ============================================================================== */
.dji-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  max-width: 1360px;
  margin: var(--spacing-md) auto;
  padding: 0 var(--spacing-md);
}

.dji-product-tile {
  background: var(--dji-fog);
  border-radius: var(--rounded-none);
  padding: 48px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.dji-tile-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--dji-ink);
  margin-bottom: 8px;
}

.dji-tile-tagline {
  font-size: 16px;
  font-weight: 400;
  color: var(--dji-ink-secondary);
  line-height: 1.4;
  margin-bottom: 20px;
  max-width: 440px;
}

.dji-tile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.dji-tile-render {
  margin-top: auto;
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
}

/* Full Width Tile */
.dji-product-tile.full-width {
  grid-column: 1 / -1;
  min-height: 420px;
  background: var(--dji-panel);
}

/* ==============================================================================
   CENTRED SECTION HEADERS
   ============================================================================== */
.dji-section-header {
  text-align: center;
  max-width: 760px;
  margin: 64px auto 36px;
  padding: 0 var(--spacing-md);
}

.dji-section-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--dji-ink);
  margin-bottom: 12px;
}

.dji-section-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dji-ink-secondary);
  letter-spacing: -0.02em;
}

/* ==============================================================================
   DJI COMPARISON TABS & 10-TIER TABLE SPECIFICATION
   ============================================================================== */
.dji-tab-track {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--dji-divider);
  max-width: 1200px;
  margin: 0 auto 36px;
}

.dji-tab-btn {
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 400;
  color: var(--dji-ink-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  letter-spacing: -0.02em;
}

.dji-tab-btn:hover {
  color: var(--dji-ink);
}

.dji-tab-btn.active {
  color: var(--dji-ink);
  font-weight: 600;
}

.dji-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--dji-ink);
}

/* Clean Spec Table */
.dji-spec-table-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.dji-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dji-spec-table th,
.dji-spec-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--dji-hairline);
  letter-spacing: -0.02em;
}

.dji-spec-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--dji-ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--dji-canvas-soft);
}

.dji-spec-table tr:hover td {
  background: var(--dji-announce);
}

.dji-spec-table .tier-highlight td {
  background: #f0f7ff;
}

.dji-spec-val-lg {
  font-size: 20px;
  font-weight: 600;
  color: var(--dji-ink);
}

.dji-spec-val-blue {
  color: var(--dji-primary);
  font-weight: 600;
}

/* Option Cards for Store Products & Packages */
.dji-option-card {
  background: var(--dji-canvas);
  border: 1px solid var(--dji-card-border);
  border-radius: var(--dji-rounded-sm, 8px);
  padding: var(--spacing-xl);
  position: relative;
  transition: all 0.15s ease;
}

.dji-option-card.selected {
  border: 2px solid var(--dji-store-blue);
  padding: 23px; /* account for 2px border */
}

.dji-option-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--dji-badge-orange);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px var(--spacing-xs);
  border-bottom-left-radius: 8px;
  letter-spacing: -0.02em;
}

/* ==============================================================================
   FEATURE-LINK BAND (WHERE TO BUY / COMPLIANCE / SUPPORT)
   ============================================================================== */
.dji-feature-link-band {
  background: var(--dji-canvas-soft);
  padding: var(--spacing-section) var(--spacing-md);
  margin-top: 64px;
  border-top: 1px solid var(--dji-hairline);
}

.dji-feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xxl);
  text-align: center;
}

.dji-feature-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dji-feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--dji-ink);
}

.dji-feature-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--dji-ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.dji-feature-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--dji-ink-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  max-width: 300px;
}

/* ==============================================================================
   CHARCOAL BRAND FOOTER (#272727)
   ============================================================================== */
.dji-footer {
  background: var(--dji-footer);
  color: var(--dji-footer-link);
  padding: 48px var(--spacing-md) 24px;
  font-size: 12px;
  line-height: 1.6;
}

.dji-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Top App/Support Row */
.dji-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--dji-footer-divider);
  flex-wrap: wrap;
  gap: 16px;
}

.button-download-app {
  background: var(--dji-footer-pill);
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--rounded-pill);
  padding: 8px var(--spacing-md);
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.button-download-app:hover {
  background: #4a4a4a;
}

.dji-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xxl);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--dji-footer-divider);
}

.dji-footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.dji-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dji-footer-links a {
  color: var(--dji-footer-link);
  transition: color 0.15s ease;
}

.dji-footer-links a:hover {
  color: #ffffff;
}

.dji-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 11px;
  color: #8c8c8c;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==============================================================================
   RESPONSIVE MOBILE BREAKPOINTS
   ============================================================================== */
@media (max-width: 1024px) {
  .dji-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .dji-hero-content {
    max-width: 100%;
  }
  .dji-hero-actions {
    justify-content: center;
  }
  .dji-hero-img {
    max-width: 440px;
  }
  .dji-product-grid {
    grid-template-columns: 1fr;
  }
  .dji-feature-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .dji-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }
  .dji-nav-menu {
    display: none;
  }
  .dji-mobile-toggle {
    display: block;
  }
  .dji-hero-heading {
    font-size: 36px;
  }
  .dji-section-title {
    font-size: 30px;
  }
  .dji-tile-title {
    font-size: 24px;
  }
  .dji-footer-grid {
    grid-template-columns: 1fr;
  }
  .dji-product-tile {
    padding: 32px 20px 24px;
  }
  .dji-spec-table th,
  .dji-spec-table td {
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* Mobile Slide Drawer */
.dji-mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dji-canvas);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 999;
  border-top: 1px solid var(--dji-divider);
}

.dji-mobile-drawer.open {
  transform: translateX(0);
}

.dji-mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--dji-ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--dji-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
