@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --background: oklch(17.764% 0.00002 271.152);
  --foreground: oklch(0.99 0 0);
  --card: oklch(0.20 0 0);
  --card-foreground: oklch(0.99 0 0);
  --primary: oklch(64.605% 0.1943 41.103);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.27 0 0);
  --secondary-foreground: oklch(0.99 0 0);
  --muted: oklch(0.27 0 0);
  --muted-foreground: oklch(0.71 0 0);
  --accent: oklch(0.2686 0 0);
  --accent-foreground: oklch(0.99 0 0);
  --destructive: oklch(0.7 0.19 22.23);
  --border: oklch(0.2603 0 0);
  --input: oklch(0.44 0 0);
  --ring: oklch(64.605% 0.1943 41.103);
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Courier New', monospace;
  --font-heading: 'Chakra Petch', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-mono);
  background: var(--background);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--foreground);
}

.container {
  max-width: 600px;
  width: 100%;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  height: 48px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--foreground);
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}


.terminal-window {
  background: oklch(0.15 0 0);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-primary {
  margin-bottom: 20px;
}

.terminal-primary .terminal-body {
  padding: 30px 20px;
}

.terminal-primary .terminal-line {
  font-size: 0.8rem;
}

.terminal-header {
  background: oklch(0.12 0 0);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.terminal-controls {
  display: flex;
  gap: 8px;
  margin-right: auto;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-close {
  background: #ff5f56;
}

.terminal-minimize {
  background: #ffbd2e;
}

.terminal-maximize {
  background: #27c93f;
}


.terminal-copy-btn {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  margin-left: auto;
}

.terminal-copy-btn:hover {
  color: var(--primary);
}

.terminal-copy-btn svg {
  display: block;
}

.terminal-body {
  padding: 20px;
  background: oklch(0.15 0 0);
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.terminal-line+.terminal-line {
  margin-top: 8px;
}

.terminal-prompt {
  color: var(--primary);
  font-weight: 600;
  user-select: none;
}

.terminal-command {
  color: var(--foreground);
  font-weight: 500;
  word-break: break-all;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 40px;
  margin-bottom: 20px;
}

.platform-info {
  margin-bottom: 24px;
}

label {
  display: block;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--card-foreground);
  font-size: 0.95rem;
  font-family: var(--font-mono);
  text-align: left;
}

select,
input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--input);
  border-radius: 0;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-mono);
}

select:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px oklch(64.605% 0.1943 41.103 / 0.15);
}

.email-field {
  margin-bottom: 24px;
}

.turnstile-container {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

.download-button {
  width: 100%;
  padding: 16px 32px;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: var(--font-mono);
}

.download-button:hover:not(:disabled) {
  opacity: 0.9;
}

.download-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-loader {
  font-size: 1.2rem;
}

.error {
  margin-top: 16px;
  padding: 12px 16px;
  background: oklch(0.7 0.19 22.23 / 0.1);
  border: 1px solid var(--destructive);
  border-radius: 0;
  color: var(--destructive);
  font-size: 0.95rem;
  font-family: var(--font-mono);
}

.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 14px 24px;
  background: var(--secondary);
  color: var(--muted-foreground);
  border: none;
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn:hover {
  background: oklch(0.24 0 0);
}

.tab-btn.active {
  background: var(--card);
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.tab-content {
  display: none;
}

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

footer {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  margin-top: 30px;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 0px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary);
}

@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  .card {
    padding: 24px;
  }

  .terminal-primary .terminal-line {
    font-size: 0.8rem;
  }
}