/* ===================================================================
   KaliGPT — Official Website Stylesheet
   Theme: Matte Black & Glassmorphism Cyberpunk (Fully Responsive)
   =================================================================== */

:root {
  --bg-primary: #07080a;
  --bg-secondary: #0c0e12;
  --bg-tertiary: #12141a;
  --bg-glass: rgba(14, 16, 22, 0.72);
  --bg-glass-elevated: rgba(20, 24, 33, 0.85);
  --bg-glass-subtle: rgba(255, 255, 255, 0.04);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(0, 217, 255, 0.5);

  --accent-cyan: #00d9ff;
  --accent-cyan-glow: rgba(0, 217, 255, 0.28);
  --accent-green: #00ff9d;
  --accent-green-glow: rgba(0, 255, 157, 0.22);
  --accent-orange: #ff7b00;
  --accent-orange-glow: rgba(255, 123, 0, 0.35);
  --accent-purple: #a855f7;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --shadow-matte: 0 10px 30px -10px rgba(0, 0, 0, 0.85);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Scroll offset for sticky navbar */
[id] {
  scroll-margin-top: 85px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Matte Background Glows - Safe for mobile bounds */
body::before {
  content: '';
  position: fixed;
  top: -15%;
  left: 10%;
  width: min(60vw, 500px);
  height: min(60vw, 500px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.08) 0%, transparent 65%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 5%;
  right: -5%;
  width: min(50vw, 450px);
  height: min(50vw, 450px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #5ce6ff;
  text-shadow: 0 0 10px var(--accent-cyan-glow);
}

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

/* Glassmorphism Generic Utility */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 20px var(--accent-cyan-glow);
}

/* Announcement Banner */
.top-announcement {
  background: linear-gradient(90deg, rgba(255, 123, 0, 0.18), rgba(0, 217, 255, 0.15), rgba(255, 123, 0, 0.18));
  border-bottom: 1px solid rgba(255, 123, 0, 0.35);
  padding: 9px 16px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 100;
  flex-wrap: wrap;
}

.badge-ca {
  background: linear-gradient(135deg, #ff7b00, #ff4500);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 12px var(--accent-orange-glow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: pulse 1.8s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 90;
  background: rgba(7, 8, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0, 217, 255, 0.3);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
  background: #000;
  object-fit: contain;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.logo-text span {
  color: var(--accent-cyan);
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 4px 0;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger Toggle Button */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 12px 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(85vw, 320px);
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 12, 16, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-glass);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.95);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.mobile-close-btn:hover {
  color: #ffffff;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
  flex: 1;
}

.mobile-nav-item {
  color: #e5e7eb;
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.mobile-nav-item:hover {
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent-cyan);
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #00d9ff, #0088cc);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--accent-cyan-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #33e1ff, #00a2f5);
  box-shadow: 0 6px 24px rgba(0, 217, 255, 0.45);
  transform: translateY(-2px);
  color: #000;
}

.btn-glass {
  background: var(--bg-glass-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.82rem;
}

.nav-ca-btn {
  border-color: rgba(255, 123, 0, 0.4);
  color: #ff9d42;
}

.nav-ca-btn .pulse-dot {
  background: #ff7b00;
  box-shadow: 0 0 6px #ff7b00;
}

.mobile-ca-btn {
  width: 100%;
  border-color: rgba(255, 123, 0, 0.4);
  color: #ff9d42;
}

.mobile-ca-btn .pulse-dot {
  background: #ff7b00;
  box-shadow: 0 0 6px #ff7b00;
}

.terminal-action-btn {
  padding: 5px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Hero Section */
.hero {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.tag-badge.cyan {
  border-color: rgba(0, 217, 255, 0.3);
  color: var(--accent-cyan);
  background: rgba(0, 217, 255, 0.08);
}

.tag-badge.orange {
  border-color: rgba(255, 123, 0, 0.4);
  color: #ff9d42;
  background: rgba(255, 123, 0, 0.09);
}

.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -1px;
  margin-bottom: 18px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  word-break: break-word;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 80%, #00ff9d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 32px;
  line-height: 1.65;
  padding: 0 6px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* CA Launch Highlight Card */
.ca-card-wrapper {
  max-width: 780px;
  margin: 0 auto 50px;
  width: 100%;
}

.ca-glass-card {
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(255, 123, 0, 0.07), rgba(18, 20, 26, 0.85));
  border: 1px solid rgba(255, 123, 0, 0.35);
  box-shadow: 0 10px 40px -10px rgba(255, 123, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ca-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ca-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ff9d42;
}

.ca-status-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255, 123, 0, 0.15);
  border: 1px solid rgba(255, 123, 0, 0.4);
  color: #ffb067;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.ca-input-box {
  display: flex;
  align-items: center;
  background: #08090c;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  gap: 10px;
  width: 100%;
}

.ca-input-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  flex: 1;
  min-width: 0;
  text-overflow: ellipsis;
}

.ca-footnote {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: left;
  line-height: 1.5;
}

/* Terminal Mockup Preview */
.terminal-window {
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.9);
  width: 100%;
}

.terminal-header {
  background: #111319;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  gap: 10px;
}

.terminal-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

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

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

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.terminal-body {
  background: #090b10;
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: #e5e7eb;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.terminal-body code {
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: break-word;
}

.cmd-line {
  margin-bottom: 10px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.prompt {
  color: var(--accent-cyan);
  font-weight: 700;
}

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

.log-ai {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.08);
  border-left: 3px solid #60a5fa;
  padding: 6px 10px;
  margin: 8px 0;
  border-radius: 0 4px 4px 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.log-rec {
  color: var(--accent-green);
  background: rgba(0, 255, 157, 0.08);
  border-left: 3px solid var(--accent-green);
  padding: 6px 10px;
  margin: 8px 0;
  border-radius: 0 4px 4px 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Features Grid */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-eyebrow {
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  color: #ffffff;
  word-break: break-word;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

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

.feature-card {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan-glow);
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Interfaces Showcase Tabs */
.tabs-container {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.tab-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 10px;
  scrollbar-width: none;
}

.tab-buttons::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: var(--bg-glass-subtle);
  border: 1px solid var(--border-subtle);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn.active, .tab-btn:hover {
  background: rgba(0, 217, 255, 0.12);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.tab-panel {
  display: none;
  padding: 28px;
  width: 100%;
}

.tab-panel.active {
  display: block;
}

.interface-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.interface-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.interface-info p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.interface-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.interface-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.interface-bullets li code {
  word-break: break-all;
  overflow-wrap: break-word;
  font-size: 0.82rem;
}

.check-icon {
  color: var(--accent-green);
  font-weight: bold;
  flex-shrink: 0;
}

/* Interface command hint (shared class replacing inline styles) */
.interface-cmd-hint {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  word-break: break-all;
  overflow-wrap: break-word;
}

/* Interface mockup panel (shared class replacing inline styles) */
.interface-mockup {
  padding: 20px;
  background: #08090d;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  overflow: hidden;
}

.interface-mockup-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.interface-mockup-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
}

.interface-mockup-body.monospace {
  font-family: var(--font-mono);
}

/* Install steps grid (shared class replacing inline styles) */
.install-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
  margin-top: 30px;
}

.install-step-card {
  padding: 18px 22px;
}

.install-step-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.install-step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.install-step-desc code {
  word-break: break-all;
  overflow-wrap: break-word;
}

/* Quick Installation Card */
.install-box {
  background: #090b10;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
  width: 100%;
}

.install-cmd {
  color: var(--accent-green);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  scrollbar-width: thin;
  min-width: 0;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 28px;
  background: #050608;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col ul a {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-col ul a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ===================================================================
   Mobile & Tablet Responsive Breakpoints
   =================================================================== */

/* ---- Tablet & Small Laptop ---- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-ca-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .interface-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .tab-panel {
    padding: 22px 18px;
  }

  .section {
    padding: 60px 0;
  }
}

/* ---- Mobile Landscape / Large Phone ---- */
@media (max-width: 680px) {
  [id] {
    scroll-margin-top: 75px;
  }

  .top-announcement {
    font-size: 0.74rem;
    padding: 8px 12px;
    flex-direction: column;
    gap: 5px;
  }

  .top-announcement span:last-child {
    word-break: break-word;
    text-align: center;
    line-height: 1.4;
  }

  .hero {
    padding: 44px 0 32px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.92rem;
  }

  .tag-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .tab-buttons {
    justify-content: flex-start;
    gap: 8px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .terminal-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }

  .terminal-title {
    font-size: 0.72rem;
    order: 2;
    width: 100%;
    margin-top: 2px;
    white-space: normal;
    word-break: break-word;
  }

  .terminal-dots {
    order: 1;
  }

  .terminal-header > div:last-child {
    order: 1;
    margin-left: auto;
  }

  .terminal-body {
    padding: 16px 14px;
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .log-ai,
  .log-rec {
    font-size: 0.78rem;
    padding: 5px 8px;
  }

  .install-box {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }

  .install-cmd {
    font-size: 0.78rem;
    width: 100%;
    padding-bottom: 6px;
  }

  .copy-btn {
    width: 100%;
    padding: 10px;
    text-align: center;
  }

  .ca-glass-card {
    padding: 18px 16px;
  }

  .ca-title {
    font-size: 0.92rem;
  }

  .ca-input-box {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 10px;
  }

  .ca-input-box input {
    width: 100%;
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    text-align: center;
  }

  .ca-input-box .copy-btn {
    width: 100%;
    padding: 9px;
  }

  .ca-footnote {
    font-size: 0.76rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .feature-card {
    padding: 20px 18px;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .interface-info h3 {
    font-size: 1.25rem;
  }

  .interface-info p {
    font-size: 0.88rem;
  }

  .interface-bullets li {
    font-size: 0.84rem;
  }

  /* Interface mockup responsive */
  .interface-mockup {
    padding: 16px;
  }

  .interface-mockup-body {
    font-size: 0.78rem;
  }

  .interface-cmd-hint {
    font-size: 0.78rem;
  }

  .install-step-card {
    padding: 16px 18px;
  }
}

/* ---- Small Phone ---- */
@media (max-width: 420px) {
  .container {
    padding: 0 12px;
  }

  .logo-text {
    font-size: 1.18rem;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .nav-gh-btn {
    display: none;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
    letter-spacing: -0.5px;
  }

  .hero-description {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }

  .hero-badges {
    gap: 6px;
    margin-bottom: 16px;
  }

  .hero-cta {
    margin-bottom: 30px;
  }

  .ca-card-wrapper {
    margin-bottom: 32px;
  }

  .terminal-body {
    padding: 12px 10px;
    font-size: 0.72rem;
  }

  .terminal-body code {
    font-size: 0.7rem;
  }

  .section {
    padding: 36px 0;
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .section-subtitle {
    font-size: 0.88rem;
  }

  .tab-panel {
    padding: 16px 12px;
  }

  .interface-mockup {
    padding: 14px 12px;
  }

  .interface-mockup-body {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .footer {
    padding: 36px 0 20px;
  }

  .mobile-nav-drawer {
    padding: 18px;
  }

  .mobile-nav-item {
    font-size: 0.95rem;
    padding: 8px 12px;
  }
}

/* ---- Extra Small Phone (< 360px) ---- */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .navbar {
    padding: 10px 0;
  }

  .tab-btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .badge-ca {
    font-size: 0.65rem;
    padding: 2px 8px;
  }
}
