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

:root {
  --primary: #1e6cff;
  --secondary: #0052cc;
  --accent: #3d8eff;
  --light-bg: #f5f8ff;
  --white: #ffffff;
  --text: #1a2332;
  --text-muted: #5a6b7f;
  --card-bg: #ffffff;
  --card-border: #e1e8f5;
  --card-shadow: rgba(30, 108, 255, 0.08);
  --spacing-xs: 6px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 28px;
  --spacing-xl: 40px;
  --spacing-2xl: 56px;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Livvic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 24px var(--card-shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-md);
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 700;
}

.logo a {
  text-decoration: none;
}

.logo-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.beta-badge {
  font-size: 0.6rem;
  padding: 3px 8px;
  background: var(--primary);
  color: var(--white);
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-profile-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-border);
}

.nav-profile-icon {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link svg {
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--card-shadow);
  min-width: 500px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  padding: 0;
}

.nav-dropdown-menu.user-menu {
  min-width: 220px;
  display: block;
  padding: 8px 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-column {
  flex: 1;
  padding: 16px 0;
  border-right: 1px solid var(--card-border);
}

.dropdown-column:last-child {
  border-right: none;
}

.dropdown-column h4 {
  padding: 0 20px 12px;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Livvic', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: rgba(30, 108, 255, 0.08);
  color: var(--primary);
}

.nav-links > a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links > a:hover {
  color: var(--text);
}

.cta-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 50px;
  font-family: 'Livvic', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.cta-btn.secondary {
  background: var(--white);
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}

.cta-btn.secondary:hover {
  background: var(--primary);
  color: var(--white) !important;
  box-shadow: 0 8px 24px rgba(30, 108, 255, 0.35);
}

.cta-btn.large {
  padding: 14px 32px;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 16px var(--card-shadow);
  z-index: 999;
  flex-direction: column;
  gap: var(--spacing-sm);
  transform: translateY(-100%);
  opacity: 0;
  transition: var(--transition);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  padding: var(--spacing-sm);
  border-radius: 8px;
  font-weight: 500;
}

main {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

/* ============================================
   TORN PAGE HERO SECTION
   ============================================ */

.torn-hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) 0;
  overflow: hidden;
}

.torn-container {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  min-height: 620px;
}

.torn-side {
  flex: 1;
  position: relative;
  padding: var(--spacing-xl) var(--spacing-lg);
  display: flex;
  align-items: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.torn-side:hover {
  transform: scale(1.01);
}

/* Planner Side - Left */
.planner-side {
  background: linear-gradient(135deg, #fffaf8 0%, #fff5f0 100%);
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(255, 107, 53, 0.12),
    0 8px 24px rgba(255, 107, 53, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-right: 12px;
  z-index: 2;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(255, 107, 53, 0.1);
}

.planner-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff6b35, #ff8c42, #ffab76);
  border-radius: 24px 24px 0 0;
}

.planner-side::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -25px;
  width: 50px;
  height: calc(100% + 20px);
  background: linear-gradient(180deg, 
    transparent 0%,
    rgba(255, 107, 53, 0.03) 20%,
    rgba(255, 107, 53, 0.06) 50%,
    rgba(255, 107, 53, 0.03) 80%,
    transparent 100%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: 10;
}

/* Study Side - Right */
.study-side {
  background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%);
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(30, 108, 255, 0.12),
    0 8px 24px rgba(30, 108, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-left: 12px;
  z-index: 2;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(30, 108, 255, 0.1);
}

.study-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #3d8eff, var(--primary), var(--secondary));
  border-radius: 24px 24px 0 0;
}

.study-side::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -25px;
  width: 50px;
  height: calc(100% + 20px);
  background: linear-gradient(180deg, 
    transparent 0%,
    rgba(30, 108, 255, 0.03) 20%,
    rgba(30, 108, 255, 0.06) 50%,
    rgba(30, 108, 255, 0.03) 80%,
    transparent 100%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: 10;
}

/* Torn Edge Effect - Hidden on new design */
.torn-edge {
  display: none;
}

.torn-edge-right,
.torn-edge-left {
  display: none;
}

/* Center Divider */
.tear-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  width: 80px;
  flex-shrink: 0;
}

.tear-line {
  position: absolute;
  top: 50px;
  bottom: 50px;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--card-border) 15%,
    var(--card-border) 85%,
    transparent 100%
  );
}

.tear-line::before,
.tear-line::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--card-border);
  border-radius: 50%;
}

.tear-line::before {
  top: 0;
}

.tear-line::after {
  bottom: 0;
}

.tear-vs {
  background: linear-gradient(135deg, var(--white), #f8f9fa);
  border: 2px solid var(--card-border);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Side Content */
.side-content {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.side-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.planner-badge {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 140, 66, 0.1));
  color: #e85a2c;
  border: 1px solid rgba(255, 107, 53, 0.25);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.planner-badge svg {
  stroke: #ff6b35;
}

.study-badge {
  background: linear-gradient(135deg, rgba(30, 108, 255, 0.15), rgba(61, 142, 255, 0.1));
  color: #0052cc;
  border: 1px solid rgba(30, 108, 255, 0.25);
  box-shadow: 0 2px 8px rgba(30, 108, 255, 0.1);
}

.study-badge svg {
  stroke: var(--primary);
}

.side-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.title-main {
  display: block;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 500;
}

.title-accent {
  display: block;
}

.planner-accent {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.study-accent {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.side-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

/* Mini Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: var(--spacing-lg);
}

.mini-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.planner-side .mini-feature {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 107, 53, 0.08);
}

.planner-side .mini-feature:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.15);
}

.study-side .mini-feature {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(30, 108, 255, 0.08);
}

.study-side .mini-feature:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 108, 255, 0.1);
  border-color: rgba(30, 108, 255, 0.15);
}

.mini-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planner-side .mini-icon {
  filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.15));
}

.study-side .mini-icon {
  filter: drop-shadow(0 2px 4px rgba(30, 108, 255, 0.15));
}

.mini-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.mini-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Side CTA Buttons */
.side-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.side-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.side-cta:hover::before {
  left: 100%;
}

.planner-cta {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: var(--white) !important;
  box-shadow: 
    0 4px 16px rgba(255, 107, 53, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.planner-cta:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 28px rgba(255, 107, 53, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.study-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white) !important;
  box-shadow: 
    0 4px 16px rgba(30, 108, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.study-cta:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 28px rgba(30, 108, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================
   COURSE SHOWCASE SECTION
   ============================================ */

.course-showcase {
  padding: var(--spacing-2xl) 0;
  background: var(--white);
}

.course-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.course-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--spacing-md);
}

.course-pill {
  padding: 10px 20px;
  border: 2px solid var(--card-border);
  border-radius: 50px;
  background: var(--white);
  color: var(--text-muted);
  font-family: 'Livvic', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.course-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.course-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(30, 108, 255, 0.25);
}

.course-content {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.course-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--spacing-sm);
  transition: all 0.4s ease;
}

.course-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  transition: all 0.4s ease;
}

/* Legacy Hero Styles (keeping for compatibility) */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.hero-content {
  text-align: left;
}

.course-selector-dropdown {
  position: relative;
  display: inline-block;
}

.cycle-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--card-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 3px;
}

.dropdown-trigger {
  padding: 10px 20px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 50px;
  color: var(--text);
  font-family: 'Livvic', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px var(--card-shadow);
}

.selected-course {
  transition: opacity 0.3s ease;
}

.dropdown-trigger:hover {
  border-color: var(--primary);
  background: rgba(30, 108, 255, 0.05);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 6px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(30, 108, 255, 0.15);
  z-index: 100;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: 'Livvic', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--card-bg);
  color: var(--text);
}

.dropdown-item.active {
  background: linear-gradient(135deg, rgba(30, 108, 255, 0.1), rgba(0, 82, 204, 0.1));
  color: var(--primary);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.title-highlight {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.title-line {
  display: block;
  color: var(--text-muted);
  font-size: 2.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: var(--spacing-xl);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
  box-shadow: 0 2px 6px var(--card-shadow);
}

.hero-feature-item:hover {
  background: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 108, 255, 0.15);
}

.hero-feature-icon {
  font-size: 1rem;
  line-height: 1;
}

.hero-feature-text {
  font-weight: 500;
  line-height: 1;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@keyframes slideInStagger {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  background: var(--white);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: slideInStagger 0.8s ease-out backwards;
  box-shadow: 0 4px 12px var(--card-shadow);
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.25s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.55s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(30, 108, 255, 0.2);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(30, 108, 255, 0.4);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.study-method {
  padding: var(--spacing-2xl) 0;
  background: var(--white);
}

.method-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.method-step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  padding: var(--spacing-lg);
  background: var(--white);
  border: 2px solid var(--card-border);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 4px 12px var(--card-shadow);
}

.method-step:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(30, 108, 255, 0.2);
}

.step-number {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(30, 108, 255, 0.08);
  line-height: 1;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.method-step h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.method-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.flow-arrow {
  font-size: 2rem;
  color: var(--primary);
  animation: pulse-arrow 2s ease-in-out infinite;
}

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

.features {
  padding: var(--spacing-2xl) 0;
}

.features-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-md);
}

.feature-box {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  display: none;
  box-shadow: 0 4px 12px var(--card-shadow);
}

.feature-box.highlight {
  background: linear-gradient(135deg, rgba(30, 108, 255, 0.05), rgba(61, 142, 255, 0.05));
  border-color: var(--primary);
  border-width: 2px;
}

.feature-box.visible {
  display: block;
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(30, 108, 255, 0.2);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--card-border);
}

.feature-icon {
  font-size: 1.75rem;
}

.feature-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.practice {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, rgba(30, 108, 255, 0.02), rgba(61, 142, 255, 0.03));
}

.practice-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-md);
}

.practice-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--card-shadow);
}

.practice-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(30, 108, 255, 0.2);
}

.practice-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.practice-content h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.practice-content p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.ldr-section {
  padding: var(--spacing-2xl) 0;
}

.ldr-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xl);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px var(--card-shadow);
}

.ldr-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ldr-cards {
  position: relative;
  width: 160px;
  height: 200px;
}

.ldr-card {
  position: absolute;
  width: 130px;
  height: 160px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 6px 24px rgba(30, 108, 255, 0.3);
  transition: var(--transition);
}

.card-1 {
  transform: rotate(-8deg) translateX(-15px);
  z-index: 1;
  opacity: 0.6;
}

.card-2 {
  transform: rotate(0deg);
  z-index: 2;
}

.card-3 {
  transform: rotate(8deg) translateX(15px);
  z-index: 1;
  opacity: 0.6;
}

.ldr-cards:hover .card-1 {
  transform: rotate(-12deg) translateX(-20px) translateY(-8px);
}

.ldr-cards:hover .card-2 {
  transform: translateY(-12px);
}

.ldr-cards:hover .card-3 {
  transform: rotate(12deg) translateX(20px) translateY(-8px);
}

.ldr-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(30, 108, 255, 0.1);
  border: 1px solid var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.5px;
}

.ldr-content h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.ldr-content p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.ldr-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.ldr-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ldr-item .check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
}

.cta-section {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, rgba(30, 108, 255, 0.08), rgba(61, 142, 255, 0.08));
  text-align: center;
}

.cta-section h2 {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--spacing-lg);
}

.cta-note {
  margin-top: var(--spacing-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer {
  background: var(--white);
  padding: var(--spacing-2xl) 0 var(--spacing-md);
  border-top: 2px solid var(--card-border);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--spacing-sm);
}

.footer-logo .logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 108, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links span {
  color: var(--text-muted);
  opacity: 0.5;
}

@media (max-width: 1024px) {
  /* Torn Hero Responsive */
  .torn-container {
    flex-direction: column;
    gap: var(--spacing-lg);
    min-height: auto;
  }

  .torn-side {
    border-radius: 20px;
    margin: 0;
    padding: var(--spacing-lg);
  }

  .planner-side {
    margin-right: 0;
    border-radius: 20px;
  }

  .planner-side::before {
    border-radius: 20px 20px 0 0;
  }

  .study-side {
    margin-left: 0;
    border-radius: 20px;
  }

  .study-side::before {
    border-radius: 20px 20px 0 0;
  }

  .torn-edge {
    display: none;
  }

  .tear-center {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: 60px;
    flex-direction: row;
  }

  .tear-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(100, 100, 100, 0.15) 10%,
      rgba(100, 100, 100, 0.25) 50%,
      rgba(100, 100, 100, 0.15) 90%,
      transparent 100%
    );
  }

  .side-title {
    font-size: 2rem;
  }

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

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

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

  .course-selector-dropdown {
    text-align: center;
  }

  .dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
  }

  .dropdown-menu.active {
    transform: translateX(-50%) translateY(0);
  }

  .ldr-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-lg);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-dropdown {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .torn-hero {
    padding: var(--spacing-md) 0;
  }

  .side-content {
    max-width: 100%;
  }

  .side-title {
    font-size: 1.75rem;
  }

  .title-main {
    font-size: 1.25rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mini-feature {
    padding: 10px;
  }

  .course-pills {
    flex-wrap: wrap;
  }

  .course-pill {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .cycle-progress-bar {
    margin-bottom: var(--spacing-md);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .title-line {
    font-size: 1.75rem;
  }

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

  .method-flow {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .torn-container {
    padding: 0 var(--spacing-sm);
  }

  .torn-side {
    padding: var(--spacing-md);
  }

  .side-badge {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .side-title {
    font-size: 1.5rem;
  }

  .title-main {
    font-size: 1.1rem;
  }

  .side-description {
    font-size: 0.9rem;
  }

  .mini-text h4 {
    font-size: 0.85rem;
  }

  .mini-text p {
    font-size: 0.7rem;
  }

  .side-cta {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .title-line {
    font-size: 1.5rem;
  }

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

  .practice-item {
    flex-direction: column;
    text-align: center;
  }

  .hero-features {
    gap: 8px;
    max-width: 100%;
  }

  .hero-feature-item {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .hero-feature-icon {
    font-size: 0.9rem;
  }
}

/* Signup Success Notification */
.signup-success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
  animation: slideInRight 0.5s ease-out;
}

.notification-content {
  background: linear-gradient(135deg, #34a853 0%, #2e7d32 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(52, 168, 83, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.notification-icon {
  flex-shrink: 0;
  font-size: 24px;
  margin-top: 2px;
}

.notification-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.notification-text p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.2s;
  position: absolute;
  top: 12px;
  right: 12px;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .signup-success-notification {
    left: 20px;
    right: 20px;
    max-width: none;
  }
  
  .notification-content {
    padding: 16px;
    gap: 12px;
  }
  
  .notification-text h3 {
    font-size: 16px;
  }
  
  .notification-text p {
    font-size: 13px;
  }
}