@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================================
   DESIGN SYSTEM - ContentFlow
   ============================================================================ */

/* Root Colors */
:root {
  --bg-primary: #080810;
  --bg-secondary: #0d0d1a;
  --surface: #111118;
  --border: #1e1e2e;
  --text-primary: #f0f0ff;
  --text-secondary: #8887a8;
  --accent-primary: #7c3aed;
  --accent-secondary: #06b6d4;
  --success: #10b981;
  --error: #ef4444;
  --gradient: linear-gradient(135deg, #7c3aed, #06b6d4);
}

/* ============================================================================
   GLOBAL
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

p {
  color: var(--text-primary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-secondary);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-block;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
}

.btn-primary:hover {
  opacity: 0.88;
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 11px 28px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

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

button {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 0 0 1px var(--border), 0 4px 24px rgba(124, 58, 237, 0.08);
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary), 0 8px 32px rgba(124, 58, 237, 0.12);
}

/* ============================================================================
   FORMS
   ============================================================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
textarea,
select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 0.2s;
  width: 100%;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="url"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238887a8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

nav {
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

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

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

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

.footer-bottom {
  text-align: right;
  color: var(--text-secondary);
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

section {
  padding: 80px 24px;
  background: var(--bg-primary);
}

section:nth-child(even) {
  background: var(--bg-secondary);
}

.section-heading {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 32px;
}

.section-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gradient);
  margin: 12px auto 0;
  border-radius: 999px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================================
   GRID
   ============================================================================ */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-4 {
  gap: 16px;
}

.gap-8 {
  gap: 32px;
}

.text-center {
  text-align: center;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-success {
  color: var(--success);
}

.text-error {
  color: var(--error);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gradient);
  color: white;
}

.space-y-2 > * + * {
  margin-top: 8px;
}

.space-y-4 > * + * {
  margin-top: 16px;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

/* Tablet: 768px - 1023px */
@media (max-width: 1023px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.688rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  section {
    padding: 60px 24px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

/* Mobile: below 768px */
@media (max-width: 767px) {
  body {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  section {
    padding: 48px 20px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .grid {
    gap: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  nav {
    padding: 0 16px;
  }

  .nav-links {
    gap: 16px;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom {
    text-align: center;
  }
}
