/* ─── Reset & Base ─────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ──────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #eee;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1a1a1a;
}

.nav-btn {
  background: #1a1a1a !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.nav-btn:hover {
  opacity: 0.85;
}

/* ─── Buttons ──────────────────────────────────── */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: #1a1a1a;
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.btn-ghost:hover {
  border-color: #aaa;
  color: #1a1a1a;
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
}

/* ─── Hero ─────────────────────────────────────── */

.hero {
  padding: 140px 24px 80px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-text h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #4a9eff, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-macbook {
  flex: 1.5;
  position: relative;
}

/* ─── Hero Video ───────────────────────────────── */

.hero-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}



/* Shortcut badge */
.shortcut-badge {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1a1a1a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.35s ease;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.shortcut-badge.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.kbd {
  display: inline-block;
  background: #333;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 15px;
  font-family: -apple-system, sans-serif;
  border: 1px solid #444;
}

/* ─── Sections (shared) ────────────────────────── */

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section h2 {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: #666;
  font-size: 17px;
  margin-bottom: 48px;
}

/* ─── Features ─────────────────────────────────── */

.features {
  padding: 100px 24px;
  background: #fafafa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ─── How It Works ─────────────────────────────── */

.how-it-works {
  padding: 100px 24px;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 260px;
}

.step-num {
  width: 48px;
  height: 48px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: #666;
}

.step-arrow {
  font-size: 24px;
  color: #ccc;
  padding-top: 12px;
}

/* ─── Pricing ──────────────────────────────────── */

.pricing {
  padding: 100px 24px;
  background: #fafafa;
}

.pricing-card {
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 16px;
  padding: 36px;
  text-align: center;
}

.pricing-trial-badge {
  display: inline-block;
  background: #e8f4ff;
  color: #4a9eff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.pricing-trial-note {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
}

.pricing-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-amount {
  margin-bottom: 28px;
}

.price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 16px;
  color: #888;
  margin-left: 4px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
}

.pricing-features li::before {
  content: "\2713";
  color: #4a9eff;
  font-weight: 700;
  margin-right: 10px;
}

/* ─── Download ─────────────────────────────────── */

.download {
  padding: 100px 24px;
  text-align: center;
}

.download-note {
  margin-top: 16px;
  font-size: 13px;
  color: #999;
}

/* ─── FAQ ──────────────────────────────────────── */

.faq {
  padding: 100px 24px;
  background: #fafafa;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

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

.faq-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ─── Help ────────────────────────────────────── */

.help {
  padding: 100px 24px;
}

.help-card {
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.help-card .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.help-card .form-group textarea:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.15);
}

.help-card .form-group textarea::placeholder {
  color: #bbb;
}

.help-card .form-group textarea.input-error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.help-submit {
  border: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  padding: 14px 28px;
  margin-top: 6px;
}

.help-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.help-success {
  text-align: center;
  padding: 20px 0;
}

.help-success-icon {
  width: 56px;
  height: 56px;
  background: #e8f8ee;
  color: #2ecc71;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.help-success h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.help-success p {
  font-size: 15px;
  color: #444;
  margin-bottom: 4px;
}

.help-success-note {
  font-size: 13px !important;
  color: #888 !important;
  margin-bottom: 20px !important;
}

/* ─── Footer ───────────────────────────────────── */

footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid #eee;
}

footer p {
  font-size: 13px;
  color: #999;
}

/* ─── Registration Modal ──────────────────────── */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #1a1a1a;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  text-align: left;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 28px;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-group .required {
  color: #e74c3c;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.15);
}

.form-group input::placeholder {
  color: #bbb;
}

.form-group input.input-error,
.form-group select.input-error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-error {
  display: block;
  font-size: 12px;
  color: #e74c3c;
  margin-top: 4px;
}

/* Terms checkbox */
.form-group-checkbox {
  margin-bottom: 18px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 1px;
  accent-color: #1a1a1a;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.checkbox-label input[type="checkbox"].input-error {
  outline: 2px solid #e74c3c;
  outline-offset: 1px;
}

.checkbox-label a {
  color: #4a9eff;
  text-decoration: none;
  font-weight: 600;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.form-group-checkbox .form-error {
  display: block;
  font-size: 12px;
  color: #e74c3c;
  margin-top: 4px;
  padding-left: 28px;
}

.modal-submit {
  margin-top: 6px;
  padding: 14px 28px;
  font-size: 16px;
  border: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* School autocomplete */
.school-autocomplete {
  position: relative;
}

.school-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.school-dropdown li {
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: background 0.15s;
}

.school-dropdown li:hover {
  background: #f5f8ff;
}

/* ─── Responsive ───────────────────────────────── */

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-macbook {
    width: 100%;
    max-width: 500px;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    padding: 0;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 28px;
  }

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

  .nav-links a:not(.nav-btn) {
    display: none;
  }

  .modal-card {
    padding: 28px 20px;
  }

  .modal-title {
    font-size: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
