/* Twin Website Stylesheet
   Theme: High-End Pro Dark (Linear / Vercel inspired)
   Utilitarian, clean typography, low text density, engaging dark surfaces */

:root {
  --bg: #090A0D;
  --bg-gradient: radial-gradient(circle at 50% -10%, rgba(59, 130, 246, 0.12) 0%, rgba(9, 10, 13, 0) 65%);
  --surface: #111317;
  --surface-2: #16181F;
  --surface-3: #1C1F28;
  --surface-hover: #20242E;
  
  --border: #232732;
  --border-subtle: #191C24;
  --border-focus: #3B82F6;
  --border-highlight: rgba(255, 255, 255, 0.08);

  --text: #F1F3F7;
  --text-muted: #9499A8;
  --text-subtle: #616675;

  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-light: #60A5FA;
  --accent-subtle: rgba(59, 130, 246, 0.10);
  --accent-border: rgba(59, 130, 246, 0.25);

  --success: #22C55E;
  --success-subtle: rgba(34, 197, 94, 0.12);
  --success-border: rgba(34, 197, 94, 0.25);

  --warning: #F59E0B;
  --danger: #EF4444;
  --danger-subtle: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.25);

  --font-sans: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "SF Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
  background-color: var(--bg);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Containers with breathing room */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { color: var(--text-muted); font-size: 1.02rem; }
.mono { font-family: var(--font-mono); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(9, 10, 13, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  color: #FFFFFF;
  text-decoration: none;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.version-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-light);
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
  font-weight: 500;
}

.nav-link:hover {
  color: #FFFFFF;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: all 150ms ease;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background-color: var(--surface-2);
  border-color: var(--border-highlight);
  color: #FFFFFF;
}

.btn-lg {
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--text);
  margin-bottom: 24px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--success);
  display: inline-block;
}

.hero-title {
  margin: 0 auto 20px;
  max-width: 840px;
}

.hero-subtitle {
  margin: 0 auto 36px;
  max-width: 660px;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-meta-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  flex-wrap: wrap;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

/* Metric Counter Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  transition: border-color 150ms ease;
}

.stat-card:hover {
  border-color: var(--accent-border);
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #FFFFFF;
  margin-bottom: 4px;
}

.stat-number.accent {
  color: var(--accent-light);
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Sections */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
}

.section-tag {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
  font-weight: 600;
}

.section-title {
  margin-bottom: 12px;
}

.section-desc {
  max-width: 640px;
  font-size: 1.05rem;
}

.section-head.center .section-desc {
  margin: 0 auto;
}

/* The Three Core Pillars (Clean, uncluttered, low text density) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.pillar-card:hover {
  border-color: var(--accent-border);
  background-color: var(--surface-2);
}

.pillar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.pillar-title {
  font-size: 1.15rem;
  color: #FFFFFF;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pillar-metric-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-light);
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 16px;
  transition: border-color 150ms ease;
}

.feature-card:hover {
  border-color: var(--accent-border);
}

.feature-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-title {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Resource Governor Section */
.governor-banner {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.governor-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.governor-rules-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.governor-rule-card {
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rule-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rule-title {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.rule-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.rule-metric {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Comparison Table Section */
.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: middle;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table th {
  background-color: var(--surface-2);
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}

.comparison-table th.col-feature { width: 34%; }
.comparison-table th.col-twin {
  width: 33%;
  color: var(--accent-light);
  background-color: var(--accent-subtle);
  border-left: 1px solid var(--accent-border);
  border-right: 1px solid var(--accent-border);
}
.comparison-table th.col-gdrive { width: 33%; color: var(--text-muted); }

.comparison-table td.cell-twin {
  background-color: rgba(59, 130, 246, 0.04);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-weight: 500;
}

.badge-win {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--success-subtle);
  color: #4ADE80;
  border: 1px solid var(--success-border);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.badge-neutral {
  display: inline-block;
  color: var(--text);
  font-size: 13px;
}

.badge-loss {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--danger-subtle);
  color: #F87171;
  border: 1px solid var(--danger-border);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* GitHub Contribution Callout Section */
.contribute-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.contribute-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contribute-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.contribute-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contribute-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Download Section (JioTV Max style focused card) */
.download-section {
  text-align: center;
}

.download-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.download-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.download-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hash-container {
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  max-width: 620px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  gap: 12px;
}

.hash-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hash-copy-button {
  background: none;
  border: none;
  color: var(--accent-light);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.hash-copy-button:hover {
  color: #FFFFFF;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform 150ms ease;
  flex-shrink: 0;
}

.faq-card.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 16px 20px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.faq-card.open .faq-answer {
  display: block;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  font-size: 13px;
  color: var(--text-muted);
  background-color: rgba(9, 10, 13, 0.95);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

.footer-links-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-weight: 600;
  color: #FFFFFF;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 150ms ease;
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 960px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .governor-banner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .contribute-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .footer-links-group {
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .download-card {
    padding: 32px 18px;
  }
  .download-actions-group .btn {
    width: 100%;
  }
}
