/* ==========================================================================
   ZONIC // Minimalist Professional Design System
   Typography: Plus Jakarta Sans & JetBrains Mono
   Host: zonic.darkvibelk.com
   Mobile-First & Ultra-Responsive Architecture
   ========================================================================== */

:root {
  --bg-primary: #07080b;
  --bg-surface: #0d0f15;
  --bg-surface-elevated: #13161f;
  --bg-surface-glass: rgba(13, 15, 21, 0.82);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-active: rgba(0, 242, 255, 0.4);

  --accent-cyan: #00f2ff;
  --accent-cyan-hover: #38f4ff;
  --accent-cyan-dim: rgba(0, 242, 255, 0.08);

  --accent-red: #ff3b47;
  --accent-red-dim: rgba(255, 59, 71, 0.1);
  --accent-green: #10b981;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  background: rgba(0, 242, 255, 0.25);
  color: #ffffff;
}

/* Subtle background ambient lights */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% 0%, rgba(0, 242, 255, 0.07), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(255, 59, 71, 0.035), transparent 40%),
    radial-gradient(circle at 15% 95%, rgba(0, 242, 255, 0.025), transparent 40%);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: 
    linear-gradient(to right, #ffffff 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Fluid responsive container */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vw, 22px) 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0d1524, #1c0d14);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 242, 255, 0.15);
  flex-shrink: 0;
}

.brand-name {
  font-size: clamp(16px, 4vw, 18px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-name span {
  color: var(--accent-cyan);
}

.tag-agency {
  font-family: var(--font-mono);
  font-size: clamp(10.5px, 2.5vw, 12px);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-agency:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.tag-agency strong {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-top: clamp(28px, 6vw, 48px);
  margin-bottom: clamp(20px, 4vw, 32px);
}

.hero-title {
  font-size: clamp(26px, 6.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: clamp(13.5px, 3.2vw, 15.5px);
  color: var(--text-secondary);
  max-width: 490px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Tab Switcher */
.tab-switch-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(20px, 4vw, 28px);
}

.tab-switch {
  display: inline-flex;
  width: 100%;
  max-width: 340px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(18, 21, 30, 0.85);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: clamp(12.5px, 3vw, 13.5px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.tab-btn.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Main Card */
.main-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: clamp(20px, 5vw, 36px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s ease;
}

.main-card:hover {
  border-color: var(--border-hover);
}

/* Dropzone */
.dropzone-box {
  border: 1.5px dashed var(--border-hover);
  border-radius: 16px;
  padding: clamp(36px, 8vw, 56px) 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.012);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dropzone-box:hover, .dropzone-box.drag-over {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.dropzone-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent-cyan);
}

.dropzone-title {
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dropzone-title span {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dropzone-subtitle {
  font-size: clamp(11.5px, 2.8vw, 12.5px);
  color: var(--text-muted);
}

/* Buttons (Touch Friendly) */
.btn-primary {
  width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: var(--accent-cyan);
  color: #000000;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-cyan-hover);
  box-shadow: 0 4px 16px rgba(0, 242, 255, 0.25);
}

.btn-secondary {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* Code Input */
.code-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 600px) {
  .code-input-group {
    flex-direction: row;
  }
  .code-input-group .btn-secondary,
  .code-input-group .btn-primary {
    width: auto;
  }
}

.code-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #090a0f;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  outline: none;
  transition: all 0.2s;
  text-align: center;
}

@media (min-width: 600px) {
  .code-input {
    text-align: left;
  }
}

.code-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.12);
}

/* Code Display Pod */
.code-display-box {
  background: #090a0f;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: clamp(18px, 4vw, 24px);
  text-align: center;
  margin: 18px 0;
}

.code-display-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  word-break: break-all;
}

.code-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.code-actions-row button {
  flex: 1 1 120px;
}

/* Progress bar */
.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 12px 0;
}

.progress-fill {
  height: 100%;
  background: var(--accent-cyan);
  transition: width 0.15s ease;
}

/* Demo tags */
.demo-keys-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* "How it works" section */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 6vw, 52px);
}

.how-step-card {
  padding: clamp(18px, 4vw, 22px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}

.how-step-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
}

.how-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.how-step-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.how-step-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  margin-top: clamp(40px, 8vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer {
    flex-direction: row;
    text-align: left;
  }
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  width: 100%;
  max-width: 360px;
  background: #0e1017;
  border: 1px solid var(--border-hover);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}
