@import url('fonts.css');

/* ===== CSS VARIABLES ===== */
:root {
  /* --- Accents (kept from the dark theme, tuned for light backgrounds) --- */
  --red-primary: #B71C1C;
  --red-secondary: #E53935;
  --red-glow: rgba(183, 28, 28, 0.25);

  /* --- Light theme palette --- */
  --bg-primary: #F7F8FB;      /* off-white page background with a cool navy undertone */
  --bg-section: #FFFFFF;      /* pure white contrast sections */
  --card-bg: #FFFFFF;

  /* --- Dark anchors: terminals + footer stay dark on purpose --- */
  --dark-anchor: #0F1729;

  /* --- Text --- */
  --text-heading: #0F1729;   /* near-black with a navy undertone */
  --text-body: #4A5568;      /* medium slate gray */
  --text-muted: #6B7280;     /* secondary / muted */
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255, 255, 255, 0.6);

  /* --- Borders & dividers --- */
  --border: #E5E7EB;

  /* --- Shadows (this is what makes the light theme feel premium) --- */
  --shadow-card: 0 1px 3px rgba(15, 23, 41, 0.04), 0 8px 24px rgba(15, 23, 41, 0.06);
  --shadow-card-hover: 0 4px 12px rgba(15, 23, 41, 0.06), 0 16px 40px rgba(15, 23, 41, 0.10);
  --shadow-btn: 0 4px 14px rgba(183, 28, 28, 0.25);

  /* --- Legacy variable names, remapped to the light palette --- */
  --white: #FFFFFF;
  --light-gray: #F7F8FB;
  --text-dark: #0F1729;
  --text-light: #4A5568;
  --card-shadow: var(--shadow-card);
  --card-shadow-hover: var(--shadow-card-hover);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --section-py: 64px;
  --section-py-mobile: 44px;
  --heading-mt: 0px;
  --heading-to-grid-gap: 36px;
  --section-pad: var(--section-py) 0;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; font-weight: 700; color: var(--text-heading); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -1.5px; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -1px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.5px; }
p { font-size: 1.05rem; }

.section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  display: inline-block;
}

.section-label--red { color: var(--red-primary); }
.section-label--light { color: var(--red-primary); }

.section-title { margin-top: var(--heading-mt); margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.1rem;
  max-width: 680px;
  line-height: 1.8;
  color: var(--text-body);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  min-height: 44px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red-primary);
  color: var(--white);
  border-color: var(--red-primary);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--red-secondary);
  border-color: var(--red-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--red-glow);
}

/* On light backgrounds the outline button uses dark text */
.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  background: rgba(183, 28, 28, 0.04);
  transform: translateY(-2px);
}

.btn-outline--dark {
  color: var(--text-heading);
  border-color: var(--border);
}
.btn-outline--dark:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(15, 23, 41, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
}

.navbar-logo svg { width: 36px; height: 36px; }

.brand-logo-mark {
  height: 32px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0;
  display: block;
  flex-shrink: 0;
}

.footer .navbar-logo,
.footer .navbar-logo span {
  color: var(--white);
}

.navbar-logo span {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.navbar-links a:hover { color: var(--red-primary); }

.navbar-cta .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
  min-height: 44px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  flex-shrink: 0;
}
.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  transition: var(--transition);
  border-radius: 2px;
  display: block;
}

/* ===== NAV DROPDOWN (Resources) ===== */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0;
  transition: var(--transition);
}
.nav-dropdown-toggle:hover { color: var(--red-primary); }

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}
.nav-dropdown:hover .nav-chevron,
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }

/* invisible hover bridge so the menu doesn't close when crossing the gap */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 18px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  min-width: 300px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card-hover);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1001;
}
.nav-dropdown-menu--docs { min-width: 320px; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.nav-dropdown-item:hover { background: var(--bg-primary); }
.nav-dropdown-title-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-external-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.nav-dropdown-item--external:hover .nav-external-icon { color: var(--red-primary); }
.nav-dropdown-item--with-chevron::after {
  content: '›';
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.nav-dropdown-item--with-chevron:hover::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--red-primary);
}

.nav-dropdown-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(183, 28, 28, 0.08);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-dropdown-icon svg { width: 18px; height: 18px; }

.nav-dropdown-text { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-heading);
  line-height: 1.2;
}
.nav-dropdown-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ===== TERMINAL / CODE BLOCK (stays DARK on purpose — like a code editor) ===== */
.terminal {
  background: #0F1729;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 41, 0.18);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  max-width: 600px;
  width: 100%;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot--red { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  color: #8b949e;
  font-size: 0.75rem;
}

.terminal-body {
  padding: 20px;
  color: #c9d1d9;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.term-line {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.terminal-body .prompt { color: #58a6ff; }
.terminal-body .success { color: #3fb950; }
.terminal-body .comment { color: #8b949e; }
.terminal-body .string { color: #a5d6ff; }
.terminal-body .key { color: #d2a8ff; }
.terminal-body .value { color: #7ee787; }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.card--dark {
  background: var(--card-bg);
  border-color: var(--border);
}
.card--dark:hover {
  border-color: rgba(183, 28, 28, 0.3);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(183, 28, 28, 0.08);
  color: var(--red-primary);
}

.card--dark .card-icon {
  background: rgba(183, 28, 28, 0.08);
  color: var(--red-primary);
}

.card h3 { margin-bottom: 8px; }
.card .card-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red-primary);
  margin-bottom: 12px;
}
.card--dark .card-subtitle { color: var(--red-primary); }
.card p { color: var(--text-body); font-size: 0.95rem; line-height: 1.7; }
.card--dark p { color: var(--text-body); }
.card--dark h3 { color: var(--text-heading); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-24 { margin-bottom: 24px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
</content>
</invoke>
