/* === VARIABLES === */
:root {
  /* Base Colors */
  --bg-primary: #0a0a1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #1e2030;
  --bg-card-hover: #252840;

  /* Accent Colors */
  --accent-primary: #4cc9f0;
  --accent-secondary: #9368ff;
  --accent-fire: #ff8c00;
  --accent-water: #4cc9f0;
  --accent-wind: #90e0ef;
  --accent-earth: #9d6c34;
  --accent-light: #ffdd78;
  --accent-dark: #7b4bcf;

  /* Text Colors - IMPROVED CONTRAST */
  --text-primary: #f0f0ff;
  --text-secondary: #b8c5e0;
  --text-muted: #8892b0;

  /* Sizes */
  --border-radius: 12px;
  --transition: all 0.3s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* === BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

input, textarea, button, a {
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === CUSTOM CURSOR === */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-primary);
  opacity: 0.5;
  transition: all 0.1s ease-out;
}

/* === NAVIGATION === */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(76, 201, 240, 0.1);
}

.logo h1 {
  font-size: 2rem;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-primary);
  background: rgba(76, 201, 240, 0.1);
}

.nav-links li a i {
  width: 18px;
  height: 18px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent-primary);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* === MAIN CONTENT === */
.main-content {
  opacity: 0;
  transition: opacity 1s ease 1s;
  min-height: 100vh;
}

.main-content.visible {
  opacity: 1;
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-primary);
}

/* HERO VIDEO - OPTIMIZED */
.portal-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%; 
    min-height: 100%;
    z-index: 1;
    object-fit: cover;
    transform: translate(-50%, -50%);
    will-change: transform;
}

/* Overlay - Better approach than transform hack */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 26, 0.7) 0%,
        rgba(10, 10, 26, 0.85) 50%,
        rgba(10, 10, 26, 0.9) 100%
    );
    z-index: 2;
}

/* Corner ornaments */
.corner-ornament {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid var(--accent-primary);
  opacity: 0.3;
  z-index: 3;
}

.corner-ornament.top-left {
  top: 2rem;
  left: 2rem;
  border-right: none;
  border-bottom: none;
}

.corner-ornament.top-right {
  top: 2rem;
  right: 2rem;
  border-left: none;
  border-bottom: none;
}

.corner-ornament.bottom-left {
  bottom: 2rem;
  left: 2rem;
  border-right: none;
  border-top: none;
}

.corner-ornament.bottom-right {
  bottom: 2rem;
  right: 2rem;
  border-left: none;
  border-top: none;
}

.hero-content {
  max-width: 800px;
  z-index: 3;
  position: relative;
}

/* Title wrapper */
.title-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.title-ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(76, 201, 240, 0.1) 0%, transparent 70%);
  z-index: 1;
  border-radius: 50%;
}

/* Hero quote - IMPROVED SPACING */
.hero-quote {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  padding: 0 1.5rem;
  position: relative;
  line-height: 2;
}

.quote-mark {
  font-size: 1.5em;
  color: var(--accent-primary);
  opacity: 0.6;
  position: relative;
  top: 0.2em;
}

.quote-mark.left {
  margin-right: 0.3rem;
}

.quote-mark.right {
  margin-left: 0.3rem;
}

/* Hero actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: none;
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  color: white;
}

.cta-button.secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(76, 201, 240, 0.4);
}

.cta-button.primary:hover {
  box-shadow: 0 10px 25px rgba(76, 201, 240, 0.6);
}

.cta-button i {
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.cta-button:hover i {
  transform: translateX(3px);
}

/* === WELCOME SECTION - IMPROVED SPACING === */
.welcome-section {
  padding: 6rem 0;
  position: relative;
}

.welcome-title {
  text-align: center;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 3rem;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-content {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 3.5rem;
  margin-top: 2rem;
  border: 1px solid rgba(76, 201, 240, 0.1);
  box-shadow: var(--shadow-lg);
}

.welcome-text {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.1rem;
}

.welcome-text h2 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.welcome-text p {
  margin-bottom: 2rem;
}

.welcome-list {
  margin: 2rem 0 2.5rem 2rem;
  list-style: none;
}

.welcome-list li {
  margin-bottom: 1.3rem;
  position: relative;
  padding-left: 1.5rem;
}

.welcome-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 1.2em;
}

.accent-primary { color: var(--accent-primary); }
.accent-secondary { color: var(--accent-secondary); }
.accent-wind { color: var(--accent-wind); }
.accent-earth { color: var(--accent-earth); }

.welcome-quote {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(76, 201, 240, 0.2);
  font-style: italic;
  color: var(--accent-primary);
  font-size: 1.3rem;
}

/* === PORTAL CARDS SECTION === */
.portals-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title i {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.portal-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 4px solid;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.portal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary) !important;
}

.portal-card.patch { border-top-color: var(--accent-primary); }
.portal-card.world { border-top-color: var(--accent-earth); }
.portal-card.archive { border-top-color: var(--accent-secondary); }
.portal-card.catalog { border-top-color: var(--accent-wind); }

.portal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  transition: var(--transition);
}

.portal-card:hover .portal-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.portal-card.patch .portal-icon { 
  border-color: var(--accent-primary); 
  color: var(--accent-primary); 
}

.portal-card.world .portal-icon { 
  border-color: var(--accent-earth); 
  color: var(--accent-earth); 
}

.portal-card.archive .portal-icon { 
  border-color: var(--accent-secondary); 
  color: var(--accent-secondary); 
}

.portal-card.catalog .portal-icon { 
  border-color: var(--accent-wind); 
  color: var(--accent-wind); 
}

.portal-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.portal-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.portal-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* === FOOTER === */
footer {
  background: linear-gradient(to top, var(--bg-secondary), var(--bg-primary));
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(76, 201, 240, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer-note i {
  color: var(--accent-primary);
  margin-right: 0.5rem;
}

.heart-icon {
  width: 16px;
  height: 16px;
  color: #ff5252;
  animation: heartbeat 2s infinite;
}

/* === ANIMATIONS === */
@keyframes pulse-glow {
  0% { text-shadow: 0 0 10px rgba(76, 201, 240, 0.5); }
  50% { text-shadow: 0 0 20px rgba(76, 201, 240, 0.8), 0 0 30px rgba(76, 201, 240, 0.6); }
  100% { text-shadow: 0 0 10px rgba(76, 201, 240, 0.5); }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* === DROPDOWN MENU === */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(76, 201, 240, 0.1);
    margin-top: 0.5rem;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(76, 201, 240, 0.1);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    padding-left: 1.75rem;
}

.dropdown-menu .divider {
    height: 1px;
    background: rgba(76, 201, 240, 0.1);
    margin: 0.5rem 1rem;
}

/* ===== REGISTRATION SECTION ===== */
.registration-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(15, 35, 65, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.registration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Registration Flow */
.registration-flow {
    max-width: 900px;
    margin: 0 auto 4rem;
    position: relative;
}

.flow-step {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.step-marker {
    position: relative;
    width: 60px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 2;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 20px rgba(76, 201, 240, 0.3);
}

.step-line {
    position: absolute;
    top: 50px;
    bottom: -3rem;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    z-index: 1;
}

.flow-step:last-child .step-line {
    display: none;
}

.step-content {
    flex: 1;
    background: rgba(20, 30, 48, 0.7);
    border: 1px solid rgba(76, 201, 240, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-left: 2rem;
    transition: all 0.3s ease;
}

.step-content:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(76, 201, 240, 0.15);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-icon {
    font-size: 1.8rem;
    color: var(--accent-primary);
    width: 50px;
    height: 50px;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-header h3 {
    color: var(--text-light);
    font-size: 1.4rem;
    margin: 0;
}

.step-body p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Step Actions */
.step-action,
.step-links {
    margin-top: 1rem;
}

.step-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.telegram-btn {
    background: #0088cc;
    color: white;
}

.telegram-btn:hover {
    background: #0077b5;
    transform: translateY(-2px);
}

.hall-btn {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
}

.hall-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.records-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.records-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.step-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(76, 201, 240, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 8px;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-link:hover {
    background: rgba(76, 201, 240, 0.2);
    transform: translateY(-2px);
}

/* Special Elements */
.form-guide {
    background: rgba(76, 201, 240, 0.05);
    border-left: 3px solid var(--accent-primary);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
}

.form-guide p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rp-note {
    background: rgba(236, 72, 153, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-tip {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guild-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.benefit-tag {
    background: rgba(76, 201, 240, 0.1);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(76, 201, 240, 0.2);
}

/* Final Step */
.final-step .step-content {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.05), rgba(236, 72, 153, 0.05));
    border: 2px solid var(--accent-primary);
}

.final-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Registration Notes */
.registration-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.important-note {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
}

.note-icon {
    font-size: 2rem;
    color: #ef4444;
    flex-shrink: 0;
}

.note-content h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.note-content ul {
    color: var(--text-muted);
    list-style: none;
    padding: 0;
}

.note-content li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.note-content li::before {
    content: '•';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
}

.quick-links {
    background: rgba(20, 30, 48, 0.7);
    border: 1px solid rgba(76, 201, 240, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.quick-links h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(76, 201, 240, 0.05);
    border: 1px solid rgba(76, 201, 240, 0.1);
    border-radius: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: rgba(76, 201, 240, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .flow-step {
        flex-direction: column;
    }
    
    .step-marker {
        width: 100%;
        margin-bottom: 1rem;
        flex-direction: row;
        justify-content: center;
    }
    
    .step-number {
        margin-right: 1rem;
    }
    
    .step-line {
        position: absolute;
        left: 50%;
        top: 25px;
        bottom: auto;
        width: calc(100% - 100px);
        height: 3px;
        transform: translateX(-50%);
        background: linear-gradient(to right, var(--accent-primary), transparent);
    }
    
    .step-content {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon {
        margin-bottom: 0.5rem;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    .important-note {
        flex-direction: column;
        text-align: center;
    }
    
    .note-icon {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .step-btn,
    .step-link {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .step-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .guild-benefits {
        justify-content: center;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* Hamburger visible */
    .hamburger {
        display: flex;
    }
    
    /* Mobile navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(76, 201, 240, 0.1);
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li a {
        justify-content: center;
        padding: 1rem;
        width: 100%;
    }
    
    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        width: 100%;
        background: rgba(10, 10, 26, 0.3);
        box-shadow: none;
        border: 1px solid rgba(76, 201, 240, 0.1);
        padding: 0;
        margin: 0.5rem 0 0 0;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease;
    }
    
    .mobile-dropdown.active .dropdown-menu {
        opacity: 1;
        max-height: 400px;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        border-left: none;
    }
    
    .dropdown-menu a:hover {
        padding-left: 3rem;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 8rem 1rem 4rem;
    }
    
    .corner-ornament {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Welcome section */
    .welcome-content {
        padding: 2.5rem;
    }
    
    .welcome-text {
        font-size: 1rem;
    }
    
    /* Portal grid */
    .portal-grid {
        grid-template-columns: 1fr;
    }
    
    /* Hide custom cursor */
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    
    body {
        cursor: auto !important;
    }
    
    input, textarea, button, a {
        cursor: pointer !important;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .welcome-content {
        padding: 2rem;
    }
    
    .welcome-text {
        font-size: 0.95rem;
    }
    
    .portal-card {
        padding: 2rem 1.5rem;
    }
}