/* ==============================================
   AXIOM LANDING PAGE
   Aesthetic: Refined Command Center
   ============================================== */

/* --- Variables --- */
:root {
  --bg: #08080a;
  --bg-elevated: #0f0f12;
  --bg-card: #111114;
  --border: #1a1a1f;
  --border-accent: #2a2a32;

  --text: #e8e8ec;
  --text-secondary: #8a8a96;
  --text-tertiary: #5a5a66;

  --accent: #5865f2;
  --accent-glow: rgba(88, 101, 242, 0.4);
  --accent-subtle: rgba(88, 101, 242, 0.08);

  --success: #22c55e;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 24px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo-mark {
  color: var(--accent);
  font-size: 14px;
}

.nav-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 4px 8px;
  background: var(--accent-subtle);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: 4px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-subtle) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(88, 101, 242, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero-title-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 16px;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  padding: 14px 28px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 8px 24px -8px var(--accent-glow);
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 16px 32px -8px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary svg {
  transition: transform 0.2s var(--ease-out);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* --- Value Section --- */
.value {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.value-header {
  text-align: center;
  margin-bottom: 64px;
}

.value-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.value-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.value-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 20px;
}

.value-card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.value-card-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Features --- */
.features {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
}

.features-header {
  margin-bottom: 48px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px;
  background: var(--bg-card);
  transition: background 0.2s ease;
}

.feature:hover {
  background: var(--bg-elevated);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 4px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Application Form --- */
.apply {
  padding: 80px 0 120px;
  border-top: 1px solid var(--border);
}

.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 48px;
}

.form-title {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.form-intro {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.form-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 12px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.form-notice svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Form Sections */
.form-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 32px;
  padding-bottom: 0;
}

.form-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235a5a66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Radio & Checkbox */
.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-radio-vertical {
  flex-direction: column;
  gap: 10px;
}

.form-radio,
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease;
}

.form-radio:hover,
.form-checkbox:hover {
  color: var(--text);
}

.form-radio input,
.form-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.radio-mark::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.form-radio input:checked + .radio-mark {
  border-color: var(--accent);
}

.form-radio input:checked + .radio-mark::after {
  opacity: 1;
  transform: scale(1);
}

.checkbox-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.checkbox-mark::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
}

.form-checkbox input:checked + .checkbox-mark {
  background: var(--accent);
  border-color: var(--accent);
}

.form-checkbox input:checked + .checkbox-mark::after {
  opacity: 1;
}

.form-footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 20px;
}

/* Success State */
.form-success {
  display: none;
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.success-icon {
  color: var(--success);
  margin-bottom: 24px;
}

.success-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.success-text {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-tertiary);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .value-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .value-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-badge {
    margin-bottom: 32px;
  }

  .hero-sub {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }

  .feature-num {
    padding-top: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-radio-group:not(.form-radio-vertical) {
    flex-direction: column;
    gap: 10px;
  }

  .form-notice {
    text-align: left;
  }
}
