:root {
  --bg-1: #f8fbff;
  --bg-2: #e8f0ff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --text: #1b2a44;
  --muted: #5c7197;
  --line: rgba(72, 110, 178, 0.25);
  --accent: #ff0438;
  --accent-2: #ffb44d;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --shadow: 0 16px 44px rgba(30, 64, 125, 0.14);
  --brand-red: #ff0438;
  --brand-dark: #1f1f1f;
  --brand-gradient: linear-gradient(180deg, var(--brand-red) 0%, var(--brand-dark) 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 8% 0%, rgba(118, 206, 250, 0.32), transparent 38%), radial-gradient(circle at 88% 12%, rgba(70, 121, 245, 0.18), transparent 36%), linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: clamp(340px, 52vw, 640px);
}

.hero-picture {
  display: block;
  width: 100%;
}

.hero-image {
  width: 100%;
  height: clamp(340px, 52vw, 640px);
  display: block;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 20, 0.14) 0%, rgba(3, 8, 20, 0.8) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vw, 56px);
  transform: translateX(-50%);
  width: min(1180px, 92vw);
}

.hero-content .eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-content h1 {
  margin: 10px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.65rem, 5vw, 3.5rem);
  line-height: 1.08;
}

.hero-content p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #e8f6ff;
}

.video-shell {
  width: 100%;
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.video-shell iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.product-section {
  margin-top: 56px;
  margin-bottom: 56px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.image-panel,
.details-panel,
.form-card,
.spec-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.image-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: clamp(18px, 3vw, 34px);
}

.image-panel h2,
.details-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.image-panel img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
}

.details-panel {
  padding: clamp(24px, 3vw, 34px);
}

.tagline {
  margin: 8px 0 28px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vw, 1.14rem);
}

.group-label {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  padding: 0;
  border-radius: 0;
  background-image: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.button-row,
.tile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-button,
.tile-button,
.submit-button {
  font-family: "Outfit", sans-serif;
  border: 1px solid var(--line);
  color: #2a2a2a;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.color-button:hover,
.tile-button:hover,
.submit-button:hover {
  border-color: #f50436;
  color: #ffffff;
  background: #f50436;
  background-image: none;
}

.color-button.active,
.tile-button.active {
  border-color: #f50436;
  color: #ffffff;
  background: #f50436;
  background-image: none;
  box-shadow: 0 10px 22px rgba(245, 4, 54, 0.28);
}

/* Product color buttons should match actual device colors, not brand gradient */
.color-tile {
  color: #1b2a44;
  background: rgba(255, 255, 255, 0.96);
  background-image: none;
  border-color: rgba(120, 144, 177, 0.48);
}

.color-tile:hover {
  color: #1b2a44;
  background: rgba(245, 249, 255, 0.98);
  background-image: none;
  border-color: rgba(120, 144, 177, 0.72);
}

.color-tile.active[data-color="Sapphire Black Blue"] {
  background: #2563eb;
  border-color: rgba(20, 57, 125, 0.9);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 44, 98, 0.35);
}

.color-tile.active[data-color="Moonstone Silver"] {
  background: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.9);
  color: #111827;
  box-shadow: 0 12px 26px rgba(136, 148, 165, 0.28);
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.spec-pills span {
  background: rgba(13, 30, 54, 0.8);
  border: 1px solid rgba(118, 220, 255, 0.32);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.86rem;
}

.form-section {
  margin-top: 38px;
}

.form-card {
  padding: clamp(20px, 3vw, 34px);
}

.form-card-inline {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.form-card-inline h3:first-child {
  margin-top: 0;
}

.form-card h3 {
  margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
}

.price-highlight {
  margin: 0 0 18px;
  padding: 10px 16px;
  border: 1px solid #b9c6d8;
  border-radius: 14px;
  background: #ebf2ff;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.price-highlight-label {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.price-highlight strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.9vw, 1.7rem);
  font-weight: 800;
  line-height: 1;
  color: #f50436;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
  border-radius: 0;
  background-image: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.required {
  color: #ff8a8a;
  -webkit-text-fill-color: #ff8a8a;
  background: none;
}

.form-group input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.96rem;
  font-family: "Outfit", sans-serif;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(255, 4, 56, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 4, 56, 0.2);
}

.form-actions {
  margin-top: 22px;
  text-align: center;
}

.submit-button {
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 12px 20px;
  width: 100%;
  display: block;
  background: #f50436;
  background-image: none;
  color: #ffffff;
  border: 0;
}

.submit-button:active {
  color: #ffffff;
  background: #f50436;
  background-image: none;
}

.secure-note {
  margin: 12px 0 0;
  color: #5f7397;
  font-size: 0.9rem;
}

.form-message {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.93rem;
  display: none;
}

.form-message.error {
  display: block;
  background: rgba(255, 109, 109, 0.12);
  border: 1px solid rgba(255, 154, 154, 0.42);
  color: #8f1f1f;
}

.form-message.success {
  display: block;
  background: rgba(87, 255, 193, 0.14);
  border: 1px solid rgba(98, 216, 177, 0.45);
  color: #1e6d4f;
}

.spec-section {
  margin: 48px auto 68px;
}

.spec-section h3 {
  margin: 0 0 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.24rem, 2.6vw, 1.7rem);
  color: var(--text);
}

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

.spec-card {
  padding: 16px;
  border-radius: var(--radius-lg);
}

.spec-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  background-image: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.spec-card p {
  margin: 0;
  color: #2e2e2e;
  line-height: 1.45;
  font-size: 0.92rem;
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .hero {
    min-height: 0;
  }

  .hero-image {
    height: auto;
    object-fit: contain;
  }

  .product-section {
    margin-top: 34px;
  }

  .price-highlight {
    padding: 10px 12px;
  }

  .price-highlight strong {
    font-size: 1.25rem;
  }

  .color-button,
  .tile-button {
    width: 100%;
    border-radius: 12px;
    text-align: left;
  }

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

  .spec-section {
    margin-bottom: 44px;
  }
}
