/* ============================================================
   Cyrup Pages — Landing Page Styles
   ============================================================ */

:root {
  --bg: #0f0f11;
  --bg-surface: #16161a;
  --bg-elevated: #1e1e24;
  --border: #2a2a35;
  --border-subtle: #1e1e28;
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --text-dim: #55556a;
  --accent: #6c63ff;
  --accent-hover: #7b74ff;
  --accent-dim: rgba(108, 99, 255, 0.12);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { font-size: 14px; padding: 8px 16px; }
.btn-lg { font-size: 16px; padding: 13px 28px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; justify-content: center; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text);
}

/* ── Hero ── */
.hero {
  padding: 100px 0 90px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(108, 99, 255, 0.15), transparent);
}
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 24px;
  background: var(--accent-dim);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

/* ── Features ── */
.features {
  padding: 90px 0;
  border-top: 1px solid var(--border-subtle);
}
.features h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 50px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.15s, background 0.15s;
}
.feature-card:hover { border-color: var(--accent); background: var(--bg-elevated); }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ── Example Data ── */
.example-data {
  padding: 90px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.example-data h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 48px;
}

.profile-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.profile-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.profile-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.profile-title h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.status-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.profile-section {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.profile-section:nth-child(2n) { border-right: none; }
.profile-section:nth-last-child(-n+2) { border-bottom: none; }

.section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table tr { border-bottom: 1px solid var(--border-subtle); }
.data-table tr:last-child { border-bottom: none; }
.data-table td { padding: 7px 0; vertical-align: top; }
.data-table td:first-child { color: var(--text-muted); width: 45%; padding-right: 12px; }
.data-table td:last-child { color: var(--text); font-weight: 500; }

.mono { font-family: var(--mono); font-size: 12.5px; }

.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}
.chip.green {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-tag {
  font-size: 12px;
  font-weight: 500;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 6px;
  padding: 4px 10px;
}

/* ── Request Access ── */
.request-access {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}
.form-wrapper {
  max-width: 520px;
  margin: 0 auto;
}
.form-header {
  text-align: center;
  margin-bottom: 40px;
}
.form-header h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.form-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--text);
}
.form-group input,
.form-group select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group input.invalid { border-color: #ef4444; }
.field-error { display: block; color: #ef4444; font-size: 12px; margin-top: 5px; min-height: 16px; }

/* Custom select arrow */
.form-group select {
  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='%238888a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group select option { background: var(--bg-elevated); }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

.form-success {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.form-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.form-success p { color: var(--text-muted); }

.form-error-msg {
  text-align: center;
  margin-top: 16px;
  color: #ef4444;
  font-size: 14px;
}
.form-error-msg a { color: var(--accent); text-decoration: underline; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { color: var(--text-dim); font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero { padding: 70px 0 60px; }
  .features { padding: 60px 0; }
  .example-data { padding: 60px 0; }
  .request-access { padding: 70px 0; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-section { border-right: none; }
  .profile-section:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .profile-section:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
