:root {
  color-scheme: light;
  --ink: #19191d;
  --muted: #666b73;
  --line: rgba(25, 25, 29, 0.12);
  --paper: #f7f6f2;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: #ffffff;
  --accent: #286b62;
  --accent-dark: #184a43;
  --warm: #c9714b;
  --shadow: 0 22px 70px rgba(31, 38, 47, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 6%, rgba(201, 113, 75, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(40, 107, 98, 0.20), transparent 30rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--paper) 46%, #eef3f1 100%);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.18)),
    linear-gradient(145deg, var(--accent), var(--warm));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(40, 107, 98, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.7rem);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(3rem, 7vw, 6rem) 5vw clamp(4rem, 8vw, 7rem);
}

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

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.12rem;
}

.hero-text {
  max-width: 560px;
  color: #444950;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
  line-height: 1;
}

.button.primary {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(40, 107, 98, 0.24);
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.68);
}

.button.full {
  width: 100%;
}

.hero-visual {
  position: relative;
  padding: 1.5%;
  border-radius: 12px;
  background: #1a1a1a; /* TV Bezel */
  box-shadow: 
    0 0 0 2px #333,
    0 30px 60px -12px rgba(0,0,0,0.5),
    0 18px 36px -18px rgba(0,0,0,0.5);
}

/* TV Screen area */
.tv-screen {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.2);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TV Stand/Bottom details */
.hero-visual::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 12%;
  height: 4px;
  background: #222;
  border-radius: 0 0 4px 4px;
}

/* Segmented Control */
.segmented-control {
  display: inline-flex;
  padding: 4px;
  margin-bottom: 3rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

.segment-button {
  padding: 8px 24px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.segment-button:hover {
  color: var(--ink);
}

.segment-button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.carousel-button:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.carousel-button.prev { left: -60px; }
.carousel-button.next { right: -60px; }

/* Responsive Carousel Buttons */
@media (max-width: 1100px) {
  .carousel-button.prev { left: 10px; }
  .carousel-button.next { right: 10px; }
}

.screen-display {
  max-width: 1000px;
  margin: 0 auto;
}

.screen-display img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.screen-display.iphone-frame {
  max-width: 320px;
}

.screen-display.ipad-frame {
  max-width: 700px;
}

.feature-band,
.screens-section,
.support-layout,
.support-hero,
.closing-band {
  padding-right: 5vw;
  padding-left: 5vw;
}

.feature-band {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: rgba(255, 255, 255, 0.46);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

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

.feature-card,
.screen-card,
.support-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(31, 38, 47, 0.08);
}

.feature-card {
  padding: 1.35rem;
}

.feature-card p,
.support-panel p,
.contact-card p,
.plain-list {
  color: var(--muted);
}

.screens-section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.screen-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.screen-card {
  overflow: hidden;
  margin: 0;
  background: var(--panel-strong);
}

.screen-card img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: left top;
}

.screen-card figcaption {
  padding: 0.8rem 1rem 1rem;
  color: var(--muted);
  font-weight: 700;
}

.closing-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.closing-band h2 {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 5vw 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  font-weight: 700;
}

.support-hero {
  max-width: 980px;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: 2rem;
}

.support-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.support-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.2rem;
  align-items: start;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.support-main {
  display: grid;
  gap: 1rem;
}

.support-panel,
.contact-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.support-panel h2,
.contact-card h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

details:last-child {
  padding-bottom: 0;
}

summary {
  cursor: pointer;
  font-weight: 760;
}

details p {
  margin: 0.7rem 0 0;
}

.plain-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.2rem;
}

.contact-card {
  position: sticky;
  top: 96px;
  background: #ffffff;
}

.fine-print {
  margin: 0.9rem 0 0;
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .hero,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .screen-grid {
    grid-template-columns: 1fr;
  }

  .screen-card img {
    height: auto;
    min-height: 0;
  }

  .contact-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 2.4rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .feature-grid,
  .closing-band {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    display: grid;
  }

  .closing-band {
    display: grid;
    align-items: start;
  }

  .button {
    width: 100%;
  }
}
