:root {
  --bg: #fff6ee;
  --bg-gradient: linear-gradient(180deg, #fff6ee 0%, #fdeeda 100%);
  --surface: #ffffff;
  --surface-subtle: rgba(255, 255, 255, 0.72);
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fcd7ba;
  --text: #1f2933;
  --text-muted: #616d7a;
  --border: rgba(244, 158, 103, 0.3);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 48px rgba(247, 133, 51, 0.12);
  --shadow-card: 0 16px 32px rgba(239, 108, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg-gradient);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--text);
  margin: 0;
}

p {
  margin: 0;
  color: var(--text-muted);
}

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

main {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1100px, 92vw);
  margin: 32px auto 48px;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-subtle);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-icon {
  font-size: 1.4rem;
}

.brand-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name::after {
  content: "ora-tor-IK";
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  opacity: 0.75;
}

.nav {
  display: flex;
  gap: 24px;
  font-weight: 500;
}

.nav a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.35);
  outline-offset: 4px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(249, 115, 22, 0.08);
  color: var(--primary);
}

.btn-ghost:hover {
  background: rgba(249, 115, 22, 0.12);
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.hero {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.tagline {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

.hero-brand-icon {
  font-size: 1.4em;
}

.hero-brand-icon-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.hero-copy p {
  font-size: 1.1rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.tutor-name {
  color: var(--text);
  font-weight: 600;
}

.tutor-language {
  font-size: 0.9rem;
}

.highlight-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 96px;
}

.highlight {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.highlight-icon {
  font-size: 1.6rem;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  max-width: 420px;
}

.section-subtext {
  color: var(--text-muted);
  max-width: 520px;
  margin-top: 8px;
}

.eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-size: 0.85rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 96px;
}

.step-card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.2em;
}

.tutors {
  margin-bottom: 96px;
}

.tutor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.tutor-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
}

.tutor-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tutor-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  font-weight: 600;
  color: var(--primary);
}

.programs {
  margin-bottom: 96px;
}

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

.program-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.program-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.track-badge {
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.program-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}

.booking-list {
  margin: 24px 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.booking-list li {
  margin-bottom: 12px;
}

.booking-illustration {
  display: flex;
  justify-content: center;
}

.calendar {
  width: min(380px, 90vw);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.calendar-controls {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  text-align: center;
  font-weight: 500;
}

.day {
  padding: 10px 0;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.05);
  color: var(--text);
}

.day.muted {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.day.has-event {
  background: rgba(249, 115, 22, 0.16);
  font-weight: 700;
}

.calendar-card {
  border-radius: var(--radius-md);
  background: rgba(249, 115, 22, 0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-title {
  font-weight: 600;
  color: var(--text);
}

.calendar-meta {
  font-size: 0.9rem;
}

.pricing {
  margin-bottom: 96px;
}

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

.pricing-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-card ul {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
}

.plan-name {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  font-size: 0.85rem;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
}

.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-description {
  font-size: 0.95rem;
}

.pricing-card.featured {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.pricing-card.featured p,
.pricing-card.featured ul {
  color: rgba(255, 255, 255, 0.88);
}

.pricing-card.featured .btn-primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: none;
}

.pricing-card .badge {
  position: absolute;
  top: 18px;
  right: 24px;
  background: #ffffff;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.testimonials {
  margin-bottom: 96px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-style: italic;
}

.testimonial-card span {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

.faq {
  margin-bottom: 96px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq summary::marker {
  color: var(--primary);
}

.faq p {
  margin-top: 10px;
  font-size: 0.95rem;
}

.cta {
  margin: 0 0 120px;
  display: flex;
  justify-content: center;
}

.cta-card {
  width: min(1100px, 96vw);
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.2), transparent),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.18), transparent),
    var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-card p {
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.site-footer {
  background: rgba(255, 255, 255, 0.85);
  padding: 48px 0 32px;
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.footer-content {
  width: min(1100px, 92vw);
  margin: 0 auto 32px;
  display: grid;
  gap: 24px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.footer-heading {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: block;
}

.footer-bottom {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 16px;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .nav {
    justify-content: center;
  }

  .header-actions {
    justify-content: center;
  }

  .section-header {
    flex-direction: column;
  }

  .tutor-card {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }

  .tutor-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    grid-column: span 2;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    margin-bottom: 64px;
  }

  .hero-stats {
    gap: 24px;
  }

  .highlight-row,
  .programs-grid,
  .steps-grid,
  .tutor-grid,
  .pricing-grid,
  .testimonial-grid {
    gap: 16px;
  }

  .cta-card {
    padding: 36px 28px;
  }
}

.auth-header {
  margin-bottom: 24px;
}

.auth-main {
  width: min(960px, 92vw);
  margin: 0 auto 80px;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(440px, 92vw);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(244, 158, 103, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-subtext {
  color: var(--text-muted);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-field input {
  border-radius: 14px;
  border: 1px solid rgba(244, 158, 103, 0.35);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  background: #fffaf5;
}

.form-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  background: rgba(244, 158, 103, 0.35);
}

.auth-foot {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-error {
  color: #b42318;
  font-weight: 600;
  min-height: 1.2em;
}

.auth-status {
  color: var(--text-muted);
}

.role-grid {
  display: grid;
  gap: 16px;
}

.role-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(244, 158, 103, 0.3);
  background: #fffaf5;
  display: grid;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.role-card h3 {
  margin: 0;
}

.role-card p {
  color: var(--text-muted);
}

.role-action {
  color: var(--primary);
  font-weight: 600;
}

.role-card:hover,
.role-card:focus-visible {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.auth-retry {
  margin-top: 8px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.auth-modal.is-open {
  display: flex;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.35);
  backdrop-filter: blur(4px);
}

.auth-modal__dialog {
  position: relative;
  width: min(520px, 92vw);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(244, 158, 103, 0.2);
  display: grid;
  gap: 16px;
  z-index: 1;
}

.auth-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-open {
  overflow: hidden;
}

/* Auth Modal Tabs */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(249, 115, 22, 0.08);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab.is-active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Auth Panels */
.auth-panel {
  display: none;
}

.auth-panel.is-active {
  display: block;
}

.auth-modal__title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* Google Button */
.btn-google {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
  gap: 12px;
}

.btn-google:hover {
  background: #fafafa;
  border-color: rgba(244, 158, 103, 0.5);
}

/* Role Select */
.role-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.role-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.role-option:hover {
  border-color: rgba(249, 115, 22, 0.4);
}

.role-option.is-selected {
  border-color: var(--primary);
  background: rgba(249, 115, 22, 0.05);
}

.role-option__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 12px;
  color: var(--primary);
}

.role-option.is-selected .role-option__icon {
  background: var(--primary);
  color: #fff;
}

.role-option__label {
  font-weight: 600;
  color: var(--text);
}

.role-option__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Form Row (for first/last name side by side) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Text button for switching views */
.btn-text {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-size: inherit;
}

.btn-text:hover {
  text-decoration: underline;
}

/* Loading state for buttons */
.btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-primary.is-loading::after {
  border-top-color: #fff;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form validation states */
.form-field input.is-invalid {
  border-color: #b42318;
}

.form-field input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15);
}

/* Responsive adjustments for auth modal */
@media (max-width: 480px) {
  .role-select {
    grid-template-columns: 1fr;
  }

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

  .auth-modal__dialog {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 28px;
  }
}
