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

:root {
  --primary: #1e3a5f;
  --primary-dark: #152a45;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --border: #e5e7eb;
  --success: #10b981;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 8px;
  --radius-lg: 12px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.3;
  color: var(--primary);
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}

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

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

/* Header */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 800;
}

.logo-text {
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: inline;
  }
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--bg);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg) 0%, #e0e7ff 100%);
}

.hero-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
  }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 1.5rem 0;
  max-width: 500px;
}

@media (min-width: 1024px) {
  .hero-description {
    margin-left: 0;
  }
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .trust-badges {
    justify-content: flex-start;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-item svg {
  color: var(--accent);
}

/* Login Box */
.login-box {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  margin: 0 auto;
}

.login-box h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.forgot-link {
  color: var(--accent);
  font-weight: 500;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
}

.enroll-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--text-secondary);
  margin-top: 1rem;
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 2rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: var(--bg);
}

.services-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .services-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.services-text h2 {
  margin-bottom: 1.5rem;
}

.services-text > p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

.services-list {
  list-style: none;
  margin-bottom: 2rem;
}

.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.services-list li:last-child {
  border-bottom: none;
}

.services-list svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.services-image {
  display: flex;
  justify-content: center;
}

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  color: white;
  gap: 1rem;
}

.image-placeholder span {
  font-weight: 600;
  font-size: 1.125rem;
}

/* Page Hero (About, Privacy) */
.page-hero {
  padding: 3rem 0;
  background: var(--primary);
  color: white;
}

.page-hero h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb li[aria-current] {
  color: rgba(255, 255, 255, 0.6);
}

/* Content Section */
.content-section {
  padding: 4rem 0;
}

.content-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
  }
}

.content-single {
  max-width: 800px;
}

.content-main h2 {
  margin: 2rem 0 1rem;
}

.content-main h2:first-child {
  margin-top: 0;
}

.content-main p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.content-main strong {
  color: var(--text);
}

.content-list {
  margin: 1rem 0 1.5rem 1.5rem;
}

.content-list li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

/* Values Grid */
.values-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-item {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
}

.value-item h3 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.value-item p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Sidebar */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.sidebar-card h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.sidebar-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.facts-list {
  list-style: none;
}

.facts-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.facts-list li:last-child {
  border-bottom: none;
}

.fact-label {
  color: var(--text-secondary);
}

.fact-value {
  font-weight: 600;
  color: var(--primary);
}

/* Policy Content */
.policy-content {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.last-updated {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.policy-content h2 {
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.policy-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.policy-content h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}

.policy-list {
  margin: 1rem 0 1.5rem 1.5rem;
}

.policy-list li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.policy-notice {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
}

.policy-notice p {
  margin: 0;
  color: #92400e;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.footer-brand .logo {
  color: white;
}

.footer-brand .logo-icon {
  background: rgba(255, 255, 255, 0.2);
}

.footer-nav h4,
.footer-contact h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.footer-nav a:hover {
  color: white;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 0;
  }
  
  .login-box {
    padding: 1.5rem;
  }
  
  .features,
  .services {
    padding: 3rem 0;
  }
  
  .policy-content {
    padding: 1.5rem;
  }
}
