/* Umbrix Landing Page - Complete Styles
   ===================================== */

/* CSS Variables and Design Tokens */
:root {
  /* Solarized Base Colors */
  --base03: #002b36; /* darkest background */
  --base02: #073642; /* dark background highlights */
  --base01: #586e75; /* comments, secondary content */
  --base00: #657b83; /* body text (light theme) */
  --base0: #839496;  /* body text (dark theme) */
  --base1: #93a1a1;  /* optional emphasized content */
  --base2: #eee8d5;  /* light background highlights */
  --base3: #fdf6e3;  /* lightest background */
  
  /* Solarized Accent Colors */
  --yellow: #b58900;
  --orange: #cb4b16;
  --red: #dc322f;
  --magenta: #d33682;
  --violet: #6c71c4;
  --blue: #268bd2;
  --cyan: #2aa198;
  --green: #859900;
  
  /* Dark Theme (default) */
  --term-bg: var(--base03);
  --term-bg-alt: var(--base02);
  --term-bg-highlight: var(--base02);
  --term-fg: var(--base0);
  --term-fg-dim: var(--base01);
  --term-fg-bright: var(--base1);
  --term-border: var(--base02);
  --term-border-bright: var(--base01);
  
  /* Semantic Colors */
  --term-primary: var(--blue);
  --term-secondary: var(--cyan);
  --term-success: var(--green);
  --term-warning: var(--yellow);
  --term-error: var(--red);
  --term-info: var(--cyan);
  
  /* Typography */
  --font-mono: Monaco, 'Cascadia Code', 'SF Mono', 'Roboto Mono', Consolas, 'Courier New', monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --line-height-loose: 1.8;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  
  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--term-bg);
  color: var(--term-fg);
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  overflow-x: hidden;
}

/* Focus States */
:focus {
  outline: 2px solid var(--term-primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Selection */
::selection {
  background-color: var(--term-primary);
  color: var(--term-bg);
}

/* Links */
a {
  color: var(--term-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--term-info);
  text-decoration: underline;
}

/* Forms */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--term-border);
  background-color: transparent;
  color: var(--term-fg);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  border-color: var(--term-primary);
  color: var(--term-primary);
  box-shadow: 0 0 20px rgba(38, 139, 210, 0.3);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--term-primary);
  color: var(--term-bg);
  border-color: var(--term-primary);
}

.btn-primary:hover {
  background-color: var(--term-info);
  border-color: var(--term-info);
  color: var(--term-bg);
}

/* Page Layout */
.coming-soon-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated Grid Background */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(38, 139, 210, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 139, 210, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
  z-index: -2;
  opacity: 0.3;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Terminal Background Animation */
.terminal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  line-height: 1.2;
  color: var(--term-primary);
  overflow: hidden;
  z-index: -1;
}

.terminal-line {
  white-space: nowrap;
  animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* Logo Container */
.logo-container {
  margin-bottom: var(--space-6);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2) drop-shadow(0 0 20px var(--term-primary)); }
}

.logo {
  width: 120px;
  height: 120px;
}

/* Content Area */
.coming-soon-content {
  max-width: 600px;
  z-index: 1;
}

/* Title with Glitch Effect */
.title {
  font-size: var(--font-size-3xl);
  color: var(--term-fg-bright);
  margin-bottom: var(--space-3);
  font-weight: normal;
  letter-spacing: 0.1em;
  position: relative;
}

.glitch {
  position: relative;
  color: var(--term-fg-bright);
  animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 0.5s infinite linear alternate-reverse;
  color: var(--term-error);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.5s infinite linear alternate-reverse;
  color: var(--term-primary);
  z-index: -2;
}

@keyframes glitch-1 {
  0% {
    clip-path: inset(40% 0 61% 0);
    transform: translate(-2px, -2px);
  }
  20% {
    clip-path: inset(92% 0 1% 0);
    transform: translate(2px, 2px);
  }
  40% {
    clip-path: inset(43% 0 1% 0);
    transform: translate(-2px, 2px);
  }
  60% {
    clip-path: inset(25% 0 58% 0);
    transform: translate(2px, -2px);
  }
  80% {
    clip-path: inset(54% 0 7% 0);
    transform: translate(-2px, 2px);
  }
  100% {
    clip-path: inset(58% 0 43% 0);
    transform: translate(2px, -2px);
  }
}

@keyframes glitch-2 {
  0% {
    clip-path: inset(65% 0 8% 0);
    transform: translate(2px, -2px);
  }
  20% {
    clip-path: inset(9% 0 91% 0);
    transform: translate(-2px, 2px);
  }
  40% {
    clip-path: inset(17% 0 84% 0);
    transform: translate(2px, -2px);
  }
  60% {
    clip-path: inset(71% 0 11% 0);
    transform: translate(-2px, 2px);
  }
  80% {
    clip-path: inset(31% 0 48% 0);
    transform: translate(2px, 2px);
  }
  100% {
    clip-path: inset(83% 0 5% 0);
    transform: translate(-2px, -2px);
  }
}

@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  10% { transform: skew(-2deg); }
  20% { transform: skew(0deg); }
  30% { transform: skew(1deg); }
  40% { transform: skew(0deg); }
  50% { transform: skew(-1deg); }
  60% { transform: skew(0deg); }
  70% { transform: skew(2deg); }
  80% { transform: skew(0deg); }
  90% { transform: skew(-1deg); }
  100% { transform: skew(0deg); }
}

/* Subtitle */
.subtitle {
  font-size: var(--font-size-lg);
  color: var(--term-primary);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
}

/* Description */
.description {
  font-size: var(--font-size-base);
  color: var(--term-fg);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-5);
}

/* Status Indicator */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--term-border);
  background-color: var(--term-bg-alt);
  font-size: var(--font-size-sm);
  color: var(--term-fg-dim);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--term-warning);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

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

/* Waitlist Form */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

@media (min-width: 640px) {
  .waitlist-form {
    flex-direction: row;
    justify-content: center;
  }
}

.email-input {
  flex: 1;
  max-width: 300px;
  padding: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  color: var(--term-fg);
  background-color: var(--term-bg);
  border: 1px solid var(--term-border);
  transition: all var(--transition-fast);
}

.email-input:focus {
  outline: none;
  border-color: var(--term-primary);
  box-shadow: 0 0 0 2px rgba(38, 139, 210, 0.2);
}

.email-input::placeholder {
  color: var(--term-fg-dim);
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
  max-width: 800px;
}

.feature {
  text-align: left;
  padding: var(--space-3);
  border: 1px solid var(--term-border);
  background-color: var(--term-bg-alt);
  transition: all var(--transition-fast);
}

.feature:hover {
  border-color: var(--term-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 139, 210, 0.2);
}

.feature-icon {
  color: var(--term-primary);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.feature-title {
  color: var(--term-fg-bright);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-1);
}

.feature-desc {
  color: var(--term-fg-dim);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
}

/* Terminal Cursor */
.cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background-color: var(--term-primary);
  animation: cursor-blink 1s step-end infinite;
  vertical-align: text-bottom;
}

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

/* Footer */
.footer {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  color: var(--term-fg-dim);
  font-size: var(--font-size-sm);
}

/* Success Message */
.success-message {
  display: none;
  padding: var(--space-3);
  background-color: var(--term-success);
  color: var(--term-bg);
  margin-top: var(--space-3);
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-message.show {
  display: block;
}

/* Progress Indicator */
.progress-container {
  width: 100%;
  max-width: 400px;
  margin: var(--space-4) auto;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--term-fg-dim);
  margin-bottom: var(--space-2);
}

.progress-bar {
  height: 4px;
  background-color: var(--term-border);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--term-primary);
  width: 75%;
  position: relative;
  animation: progress-pulse 2s ease-in-out infinite;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--term-border);
  color: var(--term-fg);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: var(--term-primary);
  color: var(--term-primary);
  transform: translateY(-2px);
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }

  .title {
    font-size: var(--font-size-2xl);
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .coming-soon-container {
    padding: var(--space-3);
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--term-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--term-border);
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--term-fg-dim);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--term-border) var(--term-bg-alt);
}