@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:wght@400;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Design Tokens - System */
  --bg-primary: #f8f9fa;
  --bg-surface: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  
  /* Text Tokens - High Contrast for Accessibility */
  --text-primary: #1a1c1e;
  --text-secondary: #3f4246;
  --text-muted: #5f6368;
  
  /* Brand Tokens */
  --accent-brass: #8d5f27;
  --accent-verdigris: #0f766e;
  --accent-blue: #007aff;
  
  /* UI Atoms */
  --border-glass: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.08);
  
  /* Mixed Typography */
  --font-display: 'Roboto', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing Scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  
  /* Radii - Set to 30% */
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 8px;
}

/* Base & Accessibility */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
}

/* Shared UI Components */
.glass-effect {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
}

.card {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--s-8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.badge {
  display: inline-flex;
  padding: var(--s-2) var(--s-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--s-1);
}

/* Background Blobs */
.background-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  filter: blur(100px);
  opacity: 0.25;
  border-radius: 50%;
}

.blob-1 { top: -10%; right: -10%; width: 50vw; height: 50vw; background: var(--accent-brass); }
.blob-2 { bottom: -10%; left: -10%; width: 60vw; height: 60vw; background: var(--accent-verdigris); }

/* Typography */
.headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700; /* Adjusted for Open Sans */
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
}

.accent-text {
  background: linear-gradient(135deg, var(--accent-verdigris), var(--accent-brass));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Containers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--s-8);
}

/* Components - Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4) var(--s-8);
  border-radius: 5%;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #19877e, var(--accent-verdigris));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #15756d, #0d615b);
  transform: scale(1.02);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: #f1f3f5;
}

/* Navigation */
.nav {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: var(--s-6) 0;
  background: transparent;
}

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

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-verdigris);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: var(--s-16) 0 var(--s-12);
}

.headline-peek {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.hero-mascot {
  width: clamp(88px, 10vw, 120px);
  height: auto;
  position: absolute;
  left: calc(100% + 1rem);
  top: 35%;
  transform: translateY(-46%);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 14px 22px rgba(23, 17, 10, 0.18));
  animation: mascot-bob 4s ease-in-out infinite;
}

.hero-mascot.is-hidden {
  display: none;
}

.subheadline {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: var(--s-6) auto var(--s-8);
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-6);
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-6);
  margin-bottom: var(--s-16);
}

/* Setup Card */
.setup-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
  margin-bottom: var(--s-16);
}

.step {
  display: flex;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.step-num {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent-brass);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Terminal */
.terminal {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  overflow: hidden;
}

.terminal-header {
  background: #f1f3f5;
  padding: var(--s-3);
  display: flex;
  gap: 0.35rem;
}

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

.terminal-body {
  padding: var(--s-6);
  font-size: 0.85rem;
}

.code-panel {
  background: #1e1e1e;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
  border-radius: 5%;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.code-panel code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #dcdcdc;
  display: block;
}

.code-panel code::before {
  content: "$ ";
  color: var(--accent-verdigris);
  font-weight: 700;
}

/* Asset List */
.asset-list {
  list-style: none;
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.asset-item {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3);
  background: var(--bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 5%;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 800px) {
  .setup-card { grid-template-columns: 1fr; }
  .hero { padding-top: var(--s-12); }
  .hero-mascot {
    width: clamp(66px, 16vw, 88px);
    left: calc(100% + 0.6rem);
    top: 54%;
  }
}

/* Security Mockup */
.macos-dialog {
  background: white;
  border-radius: 5%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: left;
  max-width: 320px;
  margin: 0 auto;
}

.dialog-content {
  display: flex;
  gap: 0.75rem;
}

.dialog-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dialog-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.dialog-message {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.is-hidden { display: none; }
