/* ==========================================================================
   IPTV da Casa — Studio Design System (Vanilla CSS)
   Aesthetic: Architectural Luxury, Ceramic Dark, Brushed Titanium, Precision Typography
   Zero AI clichés, Zero saturated neon, High-end consumer hardware aesthetic.
   ========================================================================== */

:root {
  --bg-base: #07080a;
  --bg-surface: #0e1015;
  --bg-elevated: #151821;
  --bg-card: rgba(18, 21, 29, 0.7);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-active: rgba(255, 255, 255, 0.35);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-subtle: #4b5563;

  --accent-white: #ffffff;
  --accent-soft: #e5e7eb;
  --accent-live: #ef4444;

  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-primary);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --timing-snappy: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --timing-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, .logo-title, .caption, .spec-index {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-weight: 600;
}

.text-contrast {
  color: var(--accent-white);
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-primary);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--timing-snappy);
  white-space: nowrap;
}
.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.825rem;
}
.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 0.975rem;
}
.btn-full {
  width: 100%;
  padding: 0.95rem;
}
.btn-primary {
  background-color: var(--accent-white);
  color: #050608;
  font-weight: 600;
}
.btn-primary:hover {
  background-color: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12);
}
.btn-subtle {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-subtle:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--accent-white);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 90;
  background-color: rgba(7, 8, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--accent-white);
}
.logo-mark {
  stroke: var(--accent-white);
}
.logo-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--timing-snappy);
}
.nav-item:hover {
  color: var(--accent-white);
}

/* Hero Section */
.hero {
  padding: 5.5rem 0 3rem;
  text-align: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
}
.hero-heading {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.12;
  max-width: 850px;
  margin-bottom: 1.5rem;
  color: #f9fafb;
}
.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* TV Mockup */
.tv-mockup-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.tv-bezel {
  background: #111319;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.tv-screen {
  background: #060709;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.mockup-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mockup-brand {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-white);
  letter-spacing: -0.02em;
}
.mockup-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.meta-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}
.mockup-clock {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.mockup-content {
  display: flex;
  height: 380px;
}
.mockup-sidebar {
  width: 70px;
  background: rgba(255, 255, 255, 0.015);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  gap: 1.6rem;
}
.mockup-nav-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  transition: all var(--timing-snappy);
}
.mockup-nav-icon.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.mockup-grid {
  flex-grow: 1;
  padding: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: start;
}
.mockup-channel-card {
  background: #0e1118;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mockup-channel-card.focused {
  border: 2px solid var(--accent-white);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}
.card-thumb {
  height: 160px;
  background: linear-gradient(135deg, #182236 0%, #0d121c 100%);
  position: relative;
  padding: 0.8rem;
}
.card-thumb.secondary {
  background: linear-gradient(135deg, #1c1f28 0%, #0c0e14 100%);
}
.card-thumb.tertiary {
  background: linear-gradient(135deg, #1d2526 0%, #0a1112 100%);
}
.live-pill {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--accent-live);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}
.card-caption {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-white);
}
.card-epg {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.tv-stand {
  width: 220px;
  height: 12px;
  background: linear-gradient(180deg, #272a33, #121317);
  margin: 0 auto;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

/* Sections Shared */
.section {
  padding: 6rem 0;
}
.section-border {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.section-intro {
  margin-bottom: 3.5rem;
}
.caption {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}
.title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--accent-white);
}
.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Activation Panel (Concierge Style) */
.activation-panel {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
.panel-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
}
.panel-tab {
  flex: 1;
  padding: 1.1rem;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--timing-snappy);
  border-bottom: 2px solid transparent;
}
.panel-tab.active {
  color: var(--accent-white);
  border-bottom-color: var(--accent-white);
  background: rgba(255, 255, 255, 0.02);
}
.panel-body {
  padding: 2.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.4rem;
}
.field-label {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}
.field-hint {
  font-size: 0.725rem;
  color: var(--text-subtle);
  margin-top: 0.35rem;
}
.input {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--timing-snappy);
}
.input:focus {
  border-color: var(--border-active);
  background-color: #1a1e2a;
}
.input-mono {
  font-family: monospace;
  letter-spacing: 0.06em;
}
.field-actions {
  margin-top: 1.8rem;
}
.feedback-card {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  line-height: 1.5;
}
.result-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}
.result-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.spec-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}
.spec-index {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}
.spec-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--accent-white);
}
.spec-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Platforms Grid */
.platforms-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.platform-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color var(--timing-snappy);
}
.platform-card:hover {
  border-color: var(--border-hover);
}
.platform-tag {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-white);
}
.platform-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Pricing Deck */
.pricing-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}
.tier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier-highlight {
  border-color: rgba(255, 255, 255, 0.3);
  background: #11141d;
}
.highlight-label {
  color: #10b981;
}
.tier-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.8rem;
  margin-bottom: 1.8rem;
}
.tier-label {
  font-size: 0.725rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--text-subtle);
  display: block;
  margin-bottom: 0.5rem;
}
.tier-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-white);
  margin-bottom: 1rem;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}
.tier-currency {
  font-size: 1.1rem;
  color: var(--text-muted);
}
.tier-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-white);
}
.tier-period {
  font-size: 0.825rem;
  color: var(--text-subtle);
  margin-left: 0.3rem;
}
.tier-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
}
.tier-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.tier-items li {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.tier-items strong {
  color: var(--accent-white);
}
.legal-notice {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* FAQ Box */
.faq-list {
  max-width: 740px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-toggle {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: transparent;
  border: none;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}
.chevron {
  stroke: var(--text-muted);
  transition: transform var(--timing-snappy);
}
.faq-box.active .chevron {
  transform: rotate(180deg);
}
.faq-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--timing-smooth), padding var(--timing-snappy);
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.faq-box.active .faq-collapse {
  max-height: 250px;
  padding: 0 1.5rem 1.4rem;
}

/* Modal PIX */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-card {
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  padding: 2rem;
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}
.modal-sub {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  font-weight: 600;
}
.modal-headline {
  font-size: 1.3rem;
  color: var(--accent-white);
  margin-top: 0.2rem;
}
.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.price-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}
.price-strip strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent-white);
}
.modal-instruction {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.copy-input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.input-code {
  font-size: 0.75rem;
  color: var(--text-subtle);
}
.modal-bottom {
  margin-top: 1.6rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 3rem;
  background: #040507;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 320px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-white);
}
.footer-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 1rem;
}
.footer-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-head {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-group a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.825rem;
  transition: color var(--timing-snappy);
}
.footer-group a:hover {
  color: var(--accent-white);
}

/* Responsividade */
@media (max-width: 900px) {
  .pricing-deck {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto 3rem;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
  .platforms-list {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .platforms-list {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .mockup-grid {
    grid-template-columns: 1fr;
  }
  .mockup-content {
    height: auto;
  }
}
