/* ==========================================================================
   Tech Builds — Design System & Stylesheet (techbuilds.win)
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #060911;
  --bg-secondary: #0c1220;
  --bg-tertiary: #131c31;
  
  --surface-glass: rgba(13, 20, 36, 0.65);
  --surface-glass-hover: rgba(20, 30, 54, 0.85);
  --border-glass: rgba(0, 242, 254, 0.15);
  --border-glass-bright: rgba(0, 242, 254, 0.45);
  
  --neon-cyan: #00f2fe;
  --neon-blue: #4facfe;
  --neon-purple: #9d4edd;
  --neon-magenta: #ff007f;
  --neon-emerald: #00e676;
  --neon-amber: #ffb703;

  --text-main: #f3f6fc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.35);
  --glow-purple: 0 0 25px rgba(157, 78, 221, 0.35);
}

/* Reset & Box Sizing */
*, *::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);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Ambient Glow Orbs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: pulseGlow 12s ease-in-out infinite alternate;
}

.glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.35), transparent 70%);
  top: -150px;
  left: 10%;
}

.glow-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.3), transparent 70%);
  top: 35%;
  right: -100px;
  animation-delay: -4s;
}

.glow-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.2), transparent 70%);
  bottom: -100px;
  left: 20%;
  animation-delay: -8s;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  50% { transform: scale(1.15) translate(30px, 20px); opacity: 0.5; }
  100% { transform: scale(0.95) translate(-20px, 40px); opacity: 0.35; }
}

/* Noise overlay for subtle analog hardware texture */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

/* Particle Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: auto;
}

/* App Wrapper */
.site-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Reusable Glassmorphism Utility */
.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glass-bright);
}

/* Gradient text utilities */
.gradient-text {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 45%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.5));
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-name .tld {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neon-cyan);
  margin-left: 2px;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--neon-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-emerald);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.nav-icon-link:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.1);
  transform: translateY(-2px);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 3.5rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(157, 78, 221, 0.12);
  border: 1px solid rgba(157, 78, 221, 0.35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e2d9f3;
  margin-bottom: 1.75rem;
  animation: fadeInDown 0.8s ease-out;
}

.badge-highlight {
  color: var(--neon-cyan);
  font-weight: 700;
}

.badge-divider {
  color: var(--text-dim);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-glow-text {
  text-shadow: 0 0 35px rgba(0, 242, 254, 0.25);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 2.75rem;
  font-weight: 400;
}


/* Notify Form */
.notify-form-wrapper {
  width: 100%;
  max-width: 540px;
  margin-bottom: 3rem;
}

.notify-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 14px;
  background: rgba(13, 20, 36, 0.85);
}

.input-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.85rem;
}

.input-icon {
  color: var(--text-dim);
  display: flex;
  align-items: center;
}

.notify-form input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #fff;
}

.notify-form input::placeholder {
  color: var(--text-dim);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 50%, var(--neon-purple) 100%);
  color: #050811;
  border: none;
  outline: none;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.form-microcopy {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.shield-icon {
  margin-right: 0.25rem;
}

/* Metrics Row */
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.2rem 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

.metric-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.metric-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
}

/* Features Section */
.features-section {
  text-align: center;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 3rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.feature-card {
  position: relative;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--border-glass-bright), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover .card-glow {
  opacity: 0.6;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
  transition: all var(--transition-fast);
}

.feature-card:hover .card-icon-wrap {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  transform: scale(1.08);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* Terminal Window Section */
.terminal-section {
  display: flex;
  justify-content: center;
}

.terminal-window {
  width: 100%;
  max-width: 820px;
  border-radius: 14px;
  overflow: hidden;
  background: #080c14;
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(13, 20, 36, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.titlebar-buttons {
  display: flex;
  gap: 0.45rem;
}

.term-btn {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.term-btn.close { background: #ff5f56; }
.term-btn.minimize { background: #ffbd2e; }
.term-btn.zoom { background: #27c93f; }

.term-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.term-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #cbd5e1;
  min-height: 200px;
}

.term-prompt {
  color: var(--neon-emerald);
  font-weight: 700;
}

.term-command {
  color: #fff;
}

.term-line.info {
  color: var(--text-muted);
}

.term-line.warn {
  color: var(--neon-amber);
}

.highlight-cyan {
  color: var(--neon-cyan);
  font-weight: 600;
}

.cursor {
  display: inline-block;
  color: var(--neon-cyan);
  animation: blink 1s step-end infinite;
  font-weight: 900;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 3rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand .tld {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--neon-cyan);
}

.domain-dot {
  width: 7px;
  height: 7px;
  background-color: var(--neon-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-emerald);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.1);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(13, 20, 36, 0.95);
  border: 1px solid var(--border-glass-bright);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), var(--glow-cyan);
  color: #fff;
  font-size: 0.9rem;
  transform: translateY(30px);
  opacity: 0;
  animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success {
  border-color: var(--neon-emerald);
}

.toast.error {
  border-color: #ff5f56;
}

@keyframes slideInToast {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutToast {
  to {
    transform: translateY(30px);
    opacity: 0;
  }
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .header-status {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .notify-form {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
    padding: 1rem;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 1rem;
    border-radius: 20px;
  }

  .metric-divider {
    width: 60px;
    height: 1px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
