/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #111111;
  --primary-light: #1a1a2e;
  --accent: #4d65ff;
  --accent-hover: #3a50e6;
  --accent-soft: rgba(77, 101, 255, 0.08);
  --dark: #0a0a0a;
  --text: #1a1a1a;
  --text-light: #6b6b6b;
  --text-muted: #999;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-warm: #f5f5f0;
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 99px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Besley', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.02em;
}

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

a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  letter-spacing: 0;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #333;
  border-color: #333;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--bg-alt);
  text-decoration: none;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-white:hover {
  background: #f0f0f0;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(77,101,255,0.3);
}

.btn-sm { padding: 9px 22px; font-size: 0.825rem; }
.btn-lg { padding: 16px 40px; font-size: 0.95rem; }

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Besley', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover { text-decoration: none; }

.logo-icon {
  color: var(--accent);
  font-size: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 450;
  font-size: 0.875rem;
  letter-spacing: 0;
  transition: color 0.2s;
}

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

.nav-links .btn-accent {
  color: #fff;
}

.nav-links .btn-accent:hover {
  color: #fff;
}

/* === Hero === */
.hero {
  padding: 260px 0 200px;
  background: url('hero-banner.jpg') center center / cover no-repeat;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.65);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Stats Bar === */
.stats-bar {
  background: var(--primary);
  color: #fff;
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Besley', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 6px;
  display: block;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* === Sections === */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.15;
}

.section-title.text-left {
  text-align: left;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 56px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* === Services === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 20px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.service-features {
  list-style: none;
  margin-bottom: 24px;
}

.service-features li {
  padding: 5px 0;
  font-size: 0.85rem;
  color: var(--text);
}

.service-features li::before {
  content: "  ";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-size: 0.65rem;
  margin-right: 8px;
  vertical-align: middle;
}

/* === Features === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.feature {
  text-align: center;
}

.feature-icon {
  font-size: 1.6rem;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-warm);
  border-radius: 14px;
  margin-bottom: 18px;
  color: var(--accent);
}

.feature h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* === About === */
.about-content {
  max-width: 680px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* === CTA === */
.cta-section {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(77,101,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.cta-content p {
  font-size: 1.05rem;
  opacity: 0.7;
  margin-bottom: 32px;
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.contact-item {
  margin-bottom: 28px;
}

.contact-item h4 {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Inter', sans-serif;
}

.contact-item p {
  color: var(--text-light);
  font-size: 1rem;
}

/* === Forms === */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.825rem;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.925rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77,101,255,0.1);
}

.form-group .hint {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* === Footer === */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 48px 0 28px;
  text-align: center;
}

.footer-brand {
  font-family: 'Besley', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-brand p {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  opacity: 0.5;
  font-weight: 400;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 24px 0;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 450;
}

.footer-links a:hover {
  color: #fff;
}

.footer-legal {
  font-size: 0.75rem;
  opacity: 0.35;
  margin-top: 24px;
}

/* === Application Form Page === */
.apply-page {
  padding-top: 88px;
  min-height: 100vh;
  background: var(--bg-alt);
}

.apply-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.apply-container h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 8px;
}

.apply-container .subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 36px;
  font-size: 0.95rem;
}

/* Progress Steps */
.progress-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 44px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 500;
}

.progress-step .step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  background: var(--border);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.progress-step.active .step-num {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(77,101,255,0.3);
}

.progress-step.completed .step-num {
  background: var(--primary);
  color: #fff;
}

.progress-connector {
  width: 36px;
  height: 2px;
  background: var(--border);
  align-self: center;
  border-radius: 1px;
  transition: background 0.3s ease;
}

.progress-connector.active {
  background: var(--primary);
}

/* Form Steps */
.form-step {
  display: none;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.form-step.active {
  display: block;
}

.form-step h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  text-align: center;
}

.form-step .step-desc {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Selection Cards */
.selection-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.selection-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fff;
}

.selection-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(77,101,255,0.08);
}

.selection-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 4px 16px rgba(77,101,255,0.1);
}

.selection-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
  color: var(--accent);
}

.selection-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.selection-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* Form Navigation */
.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.form-nav .btn {
  min-width: 130px;
}

/* Success State */
.success-message {
  text-align: center;
  padding: 56px 24px;
}

.success-message .success-icon {
  font-size: 3rem;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,0.1);
  border-radius: 50%;
  color: #22c55e;
  margin-bottom: 20px;
}

.success-message h2 {
  color: var(--primary);
  margin-bottom: 12px;
}

.success-message p {
  color: var(--text-light);
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* === Responsive — Tablet (max 1024px) === */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .contact-grid {
    gap: 40px;
  }
}

/* === Responsive — Mobile (max 768px) === */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  /* Nav */
  .nav-toggle {
    display: block;
  }

  .nav-container {
    height: 64px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 1rem;
  }

  .nav-links .btn-accent {
    display: block;
    text-align: center;
    margin-top: 4px;
  }

  /* Hero */
  .hero {
    padding: 140px 0 80px;
  }

  .hero h1 {
    font-size: 2rem;
    max-width: 100%;
  }

  .hero::before {
    background: rgba(10, 10, 10, 0.72);
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Stats */
  .stats-bar {
    padding: 32px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  /* Sections */
  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 28px 24px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .feature h4 {
    font-size: 0.95rem;
  }

  .feature p {
    font-size: 0.825rem;
  }

  /* About */
  .about-content {
    max-width: 100%;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  /* CTA */
  .cta-section {
    padding: 56px 0;
  }

  .cta-content h2 {
    font-size: 1.7rem;
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 14px 16px;
  }

  /* Footer */
  .footer-links {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  /* Apply page */
  .apply-page {
    padding-top: 80px;
  }

  .apply-container {
    padding: 32px 16px 64px;
  }

  .apply-container h1 {
    font-size: 1.6rem;
  }

  /* Progress bar — hide labels on mobile, just show numbers */
  .progress-step .step-label {
    display: none;
  }

  .progress-connector {
    width: 24px;
  }

  /* Form steps */
  .form-step {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .form-step h2 {
    font-size: 1.25rem;
  }

  .form-step .step-desc {
    font-size: 0.85rem;
    margin-bottom: 24px;
  }

  /* Selection cards */
  .selection-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .selection-card {
    padding: 22px 18px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
  }

  .selection-card .card-icon {
    font-size: 1.6rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .selection-card h3 {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .selection-card p {
    font-size: 0.775rem;
  }

  /* Form nav — full width buttons */
  .form-nav {
    gap: 12px;
  }

  .form-nav .btn {
    min-width: 0;
    flex: 1;
    padding: 14px 16px;
  }

  /* Buttons — larger touch targets */
  .btn {
    padding: 14px 28px;
  }

  .btn-lg {
    padding: 16px 32px;
    font-size: 0.95rem;
  }
}

/* === Responsive — Small phones (max 400px) === */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-number {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .form-step {
    padding: 20px 16px;
  }

  .selection-card {
    padding: 18px 14px;
  }

  .cta-content h2 {
    font-size: 1.4rem;
  }
}
