@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #070b14;
  --bg-soft: #0e1422;
  --surface: rgba(17, 24, 39, 0.72);
  --surface-border: rgba(148, 163, 184, 0.2);
  --text: #e5edf9;
  --muted: #98a7bd;
  --accent: #5eead4;
  --accent-2: #60a5fa;
  --danger: #fb7185;
  --max-width: 1160px;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(3, 9, 22, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, #122237 0%, #070b14 40%),
    radial-gradient(circle at 90% 20%, #1b2a47 0%, transparent 35%), var(--bg);
  line-height: 1.55;
}

.page-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1200;
  background: rgba(223, 241, 64, 0.16);
  pointer-events: none;
}

.page-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #dff140;
  box-shadow: 0 0 12px rgba(223, 241, 64, 0.82);
  transition: width 0.55s ease;
}

.page-progress.done {
  opacity: 0;
  transition: opacity 0.35s ease 0.2s;
}

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

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  position: fixed;
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px rgba(3, 9, 22, 0.35);
  animation: headerSlideDown 0.3s ease both;
}

.site-header.scrolled .header-inner {
  margin-top: 0;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.45);
}

@keyframes headerSlideDown {
  from {
    opacity: 0.7;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header:not(.scrolled) .site-nav a,
.site-header:not(.scrolled) .brand-text span {
  color: rgba(229, 237, 249, 0.82);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  margin-top: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(7, 11, 20, 0.35);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-2) 100%);
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--surface-border);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.2px;
  font-size: 0.88rem;
  text-transform: none;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav .btn-primary {
  padding: 0.58rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #f8fafc 0%, #dbe7f5 100%);
  color: #050b14;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.site-nav .btn-primary:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.site-header.scrolled .site-nav .btn-primary {
  background: linear-gradient(135deg, #e5f0ff 0%, #ffffff 100%);
  color: #02060d;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #021018;
  box-shadow: 0 10px 28px rgba(96, 165, 250, 0.35);
}

.btn-ghost {
  border-color: var(--surface-border);
  color: var(--text);
}

.hero {
  padding: 5.6rem 0 3.2rem;
}

.hero-flagship {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7.2rem 0 3rem;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.48)),
    url("https://images.unsplash.com/photo-1517420704952-d9f39e95b43e?auto=format&fit=crop&w=2100&q=80");
  background-size: cover;
  background-position: center;
}

.hero-flagship-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.14), transparent 32%),
    radial-gradient(circle at 12% 80%, rgba(255, 255, 255, 0.08), transparent 34%);
}

.hero-flagship-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

.hero-flagship-copy {
  background: #0a111c;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 26px;
  padding: clamp(1.2rem, 2.3vw, 2rem);
}

.hero-flagship-kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9fc1e4;
}

.hero-flagship-title {
  margin: 0.7rem 0 0;
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -1px;
  color: #f4f8ff;
}

.hero-flagship-sub {
  margin: 0.9rem 0 0;
  color: #bfd2e8;
  max-width: 56ch;
}

.hero-flagship-tags {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hero-flagship-tags span {
  font-size: 0.73rem;
  color: #d6e6f8;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.34rem 0.66rem;
  border-radius: 999px;
}

.hero-flagship-actions {
  margin-top: 1.05rem;
  display: flex;
  gap: 0.62rem;
  flex-wrap: wrap;
}

.hero-flagship-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.32);
  color: #e7f1fb;
}

.hero-flagship-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}

.hero-flagship-metrics article {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.68rem 0.72rem;
}

.hero-flagship-metrics strong {
  display: block;
  color: #f3f8ff;
  letter-spacing: -0.5px;
}

.hero-flagship-metrics span {
  display: block;
  margin-top: 0.2rem;
  color: #aac1d8;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.hero-flagship-visual {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  min-height: 100%;
  background: #05080f;
  display: flex;
  flex-direction: column;
}

.hero-flagship-visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}

.hero-flagship-visual figcaption {
  padding: 0.7rem 0.85rem;
  font-size: 0.74rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #dbe8f6;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: #05080f;
}

.hero-large {
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.34), rgba(7, 7, 7, 0.74) 50%, rgba(3, 3, 3, 0.95)),
    url("https://technext.github.io/flameonepage/img/1920x1080/01.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: saturate(0.92) contrast(1.08);
  animation: none;
}

.hero-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.05), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.hero-media-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: soft-light;
  opacity: 0.42;
  animation: none;
}

@keyframes mediaDrift {
  from { transform: translateY(0); }
  to { transform: translateY(18px); }
}

@keyframes heroZoom {
  from { background-size: 104%; }
  to { background-size: 112%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-large,
  .hero-media-layer,
  .apple-hero,
  .scroll-hint {
    animation: none !important;
  }
}

.hero-content-card {
  width: min(760px, 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(8, 13, 23, 0.68);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  animation: heroCardIn 0.7s ease both;
}

.apple-hero {
  max-width: 760px;
  position: relative;
  overflow: hidden;
  background: #f8fbff;
  border: 1px solid #ffffff;
  border-radius: 24px;
  padding: clamp(1.4rem, 2.8vw, 2.2rem);
  backdrop-filter: none;
  box-shadow: none;
  animation: heroCardIn 0.75s ease both;
}

.apple-hero::before {
  content: none;
}

.hero-title-wrap {
  max-width: 34ch;
}

.apple-kicker {
  margin: 0;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #2a4f76;
}

.apple-title {
  margin-top: 0.7rem;
  font-size: clamp(1.9rem, 4.8vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.9px;
  color: #040b14;
}

.apple-sub {
  margin-top: 1rem;
  color: #334e69;
  max-width: 50ch;
  font-size: 1.02rem;
}

.apple-actions {
  margin-top: 1.3rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.apple-actions .btn-primary {
  position: relative;
  overflow: hidden;
}

.apple-actions .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  transform: skewX(-22deg);
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: ctaSweep 3.6s ease-in-out infinite;
}

.apple-actions .btn-ghost {
  background: #ffffff;
  border-color: #b8d0ea;
  color: #0f2f4d;
}

.hero-metrics {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-metrics article {
  position: relative;
  overflow: hidden;
  border: 1px solid #d5e4f3;
  border-radius: 16px;
  padding: 0.78rem 0.8rem 0.74rem;
  background: #ffffff;
  box-shadow: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-metrics article::before {
  content: none;
}

.hero-metrics article:hover {
  transform: translateY(-1px);
  border-color: #aecaeb;
  box-shadow: none;
}

.hero-metrics strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.5px;
  color: #081726;
}

.hero-metrics span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.22rem;
  color: #3f5a73;
  font-size: 0.76rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hero-metrics article:nth-child(1)::after,
.hero-metrics article:nth-child(2)::after,
.hero-metrics article:nth-child(3)::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  bottom: 0.54rem;
  width: 34px;
  height: 2px;
  border-radius: 999px;
}

.hero-metrics article:nth-child(1)::after {
  background: linear-gradient(90deg, #38bdf8, transparent);
}

.hero-metrics article:nth-child(2)::after {
  background: linear-gradient(90deg, #5eead4, transparent);
}

.hero-metrics article:nth-child(3)::after {
  background: linear-gradient(90deg, #a3e635, transparent);
}

@media (max-width: 1200px) {
  .hero-flagship-wrap {
    grid-template-columns: 1fr;
  }

  .hero-flagship-visual img {
    min-height: 320px;
  }

  .hero-large {
    min-height: 86vh;
    padding: 6.2rem 0 2.5rem;
  }

  .apple-hero {
    max-width: 680px;
  }

  .apple-title {
    font-size: clamp(2.1rem, 5.3vw, 4.1rem);
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .apple-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .apple-actions .btn {
    width: 100%;
  }
}

.apple-section {
  padding: clamp(3.4rem, 8vw, 6rem) 0;
}

.apple-section.light {
  background: #f7f9fc;
  color: #091220;
}

.apple-section.dark {
  background: #05080f;
}

.apple-heading {
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.7px;
  margin: 0 0 0.8rem;
}

.apple-heading.dark,
.apple-copy.dark,
.apple-kicker.dark {
  color: #08121f;
}

.apple-copy {
  color: #b4c3d5;
  max-width: 60ch;
}

.apple-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: center;
}

.apple-split.reverse {
  grid-template-columns: 1fr 1fr;
}

.apple-image {
  width: 100%;
  height: min(64vh, 560px);
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow);
}

.apple-gallery {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.apple-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  overflow: hidden;
}

.apple-tile img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.apple-tile h3,
.apple-tile p {
  padding-inline: 1rem;
}

.apple-tile p {
  margin-bottom: 1rem;
  color: #b4c3d5;
}

.apple-stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.apple-stats article {
  background: white;
  border: 1px solid #d7e0ea;
  border-radius: 16px;
  padding: 1rem;
}

.apple-stats strong {
  display: block;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1;
}

.apple-stats span {
  color: #4f6278;
  font-size: 0.9rem;
}

.apple-contact {
  background: white;
  border: 1px solid #d7e0ea;
  border-radius: 24px;
  padding: clamp(1rem, 2.6vw, 2rem);
}

.map-section {
  padding-top: 0;
}

.map-fullbleed {
  margin-top: 1.2rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}

.map-card {
  position: relative;
  border: 1px solid #c9d8ea;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(7, 23, 44, 0.22);
  background: linear-gradient(180deg, #eef5fd, #dfeaf7);
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.22), transparent 22%, transparent 78%, rgba(4, 10, 20, 0.16));
}

.map-fullbleed .map-card {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.map-card iframe {
  width: 100%;
  height: clamp(460px, 64vh, 760px);
  border: 0;
  display: block;
  filter: saturate(1.08) contrast(1.03);
}

.variation-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 0.9rem;
}

.variation-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 0.9rem;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.variation-card:hover,
.variation-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.5);
  box-shadow: 0 20px 40px rgba(2, 8, 20, 0.45);
  outline: none;
}

.variation-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

.variation-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  background: #10161f;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.variation-card ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.variation-card li {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(8, 14, 25, 0.56);
}

.variation-card li span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-size: 0.68rem;
  color: #9ab4d1;
}

.variation-card li strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #e6effb;
}

.variation-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.variation-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.variation-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 16, 0.76);
  backdrop-filter: blur(6px);
}

.variation-modal-dialog {
  position: relative;
  width: min(860px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: linear-gradient(180deg, #0a101b, #060b13);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 24px 60px rgba(2, 8, 20, 0.58);
}

.variation-modal-close {
  position: absolute;
  right: 0.7rem;
  top: 0.45rem;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(8, 13, 23, 0.8);
  color: #e4edf8;
  font-size: 1.3rem;
  cursor: pointer;
}

.variation-modal-image {
  width: 100%;
  height: 360px;
  object-fit: contain;
  background: #0d1522;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
}

.variation-modal-title {
  margin: 0.9rem 0 0.7rem;
}

.variation-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.variation-modal-list li {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  background: rgba(9, 16, 29, 0.75);
}

.variation-modal-list span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.68rem;
  color: #9cb7d3;
}

.variation-modal-list strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: #e7eef9;
}

.qualities-shell {
  margin-top: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(8, 13, 23, 0.82));
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(2, 8, 20, 0.45);
}

.qualities-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  position: relative;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.quality-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 0;
  color: #96abc2;
  padding: 0.72rem 0.9rem;
  border-radius: 999px;
  margin-right: 0.35rem;
  cursor: pointer;
  font-size: 0.86rem;
  letter-spacing: 0.2px;
  transition: color 0.25s ease, opacity 0.25s ease, background 0.25s ease;
  opacity: 0.65;
  white-space: nowrap;
}

.quality-tab.active {
  color: #ffffff;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.quality-active-line {
  position: absolute;
  bottom: 0;
  height: 2px;
  width: 120px;
  background: #ffffff;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), width 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.quality-content {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  padding: 1.2rem;
  align-items: center;
  min-height: 460px;
}

.quality-counter-block {
  position: relative;
  margin-bottom: 0.65rem;
}

.quality-counter {
  font-size: 0.86rem;
  color: #9ab2cd;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.quality-counter span {
  color: #ffffff;
}

.quality-counter-large {
  position: absolute;
  top: -0.45rem;
  left: -0.08rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  z-index: 1;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.38s cubic-bezier(0.19, 1, 0.22, 1);
}

.quality-content.switching .quality-counter-large {
  transform: translateY(-8px);
  opacity: 0.45;
}

.quality-meta h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.quality-meta p {
  color: #b9c8d9;
  max-width: 45ch;
  line-height: 1.65;
}

.quality-tags {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quality-tags span {
  font-size: 0.72rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #d8e8f9;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: rgba(7, 12, 22, 0.65);
}

.quality-progress {
  margin-top: 0.75rem;
  width: min(320px, 100%);
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.26);
  overflow: hidden;
}

.quality-progress span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, #9fe0ff);
  transition: width 0.4s ease;
}

.quality-media img {
  width: 100%;
  height: min(52vh, 380px);
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #0d1522;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.quality-media {
  position: relative;
  border-radius: 16px;
  padding: 0.45rem;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.18), rgba(94, 234, 212, 0.1), rgba(96, 165, 250, 0.16));
}

.quality-media video {
  width: 100%;
  height: min(52vh, 380px);
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #0d1522;
  display: none;
}

.quality-media.is-video video {
  display: block;
}

.quality-media.is-video img {
  display: none;
}

.quality-media-caption {
  margin: 0.62rem 0 0.2rem;
  color: #a9bfd7;
  font-size: 0.86rem;
  letter-spacing: 0.2px;
}

.quality-content.switching .quality-media img {
  transform: scale(0.985);
  opacity: 0.82;
}

.quality-content.switching .quality-meta h3,
.quality-content.switching .quality-meta p,
.quality-content.switching .quality-tags {
  transform: translateY(4px);
  opacity: 0.65;
}

.quality-meta h3,
.quality-meta p,
.quality-tags {
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.quality-controls {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.45rem;
}

.quality-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.33);
  background: rgba(9, 16, 29, 0.78);
  color: #e7eef9;
  cursor: pointer;
  font-size: 1rem;
}

.quality-nav-btn:hover {
  border-color: rgba(94, 234, 212, 0.56);
  transform: translateY(-1px);
}

@keyframes heroCardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-1 {
  width: 210px;
  height: 210px;
  top: 14%;
  left: 9%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.5), rgba(96, 165, 250, 0.02) 70%);
}

.orb-2 {
  width: 170px;
  height: 170px;
  top: 22%;
  right: 15%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.55), rgba(94, 234, 212, 0.02) 68%);
  animation-delay: 1.2s;
}

.orb-3 {
  width: 130px;
  height: 130px;
  bottom: 18%;
  right: 36%;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.5), rgba(251, 113, 133, 0.02) 68%);
  animation-delay: 2s;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #9fc8ff;
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.hero-title {
  margin-top: 0.95rem;
  max-width: 16ch;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
  position: relative;
  z-index: 1;
}

.hero-points span {
  font-size: 0.76rem;
  color: #173b5f;
  letter-spacing: 0.35px;
  border: 1px solid #c7dced;
  background: #ffffff;
  padding: 0.34rem 0.66rem;
  border-radius: 999px;
}

.hero-actions {
  margin-top: 1rem;
}

.hero-actions .btn-primary {
  position: relative;
  overflow: hidden;
}

.hero-actions .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  transform: skewX(-22deg);
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: ctaSweep 3.6s ease-in-out infinite;
}

@keyframes ctaSweep {
  0%, 35% { left: -130%; }
  70%, 100% { left: 145%; }
}

.scroll-hint {
  margin-top: 0.95rem;
  font-size: 0.72rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #34506d;
  position: relative;
  z-index: 1;
  animation: hintPulse 1.8s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.65; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  color: var(--muted);
  font-size: 0.82rem;
}

h1, h2, h3 {
  font-family: "Space Grotesk", Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
  margin: 0 0 0.8rem;
  letter-spacing: 0.2px;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  letter-spacing: -0.4px;
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
}

.lead {
  color: var(--muted);
  max-width: 62ch;
}

.hero-card,
.card {
  border: 1px solid var(--surface-border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.3rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -55% -35%;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(94, 234, 212, 0.2) 0%,
    rgba(96, 165, 250, 0.06) 45%,
    transparent 72%
  );
  pointer-events: none;
}

.spec-list {
  display: grid;
  gap: 0.9rem;
}

.spec {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
  border-radius: 12px;
}

.section {
  padding: 2.6rem 0;
}

.hero-visual {
  min-height: 380px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 35% 30%, rgba(96, 165, 250, 0.35), transparent 38%),
    radial-gradient(circle at 78% 25%, rgba(94, 234, 212, 0.22), transparent 33%),
    linear-gradient(160deg, rgba(18, 33, 57, 0.92), rgba(10, 15, 26, 0.95));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 85%);
}

.radar-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.75);
  animation: ping 2.3s ease-out infinite;
}

.radar-dot:nth-child(1) { top: 24%; left: 20%; }
.radar-dot:nth-child(2) { top: 52%; left: 65%; animation-delay: 0.5s; }
.radar-dot:nth-child(3) { top: 70%; left: 38%; animation-delay: 1s; }

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.68); }
  75% { box-shadow: 0 0 0 16px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.stat {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  background: rgba(7, 14, 26, 0.65);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.slide {
  min-width: 100%;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 0.9rem;
}

.carousel-btn {
  border: 1px solid var(--surface-border);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.logo-pill {
  border: 1px solid var(--surface-border);
  color: var(--muted);
  border-radius: 999px;
  text-align: center;
  padding: 0.55rem;
  background: rgba(11, 17, 30, 0.72);
  font-weight: 600;
  letter-spacing: 0.4px;
}

.accordion {
  margin-top: 1rem;
}

.acc-btn {
  width: 100%;
  text-align: left;
  margin: 0.4rem 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  background: rgba(8, 14, 25, 0.7);
  color: var(--text);
  cursor: pointer;
}

.acc-btn.active {
  border-color: rgba(94, 234, 212, 0.5);
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.acc-panel.open {
  max-height: 120px;
}

.input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  background: rgba(8, 13, 23, 0.8);
  color: var(--text);
}

.input::placeholder {
  color: #8ea1ba;
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.card {
  padding: 1.25rem;
}

.card:hover {
  transform: translateY(-4px);
  transition: transform 0.25s ease;
}

.media {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  margin-bottom: 0.9rem;
}

.card p,
.muted {
  color: var(--muted);
}

.tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}

.tag {
  font-size: 0.76rem;
  color: #d8efff;
  border: 1px solid rgba(94, 234, 212, 0.35);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.cta {
  padding: 1.4rem;
  background: linear-gradient(
    120deg,
    rgba(94, 234, 212, 0.14),
    rgba(96, 165, 250, 0.15)
  );
}

.site-footer {
  background: #04070d;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-grid {
  padding: 2rem 0 1.2rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1rem;
}

.footer-grid h4 {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #eaf2fc;
}

.footer-grid a {
  display: block;
  margin: 0.35rem 0;
  color: #9db0c6;
  font-size: 0.92rem;
}

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

.footer-bottom {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #8fa3bb;
  font-size: 0.86rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s cubic-bezier(.2,.7,.2,1), transform 0.62s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-flagship {
    padding: 6.3rem 0 2.1rem;
    min-height: auto;
  }

  .hero-flagship-copy {
    border-radius: 20px;
    padding: 1.05rem;
  }

  .hero-flagship-title {
    font-size: clamp(1.85rem, 9vw, 2.75rem);
    line-height: 1.02;
  }

  .hero-flagship-metrics {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .hero-flagship-visual {
    border-radius: 20px;
  }

  .hero-flagship-visual img {
    min-height: 250px;
  }

  .hero-large {
    min-height: 100svh;
    align-items: center;
    padding: 6.4rem 0 1.8rem;
  }

  .apple-hero {
    width: 100%;
    border-radius: 18px;
    padding: 1.15rem;
  }

  .hero-title-wrap {
    max-width: 100%;
  }

  .apple-title {
    font-size: clamp(1.9rem, 10vw, 2.9rem);
    line-height: 1.03;
    letter-spacing: -0.7px;
  }

  .apple-sub {
    font-size: 0.96rem;
  }

  .hero-points {
    gap: 0.4rem;
  }

  .hero-points span {
    font-size: 0.7rem;
    padding: 0.3rem 0.55rem;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .stats-grid,
  .logo-strip {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 1rem;
    left: 1rem;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(7, 11, 20, 0.98);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    display: flex;
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .header-inner {
    margin-top: 0.35rem;
    border-radius: 14px;
  }

  .site-nav.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-orb {
    display: none;
  }

  .apple-split,
  .apple-split.reverse,
  .apple-gallery,
  .apple-stats,
  .variation-grid,
  .quality-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .apple-image {
    height: 320px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .hero-metrics article {
    padding: 0.68rem 0.7rem 0.66rem;
  }

  .hero-metrics strong {
    font-size: 1.15rem;
  }

  .hero-metrics span {
    font-size: 0.74rem;
  }

  .map-card iframe {
    height: clamp(360px, 52vh, 560px);
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
  }
}

@media (max-width: 900px) and (max-height: 740px) {
  .hero-large {
    align-items: flex-start;
    padding-top: 5.8rem;
    min-height: auto;
  }

  .hero-metrics article {
    padding: 0.52rem 0.62rem;
  }
}

@media (max-height: 820px) {
  .hero-large {
    align-items: center;
    min-height: auto;
    padding-top: 6.1rem;
    padding-bottom: 2.1rem;
  }

  .apple-title {
    line-height: 1.04;
  }
}
