@import url('assets/fonts/fonts.css');

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

:root {
  color-scheme: dark;
  --bg: #090d16;
  --panel: #111827;
  --panel-hover: #1e293b;
  --border: #1f2937;
  --border-focus: #3b82f6;
  --ink: #f3f4f6;
  --muted: #9ca3af;
  
  /* Primary Gradients */
  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-magenta: #f5576c;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --glow-gradient: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.15) 100%);
  --magenta-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 242, 254, 0.1);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(245, 87, 108, 0.05) 0px, transparent 50%);
  line-height: 1.6;
}

h1, h2, h3, h4, .site-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

a:hover {
  color: var(--accent-cyan);
}

.wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header & Navigation */
/* Namespaced on purpose: ubunatic.com's injected navbar owns its own root
   class and lands after this stylesheet in the document, so a generic name
   here would lose to it. See ubunatic.com issues/002. */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(31, 41, 55, 0.7);
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-brand-icon {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.nav-links a.btn:hover {
  border-color: var(--accent-cyan);
  background: var(--panel-hover);
}

/* Hero Section */
.hero-shell {
  padding: 60px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 9999px;
  background: rgba(0, 242, 254, 0.05);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 20px;
  color: #ffffff;
}

h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin: 0 0 32px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #000000;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.35);
  color: #000000;
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.6);
  color: #ffffff;
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--panel-hover);
  color: #ffffff;
}

/* Terminal / Showcase */
.showcase {
  width: 100%;
}

.terminal {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0d1117;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.terminal-header {
  height: 40px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  justify-content: space-between;
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  color: var(--muted);
  font-size: 0.8rem;
  font-family: monospace;
}

.terminal-video {
  width: 100%;
  aspect-ratio: 16/12;
  display: block;
  background: #000000;
}

/* Reel Switcher Buttons */
.reel-switcher {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.reel-tab {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 8px;
  color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.reel-tab:hover {
  border-color: var(--accent-blue);
  color: #ffffff;
}

.reel-tab.active {
  border-color: var(--accent-cyan);
  background: var(--glow-gradient);
  color: var(--accent-cyan);
}

.reel-tab span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}

.reel-tab.active span {
  color: var(--accent-blue);
}

/* Section Grid */
main > section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.4);
}

.section-head {
  max-width: 700px;
  margin-bottom: 50px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #ffffff;
  margin: 0 0 16px;
}

.section-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--muted);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.03);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--glow-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.card h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0 0 12px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Quick Start Block */
.code-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0d1117;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.code-panel-header {
  height: 40px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-panel-title {
  color: var(--muted);
  font-size: 0.8rem;
  font-family: monospace;
}

.code-panel-body {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

.code-line {
  display: block;
}

.c-prompt {
  color: var(--accent-cyan);
  user-select: none;
}

.c-cmd {
  color: #ffffff;
  font-weight: 600;
}

.c-comment {
  color: #6a737d;
}

.c-output {
  color: var(--muted);
}

/* Footer */
footer {
  padding: 50px 0;
  background: #060910;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .actions {
    justify-content: center;
  }
  
  .reel-switcher {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    padding: 16px 0;
    gap: 16px;
  }
  
  .reel-switcher {
    grid-template-columns: 1fr;
  }
}
