/* Model 4: Technical Startup Design / Neo-Brutalism Tech */

:root {
  --bg-color: #000000;
  --bg-alt: #09090b;
  --bg-card: #121214;
  --bg-hover: #1f1f22;
  
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dark: #71717a;
  
  --primary: #ffffff;
  --primary-hover: #e4e4e7;
  --accent: #38bdf8; /* Cyan */
  --accent-glow: rgba(56, 189, 248, 0.15);
  --accent-2: #818cf8; /* Indigo */
  
  --border-dim: #27272a;
  --border-glow: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(255, 255, 255, 0.3);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 9999px;
  
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

::selection {
    background-color: var(--accent);
    color: #000;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.glow-bg {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.glow-primary {
  top: -200px;
  left: -200px;
  background-color: var(--accent);
}

.glow-secondary {
  bottom: -200px;
  right: -200px;
  background-color: var(--accent-2);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 900px;
}

.text-gradient {
  background: linear-gradient(to right, var(--text-main), var(--text-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.icon-primary { color: var(--text-main); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-login {
  color: var(--text-muted);
}

.btn-login:hover {
  color: var(--text-main);
}

.btn-signup {
  background-color: var(--text-main);
  color: var(--bg-color);
}

.btn-signup:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-primary-glare {
  background-color: var(--text-main);
  color: var(--bg-color);
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.btn-primary-glare::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
  transition: left 0.5s ease;
}

.btn-primary-glare:hover::before {
  left: 100%;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-dim);
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-ghost:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-focus);
}

/* Navbar */
.navbar-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar-top.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-dim);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.badge-beta {
  font-family: var(--font-mono);
  font-size: 10px;
  background-color: var(--border-dim);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

/* Hero Section */
.hero-section {
  padding: 180px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 90vh;
}

.hero-inner {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.announcement {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 40px;
  transition: var(--transition);
  cursor: pointer;
}

.announcement:hover {
  border-color: var(--border-focus);
  color: var(--text-main);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.hero-title {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 40px;
}

.cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 80px;
}

.tech-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-dim);
  width: 100%;
  justify-content: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.stat-label {
  font-size: 12px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.divider-line {
  width: 1px;
  height: 40px;
  background-color: var(--border-dim);
}

/* Features Section */
.features-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-dim);
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.text-white { color: var(--text-main); }

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tech-card {
  position: relative;
  background-color: var(--bg-color);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dim);
  padding: 1px;
  overflow: hidden;
}

.large-card {
  grid-column: span 2;
}

/* Magic Glow Border Effect */
.card-border-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y), 
    rgba(255,255,255,0.1),
    transparent 40%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

.tech-card:hover .card-border-glow {
  opacity: 1;
}

.card-content {
  position: relative;
  background-color: var(--bg-card);
  border-radius: calc(var(--radius-md) - 1px);
  padding: 40px;
  height: 100%;
  z-index: 2;
}

.icon-wrap {
  width: 48px;
  height: 48px;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 24px;
}

.card-content h4 {
  font-size: 24px;
  margin-bottom: 12px;
}

.card-content p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Code Snippet inside card */
.code-snippet {
  margin-top: 24px;
  background-color: #000;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
}

.code-snippet .kw { color: #c678dd; } /* Keyword pink */
.code-snippet .str { color: #98c379; } /* String green */
.code-snippet .fn { color: #61afef; } /* Function blue */

/* Activity Bento Board */
.activity-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-dim);
}

.bento-board {
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  overflow: hidden;
}

.bento-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-alt);
}

.bento-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.btn-text {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-text:hover { color: var(--text-main); }

.bento-modules {
  display: flex;
  flex-direction: column;
}

.module-row {
  display: flex;
  border-bottom: 1px solid var(--border-dim);
}

.module-row:last-child {
  border-bottom: none;
}

.module-card {
  flex: 1;
  padding: 32px;
  border-right: 1px solid var(--border-dim);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.module-card:last-child {
  border-right: none;
}

.module-card:hover {
  background-color: var(--bg-hover);
}

.highlight-mod {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), transparent);
}

.mod-icon {
  font-size: 20px;
  color: var(--text-main);
  padding-top: 4px;
}

.module-card h5 {
  font-size: 16px;
  font-family: var(--font-sans);
  margin-bottom: 4px;
}

.module-card span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Terminal Style CTA */
.cta-terminal-section {
  padding: 100px 0 150px;
}

.terminal-window {
  background-color: #000;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.terminal-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-dim);
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

.sys-buttons {
  display: flex;
  gap: 8px;
}

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

.sys-btn.close { background-color: #ff5f56; }
.sys-btn.min { background-color: #ffbd2e; }
.sys-btn.max { background-color: #27c93f; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dark);
  margin-left: -48px; /* Offset to center exact */
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-main);
}

.prompt {
  color: #27c93f;
  margin-right: 8px;
}

.output {
  color: var(--text-muted);
  margin-left: 20px;
}

.output.highlight {
  color: var(--accent);
}

.terminal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  margin-left: 20px;
}

.term-btn {
  font-family: var(--font-mono);
  color: var(--text-muted);
  width: fit-content;
}

.term-btn:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.term-btn.primary {
  color: var(--accent);
}

/* Footer */
.tech-footer {
  border-top: 1px solid var(--border-dim);
  background-color: var(--bg-card);
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border-dim);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 8px #27c93f;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.f-col h6 {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.f-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.f-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-dim);
  font-size: 13px;
  color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-login { display: none; }
  
  .hero-title { font-size: 48px; }
  .hero-subtitle { font-size: 16px; }
  .cta-group { flex-direction: column; width: 100%; }
  .cta-group .btn { width: 100%; }
  
  .tech-stats { flex-direction: column; gap: 20px; }
  .divider-line { width: 100px; height: 1px; }
  
  .feature-grid { grid-template-columns: 1fr; }
  .large-card { grid-column: span 1; }
  .section-title { font-size: 36px; }
  
  .module-row { flex-direction: column; border-bottom: none; }
  .module-card { border-right: none; border-bottom: 1px solid var(--border-dim); padding: 24px; }
  
  .terminal-title { margin-left: 0; }
  
  .footer-top { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
