:root {
  --orange: #F26A21;
  --orange-2: #FF8A4C;
  --navy: #1B2A4A;
  --charcoal: #2B2E33;
  --silver: #8D939E;
  --porcelain: #F5F6F8;

  --bg: #F5F6F8;
  --panel: rgba(255, 255, 255, 0.93);
  --panel-solid: #FFFFFF;
  --text: #111827;
  --heading: #1B2A4A;
  --muted: #606A7A;
  --subtle: #8A92A0;
  --line: rgba(27, 42, 74, 0.10);
  --grid: rgba(27, 42, 74, 0.038);
  --chip-bg: rgba(242, 106, 33, 0.09);
  --chip-line: rgba(242, 106, 33, 0.22);
  --chip-text: #B84F18;
  --soft-card: #FAFBFC;
  --count-card: linear-gradient(145deg, #1B2A4A, #263B67);
  --count-text: #FFFFFF;
  --count-label: rgba(255, 255, 255, 0.72);
  --button-soft: #FFFFFF;
  --shadow: 0 30px 85px rgba(21, 33, 58, 0.18);
  --visual-caption: rgba(16, 22, 34, 0.72);
  --visual-border: rgba(255,255,255,0.16);
  --hero-overlay:
    linear-gradient(to top, rgba(12, 18, 29, 0.82) 0%, rgba(12, 18, 29, 0.28) 48%, rgba(12, 18, 29, 0.08) 100%),
    linear-gradient(to left, rgba(27, 42, 74, 0.10), rgba(242, 106, 33, 0.08));
}

html[data-theme="dark"] {
  --bg: #0E1420;
  --panel: rgba(19, 27, 41, 0.94);
  --panel-solid: #151E2C;
  --text: #F5F7FA;
  --heading: #F5F7FA;
  --muted: #C2C8D1;
  --subtle: #8E98A8;
  --line: rgba(255, 255, 255, 0.10);
  --grid: rgba(255, 255, 255, 0.028);
  --chip-bg: rgba(242, 106, 33, 0.14);
  --chip-line: rgba(242, 106, 33, 0.28);
  --chip-text: #FFB187;
  --soft-card: #111A28;
  --count-card: linear-gradient(145deg, #F26A21, #D95512);
  --count-text: #FFFFFF;
  --count-label: rgba(255, 255, 255, 0.76);
  --button-soft: #151F2E;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
  --visual-caption: rgba(7, 12, 20, 0.76);
  --visual-border: rgba(255,255,255,0.14);
  --hero-overlay:
    linear-gradient(to top, rgba(6, 10, 17, 0.90) 0%, rgba(6, 10, 17, 0.40) 50%, rgba(6, 10, 17, 0.16) 100%),
    linear-gradient(to left, rgba(27, 42, 74, 0.24), rgba(242, 106, 33, 0.10));
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  transition: background-color .35s ease, color .35s ease;
}

button,
a {
  font: inherit;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: 0;
}

.glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  transition: opacity .35s ease, background-color .35s ease;
}

.glow-one {
  width: 500px;
  height: 500px;
  right: -190px;
  top: -190px;
  background: rgba(242, 106, 33, 0.16);
}

.glow-two {
  width: 520px;
  height: 520px;
  left: -220px;
  bottom: -220px;
  background: rgba(27, 42, 74, 0.13);
}

html[data-theme="dark"] .glow-one {
  background: rgba(242, 106, 33, 0.14);
}

html[data-theme="dark"] .glow-two {
  background: rgba(52, 84, 145, 0.16);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.launch-card {
  width: min(1240px, 100%);
  min-height: 730px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background-color .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

.content-panel {
  padding: 40px 48px 30px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-box {
  background: #FFFFFF;
  border: 1px solid rgba(27, 42, 74, 0.10);
  border-radius: 18px;
  padding: 8px 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.brand-logo {
  width: 215px;
  height: auto;
  display: block;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.launch-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-line);
  color: var(--chip-text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(242,106,33,.40);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(.65); opacity: .95; }
  100% { transform: scale(1.55); opacity: 0; }
}

.theme-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--button-soft);
  color: var(--heading);
  padding: 7px 11px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease,
    transform .2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-icon {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
}

.theme-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: grid;
}

.hero-copy {
  padding-top: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  direction: ltr;
  text-align: right;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
}

h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(44px, 4.7vw, 70px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 900;
  transition: color .35s ease;
}

h1 span {
  display: block;
  color: var(--orange);
}

.lead {
  max-width: 680px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
  transition: color .35s ease;
}

.english {
  margin: 8px 0 0;
  direction: ltr;
  text-align: right;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.75;
  transition: color .35s ease;
}

.countdown-section {
  margin-top: 32px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.time-card {
  position: relative;
  min-height: 108px;
  overflow: hidden;
  padding: 18px 12px 15px;
  border-radius: 18px;
  background: var(--count-card);
  color: var(--count-text);
  text-align: center;
  box-shadow: 0 13px 28px rgba(27, 42, 74, 0.16);
  transition: background .35s ease, transform .2s ease;
}

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

.time-card::before {
  content: "";
  position: absolute;
  top: -26px;
  left: -18px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
}

.time-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.time-card span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 11px;
  color: var(--count-label);
  font-size: 12px;
}

.launch-date-box {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-card);
  transition: background-color .35s ease, border-color .35s ease;
}

.date-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(242, 106, 33, 0.11);
  color: var(--orange);
}

.date-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.launch-date-box small,
.launch-date-box strong {
  display: block;
}

.launch-date-box small {
  margin-bottom: 2px;
  color: var(--subtle);
  font-size: 11px;
}

.launch-date-box strong {
  color: var(--heading);
  font-size: 14px;
  transition: color .35s ease;
}

.contact-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #FFFFFF;
  box-shadow: 0 12px 26px rgba(242,106,33,.22);
}

.btn-primary:hover {
  box-shadow: 0 17px 32px rgba(242,106,33,.30);
}

.btn-secondary {
  direction: ltr;
  background: var(--button-soft);
  color: var(--heading);
  border: 1px solid var(--line);
}

.page-footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--subtle);
  font-size: 11px;
}

.footer-dot {
  color: var(--orange);
}

.visual-panel {
  min-height: 730px;
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

.visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  animation: slowZoom 17s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.075); }
}

.visual-shade {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  transition: background .35s ease;
}

.visual-lines {
  position: absolute;
  left: 31px;
  top: 31px;
  display: grid;
  gap: 7px;
  transform: rotate(-45deg);
}

.visual-lines i {
  display: block;
  width: 50px;
  height: 4px;
  border-radius: 99px;
  background: var(--orange);
}

.visual-lines i:nth-child(2) {
  width: 37px;
  opacity: .78;
}

.visual-lines i:nth-child(3) {
  width: 25px;
  opacity: .55;
}

.visual-caption {
  position: absolute;
  right: 34px;
  left: 34px;
  bottom: 34px;
  padding: 22px 22px 24px;
  border: 1px solid var(--visual-border);
  border-radius: 22px;
  background: var(--visual-caption);
  color: #FFFFFF;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,.23);
  transition: background-color .35s ease;
}

.caption-line {
  display: block;
  width: 52px;
  height: 4px;
  margin-bottom: 13px;
  border-radius: 99px;
  background: var(--orange);
}

.visual-caption small {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,.76);
  font-size: 13px;
}

.visual-caption strong {
  display: block;
  direction: ltr;
  text-align: right;
  font-size: 30px;
  letter-spacing: -.02em;
}

@media (max-width: 1020px) {
  .page-shell {
    padding: 18px;
  }

  .launch-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .visual-panel {
    order: -1;
    min-height: 420px;
  }

  .content-panel {
    padding: 30px 30px 26px;
  }

  .hero-copy {
    padding-top: 38px;
  }

  .page-footer {
    margin-top: 30px;
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding: 0;
    align-items: stretch;
  }

  .launch-card {
    min-height: 100vh;
    border-radius: 0;
  }

  .visual-panel {
    min-height: 310px;
  }

  .content-panel {
    padding: 22px 18px 24px;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand-box {
    max-width: 57%;
  }

  .brand-logo {
    width: 100%;
  }

  .top-actions {
    max-width: 43%;
    gap: 7px;
  }

  .launch-chip {
    padding: 7px 9px;
    font-size: 10px;
  }

  .theme-toggle {
    padding: 7px 9px;
  }

  .theme-text {
    display: none;
  }

  .hero-copy {
    padding-top: 30px;
  }

  h1 {
    font-size: 39px;
  }

  .lead {
    font-size: 15px;
  }

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

  .btn {
    flex: 1 1 100%;
  }

  .visual-caption {
    right: 18px;
    left: 18px;
    bottom: 18px;
    padding: 16px 18px;
    border-radius: 16px;
  }

  .visual-caption strong {
    font-size: 23px;
  }

  .page-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
