/* =============================================================================
   SUMTYING — Handcrafted & Engineered by Sanjarshan Shankar
   Design Philosophy: Premium, sleek, modern (Apple / Linear / Nothing Tech feel)
   No cheesy AI slop, no fake sci-fi HUDs. Pure craft, rich typography, fluid polish.
   ============================================================================= */

:root {
  /* Surfaces & Dark Tone Layers (Pure Black & Neutral Charcoal) */
  --bg: #000000;
  --bg-subtle: #080808;
  --surface: #101010;
  --surface-hover: #161616;
  --surface-elevated: #1c1c1c;
  
  /* Borders & Dividers */
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-focus: rgba(255, 255, 255, 0.4);
  
  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-accent: #ffffff;

  /* Accent Accents (Refined & Controlled) */
  --color-blue: #ffffff;
  --color-amber: #e4e4e7;
  --color-emerald: #ffffff;
  --color-rose: #ffffff;
  --color-purple: #ffffff;
  
  /* Fonts — Strictly Plus Jakarta Sans (Sumtying Brand Font) */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Plus Jakarta Sans', monospace;

  /* Geometry & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.9);
}

/* Base Resets & Global Scrollbar Hiding */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: #ffffff;
  color: #000000;
}

::-moz-selection {
  background: #ffffff;
  color: #000000;
}

input, button, select, textarea {
  font-family: var(--font-sans) !important;
}

*::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background-color: #000000;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* =============================================================================
   NAVIGATION BAR (Apple / Linear Minimalist Glass)
   ============================================================================= */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
  min-height: 68px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.nav-brand:hover img {
  transform: scale(1.05);
}

.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
  color: #fff;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  padding: 0;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: transparent;
}

.nav-cta {
  background: transparent !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  transform: none !important;
  box-shadow: none !important;
}

.nav-cta:hover,
.nav-cta.active {
  color: #ffffff !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Mobile Nav Toggle (Modern borderless 2-line minimalist) */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px 0;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  transition: opacity 0.2s ease;
  z-index: 101;
}

.mobile-nav-toggle:hover {
  opacity: 0.75;
}

.hamburger-bar {
  display: block;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, width 0.2s ease;
}

.hamburger-bar:nth-child(1) {
  width: 20px;
}

.hamburger-bar:nth-child(2) {
  width: 13px;
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
  width: 18px;
  transform: translateY(3.5px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
  width: 18px;
  transform: translateY(-3.5px) rotate(-45deg);
}

/* =============================================================================
   PAGE HERO & HEADINGS
   ============================================================================= */
.page-hero {
  padding: 72px 0 48px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-emerald);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  font-family: var(--font-sans) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: #ffffff;
  border-color: var(--border);
}

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

/* =============================================================================
   KEY STATS / HIGHLIGHTS BAR
   ============================================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0 64px;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: var(--transition);
}

.stat-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-box-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-box-num.gold { color: var(--color-amber); }
.stat-box-num.blue { color: var(--color-blue); }
.stat-box-num.green { color: var(--color-emerald); }
.stat-box-num.rose { color: var(--color-rose); }

.stat-box-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.stat-box-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================================================
   CARDS & SECTIONS
   ============================================================================= */
.section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.section-head .section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.section-head .section-link:hover {
  color: #fff;
}

/* Card Container (Matches Mission & Me Dark Box) */
.card {
  background: #090909;
  border: 1px solid #1a1a1a;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: #333333;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* =============================================================================
   RAW VLOG & DAILY JOURNAL PLAYER
   ============================================================================= */
.vlog-player-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.vlog-screen {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.vlog-screen-placeholder {
  text-align: center;
  padding: 24px;
}

.play-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-circle:hover {
  transform: scale(1.08);
  background: #ffffff;
  color: #000000;
}

.vlog-content {
  padding: 28px;
}

.vlog-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.tag.amber { background: rgba(245, 158, 11, 0.12); color: var(--color-amber); }
.tag.blue { background: rgba(59, 130, 246, 0.12); color: var(--color-blue); }
.tag.green { background: rgba(16, 185, 129, 0.12); color: var(--color-emerald); }

.vlog-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #fff;
  margin-bottom: 12px;
}

.vlog-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Log Item Row */
.log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: var(--transition);
  cursor: pointer;
}

.log-row:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.log-row-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.log-row-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.log-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* =============================================================================
   CUSTOM TAILOR-MADE CONTRIBUTION MODULE
   ============================================================================= */
.support-card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(20, 23, 33, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin: 32px 0 64px;
}

.support-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.support-desc {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 640px;
  margin-bottom: 24px;
}

.preset-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.preset-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.preset-pill:hover,
.preset-pill.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.support-input-row {
  display: flex;
  gap: 12px;
  max-width: 460px;
}

.support-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  color: #fff;
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition);
}

.support-input:focus {
  border-color: var(--text-accent);
}

/* =============================================================================
   FOOTER (Matches Header Glass & Minimal Horizontal Single Row)
   ============================================================================= */
.footer-wrap {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row !important;
  gap: 16px;
  width: 100%;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  list-style: none;
  margin-left: auto;
  white-space: nowrap;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-nav a.active {
  color: #fff;
}

@media (max-width: 640px) {
  .footer-wrap {
    padding: 18px 0;
  }
  .footer-inner {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px;
  }
  .footer-copyright {
    font-size: 12px;
  }
  .footer-nav {
    gap: 14px;
  }
  .footer-nav a {
    font-size: 12px;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }

  nav {
    display: contents;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #000000;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 24px;
    gap: 0;
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    box-shadow: none;
    z-index: 999;
    will-change: opacity, transform;
  }

  .nav-links.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 15px;
    font-weight: 500;
    padding: 14px 0;
    display: block;
    width: 100%;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #141414;
    color: var(--text-secondary);
    text-align: left;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #ffffff;
    background: transparent;
  }

  .nav-links .nav-cta {
    text-align: left;
    margin-top: 0;
    padding: 14px 0 !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
  }

  .hero-title { font-size: 34px; }
  .support-input-row { flex-direction: column; }
  .page-hero { padding: 48px 0 32px; }
}
