/* ==========================================================================
   QOSCPU Presentation Website -- Catppuccin Mocha Theme
   ========================================================================== */

/* --- Catppuccin Mocha Palette --- */
:root {
  --ctp-rosewater: #f5e0dc;
  --ctp-flamingo:  #f2cdcd;
  --ctp-pink:      #f5c2e7;
  --ctp-mauve:     #cba6f7;
  --ctp-red:       #f38ba8;
  --ctp-maroon:    #eba0ac;
  --ctp-peach:     #fab387;
  --ctp-yellow:    #f9e2af;
  --ctp-green:     #a6e3a1;
  --ctp-teal:      #94e2d5;
  --ctp-sky:       #89dceb;
  --ctp-sapphire:  #74c7ec;
  --ctp-blue:      #89b4fa;
  --ctp-lavender:  #b4befe;
  --ctp-text:      #cdd6f4;
  --ctp-subtext1:  #bac2de;
  --ctp-subtext0:  #a6adc8;
  --ctp-overlay2:  #9399b2;
  --ctp-overlay1:  #7f849c;
  --ctp-overlay0:  #6c7086;
  --ctp-surface2:  #585b70;
  --ctp-surface1:  #45475a;
  --ctp-surface0:  #313244;
  --ctp-base:      #1e1e2e;
  --ctp-mantle:    #181825;
  --ctp-crust:     #11111b;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--ctp-base);
  color: var(--ctp-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Splash Screen --- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ctp-crust);
  transition: opacity 1s ease-out;
}

#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

#splash img {
  max-width: min(80vw, 700px);
  max-height: 70vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 0 80px rgba(137, 180, 250, 0.15),
              0 0 160px rgba(137, 180, 250, 0.05);
  animation: splashPulse 2s ease-in-out infinite alternate;
}

#splash .splash-title {
  position: absolute;
  bottom: 12%;
  text-align: center;
  font-size: 1.1rem;
  color: var(--ctp-overlay2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: splashFadeIn 1.5s ease-out;
}

@keyframes splashPulse {
  from { transform: scale(1); filter: brightness(1); }
  to   { transform: scale(1.01); filter: brightness(1.05); }
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(24, 24, 37, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ctp-surface0);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s;
}

nav.hidden { transform: translateY(-100%); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ctp-blue);
  text-decoration: none;
}

.nav-logo svg { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--ctp-subtext0);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ctp-text);
  background: var(--ctp-surface0);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--ctp-text);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--ctp-mantle);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--ctp-surface0);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* --- Main Content --- */
main {
  padding-top: 60px;
}

/* --- Sections --- */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section:nth-child(even) {
  background: var(--ctp-mantle);
  max-width: none;
}

section:nth-child(even) > .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Hero --- */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  max-width: none;
  background: linear-gradient(180deg, var(--ctp-base) 0%, var(--ctp-mantle) 100%);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--ctp-blue), var(--ctp-mauve));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--ctp-subtext1);
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid;
}

.badge-blue   { color: var(--ctp-blue);   border-color: rgba(137,180,250,0.3); background: rgba(137,180,250,0.08); }
.badge-green  { color: var(--ctp-green);  border-color: rgba(166,227,161,0.3); background: rgba(166,227,161,0.08); }
.badge-mauve  { color: var(--ctp-mauve);  border-color: rgba(203,166,247,0.3); background: rgba(203,166,247,0.08); }
.badge-peach  { color: var(--ctp-peach);  border-color: rgba(250,179,135,0.3); background: rgba(250,179,135,0.08); }
.badge-teal   { color: var(--ctp-teal);   border-color: rgba(148,226,213,0.3); background: rgba(148,226,213,0.08); }
.badge-yellow { color: var(--ctp-yellow); border-color: rgba(249,226,175,0.3); background: rgba(249,226,175,0.08); }

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ctp-blue);
  color: var(--ctp-crust);
}
.btn-primary:hover { background: var(--ctp-sapphire); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ctp-text);
  border: 1px solid var(--ctp-surface1);
}
.btn-outline:hover { border-color: var(--ctp-blue); color: var(--ctp-blue); }

/* --- Section Headings --- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--ctp-subtext0);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.accent-blue   { color: var(--ctp-blue); }
.accent-green  { color: var(--ctp-green); }
.accent-mauve  { color: var(--ctp-mauve); }
.accent-peach  { color: var(--ctp-peach); }
.accent-teal   { color: var(--ctp-teal); }
.accent-yellow { color: var(--ctp-yellow); }

/* --- Feature Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--ctp-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(137, 180, 250, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-icon-blue   { background: rgba(137,180,250,0.12); color: var(--ctp-blue); }
.feature-icon-green  { background: rgba(166,227,161,0.12); color: var(--ctp-green); }
.feature-icon-mauve  { background: rgba(203,166,247,0.12); color: var(--ctp-mauve); }
.feature-icon-peach  { background: rgba(250,179,135,0.12); color: var(--ctp-peach); }
.feature-icon-teal   { background: rgba(148,226,213,0.12); color: var(--ctp-teal); }
.feature-icon-yellow { background: rgba(249,226,175,0.12); color: var(--ctp-yellow); }
.feature-icon-red    { background: rgba(243,139,168,0.12); color: var(--ctp-red); }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--ctp-subtext0);
  font-size: 0.95rem;
}

/* --- Screenshot Container --- */
.screenshot-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 4rem 0;
}

.screenshot-section.reverse { direction: rtl; }
.screenshot-section.reverse > * { direction: ltr; }

.screenshot-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.screenshot-text p {
  color: var(--ctp-subtext0);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.screenshot-text ul {
  list-style: none;
  padding: 0;
}

.screenshot-text ul li {
  color: var(--ctp-subtext1);
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.screenshot-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ctp-blue);
  transform: translateY(-50%);
}

.screenshot-frame {
  background: var(--ctp-mantle);
  border: 1px solid var(--ctp-surface1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.screenshot-frame .window-bar {
  height: 32px;
  background: var(--ctp-crust);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot.red   { background: var(--ctp-red); }
.window-dot.yellow { background: var(--ctp-yellow); }
.window-dot.green  { background: var(--ctp-green); }

.screenshot-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .screenshot-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .screenshot-section.reverse { direction: ltr; }
}

/* --- Architecture Section --- */
.arch-diagram {
  background: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  overflow-x: auto;
}

.arch-diagram svg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-card {
  background: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  color: var(--ctp-subtext0);
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Tech Stack --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.tech-item:hover { border-color: var(--ctp-overlay0); }

.tech-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.tech-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.tech-item span {
  color: var(--ctp-subtext0);
  font-size: 0.85rem;
}

/* --- CLI Section --- */
.cli-window {
  background: var(--ctp-crust);
  border: 1px solid var(--ctp-surface0);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  margin: 2rem 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.cli-bar {
  height: 36px;
  background: var(--ctp-mantle);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  border-bottom: 1px solid var(--ctp-surface0);
}

.cli-bar span {
  color: var(--ctp-overlay0);
  font-size: 0.8rem;
  margin-left: 12px;
}

.cli-body {
  padding: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.8;
  overflow-x: auto;
}

.cli-body .prompt  { color: var(--ctp-green); }
.cli-body .cmd     { color: var(--ctp-text); }
.cli-body .flag    { color: var(--ctp-blue); }
.cli-body .value   { color: var(--ctp-peach); }
.cli-body .comment { color: var(--ctp-overlay0); }
.cli-body .output  { color: var(--ctp-subtext0); }
.cli-body .model   { color: var(--ctp-mauve); }
.cli-body .user    { color: var(--ctp-teal); }
.cli-body .ai      { color: var(--ctp-yellow); }
.cli-body .stats   { color: var(--ctp-overlay1); }

/* --- GB10 Specs --- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.specs-table th,
.specs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--ctp-surface1);
}

.specs-table th {
  color: var(--ctp-subtext0);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.specs-table td {
  font-size: 0.95rem;
}

.specs-table tr:hover td {
  background: rgba(137, 180, 250, 0.04);
}

/* --- Footer --- */
footer {
  background: var(--ctp-crust);
  border-top: 1px solid var(--ctp-surface0);
  padding: 2.5rem 2rem;
  text-align: center;
}

footer p {
  color: var(--ctp-overlay1);
  font-size: 0.9rem;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

footer .footer-links a {
  color: var(--ctp-overlay2);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

footer .footer-links a:hover { color: var(--ctp-blue); }

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.gap-1 { gap: 1rem; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ctp-mantle); }
::-webkit-scrollbar-thumb { background: var(--ctp-surface1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ctp-surface2); }
