/* tubzer.css — Tubzer website */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red:       #ED391B;
  --red-dark:  #c42d13;
  --salmon:    #e98e8e;
  --salmon-bg: #fdf0ef;
  --dark:      #181818;
  --dark-2:    #232323;
  --dark-3:    #2e2e2e;
  --text:      #1f1f1f;
  --muted:     #6b7280;
  --light:     #f7f4f4;
  --white:     #ffffff;
  --border:    #ecdcdc;
  --radius:    8px;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--salmon);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ─── Container ─────────────────────────────────────────── */

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Header ─────────────────────────────────────────────── */

#site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 2px solid var(--salmon);
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.4px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--red);
  text-decoration: none;
}

#site-header nav {
  display: flex;
  align-items: center;
  gap: 0;
}

#site-header nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 4px 0;
  margin-left: 30px;
  text-decoration: none;
  transition: color 0.15s;
}

#site-header nav a:hover {
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition: background 0.15s;
}

/* Mobile nav drawer */
#mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--dark-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#mobile-nav.open {
  display: flex;
}

#mobile-nav a {
  color: rgba(255, 255, 255, 0.75);
  padding: 13px 28px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

#mobile-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

/* ─── Hero ───────────────────────────────────────────────── */

#hero {
  background: var(--dark);
  padding: 72px 0 68px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1;
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

#hero p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
  max-width: 440px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
}

.btn-play:hover {
  background: var(--red-dark);
  color: #fff;
  text-decoration: none;
}

.btn-play svg {
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-stats span {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ─── Features ───────────────────────────────────────────── */

#features {
  background: var(--white);
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--salmon);
  margin-bottom: 10px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px 22px;
  background: var(--salmon-bg);
  border-radius: var(--radius);
  border-top: 3px solid var(--salmon);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── Footer ─────────────────────────────────────────────── */

#site-footer {
  background: var(--dark);
  padding: 52px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-grid h4 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul li a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-grid ul li a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 18px 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  #site-header nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  #hero {
    padding: 52px 0 48px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 32px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  #features {
    padding: 48px 0;
  }

  #site-footer {
    padding: 40px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Subpage shared ─────────────────────────────────────── */

#page-hero {
  background: var(--dark);
  padding: 48px 0 42px;
  border-bottom: 2px solid var(--salmon);
}

#page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

#page-hero p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 500px;
}

#page-content {
  background: var(--light);
  padding: 52px 0 64px;
  min-height: 50vh;
}

.page-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

.content-card:last-child {
  margin-bottom: 0;
}

.content-card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.content-card p,
.content-card li {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

.content-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-card ul li {
  padding: 4px 0 4px 16px;
  position: relative;
}

.content-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--salmon);
  font-size: 0.75rem;
}

.sidebar-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

.sidebar-box:last-child {
  margin-bottom: 0;
}

.sidebar-box h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-box ul li {
  margin-bottom: 10px;
}

.sidebar-box ul li:last-child {
  margin-bottom: 0;
}

.sidebar-box ul li a {
  font-size: 0.875rem;
  color: var(--salmon);
  text-decoration: none;
}

.sidebar-box ul li a:hover {
  text-decoration: underline;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 14px;
  text-decoration: none;
  transition: border-color 0.15s;
}

.contact-link:hover {
  border-color: var(--salmon);
  color: var(--text);
  text-decoration: none;
}

.contact-link svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.faq-item h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.faq-item p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.faq-item ol {
  padding-left: 18px;
  margin: 0;
}

.faq-item ol li {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 4px;
}

/* Connect cards */
.community-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 0;
}

.community-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.community-card:hover {
  border-color: var(--salmon);
  box-shadow: 0 2px 10px rgba(233, 142, 142, 0.15);
  text-decoration: none;
}

.community-card .card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--salmon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.community-card .card-icon svg {
  color: var(--salmon);
}

.community-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.community-card p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 768px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .community-cards {
    grid-template-columns: 1fr;
  }
}
