/* FableForge Design System CSS */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables from FableForge Design System */
:root {
    /* Foundation Colors */
    --bg-primary: #0A192F;
    --bg-primary-light: #1A2332;
    --bg-primary-dark: #050B14;
    
    /* Brand Colors */
    --brand-orange: #FF4D00;
    --brand-orange-light: #FF6B33;
    --brand-orange-dark: #CC3D00;
    --brand-orange-deeper: #B33600;
    --brand-orange-darker: #992E00;
    
    --brand-cyan: #00C2D1;
    --brand-cyan-light: #33D1DD;
    --brand-cyan-dark: #009BA7;
    
    --brand-yellow: #FFD700;
    --brand-yellow-light: #FFDD33;
    --brand-yellow-dark: #CCB000;
    
    /* Gold Variations */
    --gold-bright: #FFD700;
    --gold-warm: #FFC947;
    --gold-rich: #B8860B;
    --gold-antique: #CD853F;
    --gold-pale: #F0E68C;
    --gold-deep: #DAA520;
    --gold-metallic: #D4AF37;
    --gold-champagne: #F7E7CE;
    
    /* Animation Variables */
    --ease-forge: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-magical: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --duration-normal: 300ms;
    --duration-slow: 500ms;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Prevent hyphenation and control word breaking */
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

body {
    font-family: 'Exo 2', system-ui, sans-serif;
    color: #E5E7EB;
    overflow-x: hidden;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Ensure body also follows no-hyphen rules */
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
}

/* Hamburger hidden by default; shown on small screens only */
.mobile-menu-button { display: none; }

html {
    overflow-x: hidden;
    /* Ensure html also follows no-hyphen rules */
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
}

/* Forge Background System */
.forge-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-primary-dark);
}

/* Multiverse Background Image */
.multiverse-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/d8dad384-ab96-4471-8e69-1f295e0a6a02.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
}

/* Gradient Overlay */
.gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, 
        rgba(10, 25, 47, 0.3) 0%, 
        rgba(10, 25, 47, 0.7) 50%, 
        rgba(5, 11, 20, 0.9) 100%);
}

/* Energy Grid Overlay */
.energy-grid {
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(0, 194, 209, 0.03) 100px, rgba(0, 194, 209, 0.03) 101px),
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(255, 77, 0, 0.03) 100px, rgba(255, 77, 0, 0.03) 101px);
    opacity: 0.5;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.15;
    background: 
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj4KICA8ZmlsdGVyIGlkPSJub2lzZSI+CiAgICA8ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC45IiBudW1PY3RhdmVzPSI0IiAvPgogIDwvZmlsdGVyPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZSkiIG9wYWNpdHk9IjEiLz4KPC9zdmc+');
}

/* Main Page Container - Contains everything except background */
.page-container {
    max-width: min(1440px, 100vw);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Content Container - For main content area */
.content-container {
    flex: 1;
    padding: 2rem 0;
}

/* Navbar - Variation 1: Molten Gradient Flow - Match portal grid width */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    height: 140px;
    position: relative;
    transition: all var(--duration-normal) var(--ease-forge);
    background: linear-gradient(45deg, 
        var(--brand-orange-darker) 0%,
        var(--brand-orange-darker) 25%,
        var(--brand-orange-deeper) 50%,
        var(--brand-orange-darker) 75%,
        var(--brand-orange-darker) 100%
    );
    background-size: 200% 200%;
    animation: moltenFlow 4s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 100px) 100%, 100px 100%, 0 70%);
    box-shadow: 0 12px 50px rgba(255, 77, 0, 0.6);
    margin-bottom: 3rem;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100vw;
}

@keyframes moltenFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-logo {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-forge);
    margin-left: 120px;
}

.nav-logo:hover {
    text-shadow: 0 0 20px var(--brand-yellow);
}

.nav-links {
    display: flex;
    gap: 6rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 2rem;
    transition: all var(--duration-normal) var(--ease-forge);
    position: relative;
    display: flex;
    align-items: center;
    height: 70px;
}

.nav-link:hover {
    color: var(--brand-yellow);
    text-shadow: 0 0 10px var(--brand-yellow);
}

.nav-separator {
    color: var(--brand-yellow);
    font-size: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 70px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    margin: 0 -3rem;
}

.nav-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-right: 120px;
}

.nav-button {
    padding: 0.75rem 1.75rem;
    border-radius: 0.7rem;
    border: 2px solid var(--brand-yellow);
    background: var(--brand-yellow);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-forge);
    box-shadow: 0 5.6px 28px rgba(255, 215, 0, 0.4);
}

.nav-button:hover {
    background: var(--brand-yellow-light);
    color: var(--bg-primary-dark);
    box-shadow: 
        0 6px 30px rgba(255, 215, 0, 0.7),
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

/* Secondary nav button style */
.nav-button-secondary {
    padding: 0.75rem 1.75rem;
    border-radius: 0.7rem;
    border: 2px solid var(--brand-cyan);
    background: var(--brand-cyan);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-forge);
    text-decoration: none;
    display: inline-block;
}

.nav-button-secondary:hover {
    background: var(--brand-cyan-light);
    color: var(--bg-primary-dark);
    border-color: var(--brand-cyan-light);
    box-shadow: 
        0 6px 30px rgba(0, 194, 209, 0.6),
        0 0 20px rgba(0, 194, 209, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(0, 194, 209, 0.8);
}

/* Footer - Exact copy of navbar but inverted angles - Match portal grid width */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    height: 140px;
    position: relative;
    transition: all var(--duration-normal) var(--ease-forge);
    background: linear-gradient(45deg, 
        var(--brand-orange-darker) 0%,
        var(--brand-orange-darker) 25%,
        var(--brand-orange-deeper) 50%,
        var(--brand-orange-darker) 75%,
        var(--brand-orange-darker) 100%
    );
    background-size: 200% 200%;
    animation: moltenFlow 4s ease-in-out infinite;
    clip-path: polygon(100px 0%, calc(100% - 100px) 0%, 100% 30%, 100% 100%, 0% 100%, 0% 30%);
    box-shadow: 0 -12px 50px rgba(255, 77, 0, 0.6);
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100vw;
    margin-top: 3rem;
}

.footer-logo {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-forge);
    margin-left: 120px;
}

.footer-logo:hover {
    text-shadow: 0 0 20px var(--brand-yellow);
}

.footer-links {
    display: flex;
    gap: 4rem;
    list-style: none;
    align-items: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 2rem;
    transition: all var(--duration-normal) var(--ease-forge);
    position: relative;
}

.footer-link:hover {
    color: var(--brand-yellow);
    text-shadow: 0 0 10px var(--brand-yellow);
}

.footer-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-right: 120px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
}

/* Hero Section - Variation 5: Compact Horizontal */
.hero-section {
    padding: 0.09rem 0;
    margin-bottom: 0.6rem;
}

.hero-v5 {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2.4rem;
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 194, 209, 0.2);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.hero-v5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-cyan), var(--brand-yellow));
}

.hero-logo {
    max-width: 260px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 20px rgba(255, 77, 0, 0.3));
    animation: heroGlow 3s ease-in-out infinite alternate;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 2.8125rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-cyan), var(--brand-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.6875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Desktop: side-by-side layout */
@media (min-width: 1025px) {
    .hero-actions {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
}

.hero-v5 .runic-button {
    padding: 1.40625rem 2.8125rem;
    font-size: 1.640625rem;
}

@keyframes heroGlow {
    0% { filter: drop-shadow(0 0 20px rgba(255, 77, 0, 0.3)); }
    100% { filter: drop-shadow(0 0 40px rgba(255, 77, 0, 0.6)); }
}

/* Reduced motion for accessibility and zoom stability */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Runic Button */
.runic-button {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: 1px solid;
    background: var(--bg-primary-light);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-forge);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.runic-button.primary {
    color: var(--brand-orange);
    border-color: rgba(255, 77, 0, 0.2);
}

.runic-button.primary:hover:not(:disabled) {
    color: var(--brand-orange-light);
    border-color: rgba(255, 77, 0, 0.4);
    box-shadow: 0 8px 25px rgba(255, 77, 0, 0.3);
    text-shadow: 0 0 8px var(--brand-orange);
    transform: translateY(-2px);
}

.runic-button.secondary {
    color: var(--brand-cyan);
    border-color: rgba(0, 194, 209, 0.2);
}

.runic-button.secondary:hover:not(:disabled) {
    color: var(--brand-cyan-light);
    border-color: rgba(0, 194, 209, 0.4);
    box-shadow: 0 8px 25px rgba(0, 194, 209, 0.3);
    text-shadow: 0 0 8px var(--brand-cyan);
    transform: translateY(-2px);
}

.runic-button.gold {
    color: var(--gold-bright);
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(218, 165, 32, 0.15) 100%);
}

.runic-button.gold:hover:not(:disabled) {
    color: var(--gold-bright);
    border-color: rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.2) 0%, 
        rgba(218, 165, 32, 0.25) 100%);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    text-shadow: 0 0 8px var(--gold-bright);
    transform: translateY(-2px);
}

/* Portal Section Styles */
.portal-section {
    padding: 4rem clamp(1rem, 4vw, 3rem);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
    align-items: stretch; /* ensure row items share equal row height */
}

.portal-grid:last-of-type {
    margin-top: 4rem;
}

/* Portal Box - 3:4 ratio with dwarven door frame - appropriately sized */
.portal-box {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    background-image: url('../images/u1149414188_portrait_door_frame_glowing_dwarven_rune-carved_.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all var(--duration-normal) var(--ease-forge);
    animation: fadeInUp 0.8s var(--ease-forge) forwards;
    opacity: 0;
    transform-origin: center;
}

@supports not (aspect-ratio: 3 / 4) {
  .portal-box::before {
    content: '';
    display: block;
    padding-top: 133.3333%;
  }
}

/* Backdrop filter graceful degradation */
@supports not ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .hero-v5 {
    background: rgba(10, 25, 47, 0.85);
  }
}

/* Portal Box Iframe - centered with 10% padding (5% bigger) */
.portal-iframe {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border: none;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    outline: 1px solid transparent;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Portal Box Container - includes label and description */
.portal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

/* Portal Box Label - above the box */
.portal-label {
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    transition: all var(--duration-normal) var(--ease-forge);
    line-height: 1.2;
    height: calc(3rem * 1.2 * 2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: clip; /* avoid scrollbars and allow clamp */
    text-overflow: ellipsis;
    /* cross-browser line clamp */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    line-clamp: 2;
}

/* Style 1: Bright Gold Labels */
.portal-label {
    color: var(--gold-bright);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    text-decoration: none;
    font-weight: 800;
}

/* Desktop (three-column) only: slightly smaller labels to reduce wrap/clipping */
@media (min-width: 1025px) {
  .portal-label {
    font-size: clamp(1.65rem, 1.0rem + 0.58vw, 2.3rem);
    height: 2.4em; /* two lines, scales with font-size */
  }
}

/* When navbar collapses earlier but grid is still 3-col, make labels a bit smaller */
@media (min-width: 1025px) and (max-width: 1500px) {
  .portal-label {
    font-size: clamp(1.55rem, 0.9rem + 0.5vw, 2.1rem);
  }
}

.portal-label:hover {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
}

/* Portal Box Description - below the box */
.portal-description {
    font-size: clamp(0.95rem, 1.1vw, 1.2rem);
    font-weight: 400;
    color: #451a03;
    text-align: center;
    line-height: 1.4;
    margin-top: 0.5rem;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(
        145deg,
        #FFE3BF 0%,     /* soft light orange base */
        #FFC98A 38%,    /* subtle mid-tone */
        #FFB765 72%,    /* gentle shiny accent */
        #FFE3BF 100%    /* return to light base */
    );
    border: 8px solid var(--brand-orange-darker);
    border-radius: 0.5rem;
    box-shadow: 
        0 0 20px rgba(255, 77, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all var(--duration-normal) var(--ease-forge);
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Prevent hyphenation - words should wrap to new lines instead */
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portal-description:hover {
    box-shadow: 
        0 0 30px rgba(255, 77, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Desktop: unify portal description heights */
@media (min-width: 1025px) {
  /* Reserve a fixed line-space above the action button so growth hits spacer first */
  .portal-description::before {
    content: '';
    display: block;
    height: 1em; /* one line of space */
    flex: none;
    order: 2; /* place just before the button */
  }
  /* Ensure text area grows and action button stays pinned to bottom */
  .portal-description > div:first-child { flex: 1 1 auto; }
  .portal-description .portal-button { margin-top: auto; order: 3; }
  /* Stretch containers on desktop so equalized heights align across the row */
  .portal-container { align-items: stretch !important; }
}

/* Safari and macOS desktop: force desktop layout overrides */
@media (min-width: 1025px) {
  html.is-safari .portal-grid,
  html.is-mac .portal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  html.is-safari .hero-v5,
  html.is-mac .hero-v5 {
    flex-direction: row !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 2.4rem !important;
  }
}

/* Mac desktop: scale down via base font-size (more reliable than zoom) */
@media (min-width: 1201px) {
  html.is-mac { font-size: 80%; }
  /* Tighten key elements slightly on mac desktop */
  html.is-mac .portal-label { font-size: clamp(1.6rem, 0.95rem + 0.5vw, 2.2rem) !important; }
  html.is-mac .portal-description { height: 580px !important; min-height: 580px !important; font-size: clamp(0.9rem, 0.95vw, 1.05rem) !important; }
}

/* Mobile/tablet (single-column) give a bit of extra headroom */
@media (max-width: 1024px) {
  .portal-description {
    height: auto !important; /* allow natural growth */
    padding-bottom: 1rem !important; /* small visual cushion */
  }
  /* Add a fixed line-space above the button in single-column view */
  .portal-description::before {
    content: '';
    display: block;
    height: 1em; /* one line of space */
    flex: none;
    order: 2;
  }
  .portal-description > div:first-child { flex: 1 1 auto; }
  .portal-description .portal-button { margin-top: auto; order: 3; }
}

/* Stagger animations for all 6 boxes */
.portal-grid:first-of-type .portal-box:nth-child(1) {
    animation-delay: 0.1s;
}

.portal-grid:first-of-type .portal-box:nth-child(2) {
    animation-delay: 0.2s;
}

.portal-grid:first-of-type .portal-box:nth-child(3) {
    animation-delay: 0.3s;
}

.portal-grid:last-of-type .portal-box:nth-child(1) {
    animation-delay: 0.4s;
}

.portal-grid:last-of-type .portal-box:nth-child(2) {
    animation-delay: 0.5s;
}

.portal-grid:last-of-type .portal-box:nth-child(3) {
    animation-delay: 0.6s;
}

.portal-box:hover {
    transform: translateY(-10px) scale(1.05);
    filter: brightness(1.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Coming Soon Overlay */
.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.coming-soon-text {
    font-size: clamp(1.25rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: rgba(255, 215, 0, 0.8);
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: rotate(-25deg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.coming-soon-text.coming-2025 {
    color: rgba(0, 194, 209, 0.9);
    text-shadow: 
        0 0 25px rgba(0, 194, 209, 0.8),
        0 0 40px rgba(0, 194, 209, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Portal Button */
.portal-button {
    margin-top: 1rem;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 0.75rem;
    border: 5px solid;
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 80%);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-forge);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
    color: #ffffff;
    border-color: var(--brand-orange-dark);
}

.portal-button:hover {
    color: #ffffff;
    border-color: var(--brand-orange);
    box-shadow: 0 8px 25px rgba(255, 77, 0, 0.3);
    text-shadow: 0 0 8px var(--brand-orange);
    transform: translateY(-2px);
}

/* Special styling for "Play Very Soon" button */
.portal-button.very-soon {
    font-weight: 900;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Coming Soon Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-forge);
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-modal {
    background: linear-gradient(135deg, 
        var(--bg-primary-light) 0%,
        var(--bg-primary) 50%,
        var(--bg-primary-dark) 100%
    );
    border: 6px solid var(--brand-orange);
    border-radius: 3rem;
    padding: 0;
    max-width: min(1500px, 95vw);
    max-height: min(95vh, 1800px);
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 
        0 60px 180px rgba(255, 77, 0, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.8) translateY(50px);
    transition: all var(--duration-normal) var(--ease-forge);
    overflow: hidden;
    margin: 2rem;
    display: flex;
    flex-direction: column;
}

.popup-overlay.show .popup-modal {
    transform: scale(1) translateY(0);
}

.popup-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-cyan), var(--brand-yellow));
    border-radius: 1rem 1rem 0 0;
}

/* Popup Modal Content Area - Scrollable */
.popup-content {
    padding: 6rem 4rem 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Popup Modal Footer - Always Visible */
.popup-footer {
    padding: 2rem 4rem 4rem;
    background: linear-gradient(to bottom, 
        rgba(10, 25, 47, 0.3) 0%,
        var(--bg-primary) 30%,
        var(--bg-primary-dark) 100%
    );
    border-top: 2px solid var(--brand-orange-dark);
    flex-shrink: 0;
}

.popup-title {
    font-size: 7.5rem;
    font-weight: 800;
    color: var(--brand-yellow);
    text-shadow: 
        0 0 60px rgba(255, 215, 0, 0.6),
        6px 6px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: popupGlow 2s ease-in-out infinite alternate;
}

@keyframes popupGlow {
    0% { text-shadow: 0 0 60px rgba(255, 215, 0, 0.6), 6px 6px 12px rgba(0, 0, 0, 0.5); }
    100% { text-shadow: 0 0 90px rgba(255, 215, 0, 0.9), 6px 6px 12px rgba(0, 0, 0, 0.7); }
}

.popup-message {
    font-size: 3.75rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6rem;
    line-height: 1.6;
}

.popup-close {
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 2.25rem 6rem;
    border-radius: 1.5rem;
    font-size: 3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-forge);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 12px 45px rgba(255, 77, 0, 0.4);
}

.popup-close:hover {
    background: var(--brand-orange-light);
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.6);
    transform: translateY(-2px);
}

/* Mobile responsive popup sizing - Better mobile optimization */
@media (max-width: 768px) {
    .popup-modal {
        max-width: 95vw;
        max-height: 90vh;
        width: 95%;
        border-radius: 1rem;
        border: 2px solid var(--brand-orange);
        margin: 1rem;
        box-shadow: 
            0 20px 60px rgba(255, 77, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .popup-content {
        padding: 2rem 1.5rem 1rem;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .popup-footer {
        padding: 1rem 1.5rem 2rem;
    }
    
    .popup-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .popup-message {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .popup-message p {
        margin-bottom: 1rem;
    }
    
    .popup-message ul {
        text-align: left;
        margin: 1rem 0;
        font-size: 0.8rem;
        padding-left: 1.5rem;
    }
    
    .popup-message li {
        margin-bottom: 0.75rem;
        line-height: 1.4;
        font-size: 0.8rem;
    }
    
    /* Specific styling for FableForge difference popup content */
    #fableForgeDifferencePopup .popup-message p {
        font-size: 0.85rem;
    }
    
    #fableForgeDifferencePopup .popup-message ul {
        font-size: 0.75rem;
    }
    
    #fableForgeDifferencePopup .popup-message li {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .popup-close {
        padding: 0.75rem 2rem;
        border-radius: 0.5rem;
        font-size: 1rem;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Waitlist form specific mobile styling */
    #joinWaitlistPopup .popup-message form {
        width: 100%;
    }
    
    #joinWaitlistPopup .popup-message form > div {
        margin-bottom: 1rem;
    }
    
    #joinWaitlistPopup .popup-message label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    #joinWaitlistPopup .popup-message input,
    #joinWaitlistPopup .popup-message select {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        border: 2px solid var(--brand-cyan);
        border-radius: 0.5rem;
        background: var(--bg-primary-light);
        color: white;
    }
    
    #joinWaitlistPopup .popup-footer {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #joinWaitlistPopup .popup-footer button {
        width: 100%;
        margin: 0;
    }
}

/* Tablet responsive popup sizing */
@media (min-width: 769px) and (max-width: 1024px) {
    .popup-modal {
        max-width: 85vw;
        max-height: 85vh;
        width: 85%;
        border-radius: 1.5rem;
        border: 3px solid var(--brand-orange);
        margin: 1.5rem;
    }
    
    .popup-content {
        padding: 3rem 2rem 1.5rem;
    }
    
    .popup-footer {
        padding: 1.5rem 2rem 3rem;
    }
    
    .popup-title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .popup-message {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .popup-close {
        padding: 1rem 2.5rem;
        border-radius: 0.75rem;
        font-size: 1.25rem;
    }
}

/* Large tablet/small desktop responsive popup sizing */
@media (min-width: 1025px) and (max-width: 1200px) {
    .popup-modal {
        max-width: min(900px, 90vw);
        max-height: min(80vh, 1080px);
        width: 80%;
        border-radius: 2rem;
        border: 4px solid var(--brand-orange);
        margin: 1.5rem;
    }
    
    .popup-content {
        padding: 4rem 3rem 2rem;
    }
    
    .popup-footer {
        padding: 2rem 3rem 3rem;
    }
    
    .popup-title {
        font-size: 4rem;
        margin-bottom: 2rem;
    }
    
    .popup-message {
        font-size: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .popup-close {
        padding: 1.5rem 4rem;
        border-radius: 1rem;
        font-size: 1.75rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
}

/* Force correct portal grid columns at key breakpoints */
@media (max-width: 768px) {
  .portal-grid { grid-template-columns: 1fr !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .portal-grid { grid-template-columns: 1fr !important; }
}

@media (min-width: 1025px) {
  .portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Hide mobile elements on desktop only */
@media (min-width: 1201px) {
    .mobile-menu-overlay {
        display: none !important;
    }

    .mobile-footer-menu-overlay {
        display: none !important;
    }

    .mobile-footer-menu-button {
        display: none !important;
    }
}

/* Mobile logo display */
.nav-logo-desktop {
    display: inline;
}

.nav-logo-mobile {
    display: none;
}

@media (max-width: 768px) {
    .nav-logo-desktop {
        display: none;
    }
    
    .nav-logo-mobile {
        display: inline;
    }
}

@media (max-width: 1500px) {
    .nav-links {
        display: none !important; /* ensure links hidden */
    }
    .mobile-menu-button { display: block !important; }
    
    .navbar {
        /* Full-bleed across viewport at all responsive widths */
        width: 100vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 0 2rem !important;
        clip-path: none !important;
        height: 80px !important;
        position: relative !important;
    }
    
    .nav-logo {
        margin-left: 0 !important;
        font-size: 1.8rem !important;
    }
    
    .nav-actions {
        margin-right: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
    
    .nav-button {
        padding: 0.5rem 1.5rem !important; /* 50% wider (1rem * 1.5) */
        font-size: 1rem !important;
    }
    
    .nav-button-secondary {
        padding: 0.5rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Mobile menu button - Hidden by default, shown on mobile */
    .mobile-menu-button {
        display: none;
        background: none !important;
        border: 2px solid var(--brand-yellow) !important;
        color: var(--brand-yellow) !important;
        padding: 0.5rem 1rem !important;
        border-radius: 0.5rem !important;
        cursor: pointer !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin-right: 1rem !important;
        order: -1 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
    }
    
    /* Show mobile menu button on mobile */
    /* Show hamburger on mobile */
    .mobile-menu-button { display: block !important; }
    
    .nav-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
    }
    
    .mobile-menu-button:hover {
        background: rgba(255, 215, 0, 0.1) !important;
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.8) !important;
        z-index: 1000 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-menu-overlay.show {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-menu {
        position: fixed !important;
        top: 90px !important;
        right: 1rem !important;
        width: 200px !important;
        background: linear-gradient(135deg, var(--bg-primary-light), var(--bg-primary)) !important;
        border: 3px solid var(--brand-orange) !important;
        border-radius: 0.75rem !important;
        padding: 1rem !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
        opacity: 0 !important;
        transform: translateY(-10px) !important;
        transition: all 0.3s ease !important;
        z-index: 1001 !important;
        pointer-events: none !important;
    }
    
    .mobile-menu.show {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    .mobile-nav-links {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .mobile-nav-links li {
        margin-bottom: 1.5rem !important;
    }
    
    .mobile-nav-links a {
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
        font-size: 1.2rem !important;
        font-weight: 500 !important;
        display: block !important;
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-nav-links a:hover {
        background: rgba(255, 215, 0, 0.1) !important;
        color: var(--brand-yellow) !important;
    }
    
    .footer-links {
        display: none;
    }
    
    .footer {
        width: 100vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 0 2rem !important;
        clip-path: none !important;
        height: 80px !important;
        position: relative !important;
    }
    
    /* Hide footer logo on mobile */
    .footer-logo {
        display: none !important;
    }
    
    /* Mobile footer menu button - Left aligned */
    .mobile-footer-menu-button {
        display: block !important;
        background: none !important;
        border: 3px solid white !important;
        color: white !important;
        padding: 0.75rem 2rem !important;
        border-radius: 0.5rem !important;
        cursor: pointer !important;
        font-size: 1.2rem !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        min-width: 120px !important;
        position: absolute !important;
        left: 2rem !important;
    }
    
    .footer-actions {
        margin-right: 0 !important;
        padding-right: 2rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        position: absolute !important;
        right: 0 !important;
    }
    
    /* Smaller copyright text on mobile */
    .footer-text {
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 1.2rem !important;
    }
    
    /* Mobile footer menu overlay - Hidden on desktop */
    .mobile-footer-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.8) !important;
        z-index: 1000 !important;
        display: none !important;
    }
    
    .mobile-footer-menu-overlay.show {
        display: block !important;
    }
    
    .mobile-footer-menu {
        position: fixed !important;
        bottom: 90px !important;
        right: 1rem !important;
        width: 200px !important;
        background: linear-gradient(135deg, var(--bg-primary-light), var(--bg-primary)) !important;
        border: 3px solid var(--brand-orange) !important;
        border-radius: 0.75rem !important;
        padding: 1rem !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
        opacity: 0 !important;
        transform: translateY(10px) !important;
        transition: all 0.3s ease !important;
        z-index: 1001 !important;
        pointer-events: none !important;
    }
    
    .mobile-footer-menu.show {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    .mobile-footer-nav-links {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .mobile-footer-nav-links li {
        margin-bottom: 1.5rem !important;
    }
    
    .mobile-footer-nav-links a {
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
        font-size: 1.2rem !important;
        font-weight: 500 !important;
        display: block !important;
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-footer-nav-links a:hover {
        background: rgba(255, 215, 0, 0.1) !important;
        color: var(--brand-yellow) !important;
    }
    
    /* Mobile Hero Layout - Stack elements vertically */
    .hero-v5 {
        flex-direction: column !important;
        text-align: center !important;
        gap: 2rem !important;
        padding: 1.5rem !important;
        width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .hero-logo {
        max-width: 320px !important;
        width: 100% !important;
        order: 1 !important;
    }
    
    .hero-content {
        order: 2 !important;
        width: 100% !important;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
        order: 1 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
        order: 2 !important;
        margin-bottom: 1rem !important;
        line-height: 1.45 !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        order: 3 !important;
        width: 100% !important;
    }
    
    .hero-v5 .runic-button {
        width: 100% !important;
        max-width: 260px !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.95rem !important;
        letter-spacing: 0.02em !important;
    }
    
    /* Make "Fable Forge Difference" button 70% wider */
    .hero-v5 .runic-button.primary {
        max-width: 510px !important;
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .portal-container {
        width: 100%;
        max-width: none;
    }
    
    .portal-box {
        width: 100%;
        max-width: none;
    }
    
    /* Mobile "Coming Soon" text sizing */
    .coming-soon-text {
        font-size: 2.25rem !important; /* 60% of 3.75rem */
        letter-spacing: 0.05em !important; /* 50% of 0.1em */
    }
    
    /* Mobile portal description smaller font size - tighter for best fit */
    .portal-description {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        height: auto !important;
        min-height: 0 !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .portal-description h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    .portal-button {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
        border-width: 3px !important;
        letter-spacing: 0.02em !important;
    }
    
    /* MOBILE CONTENT STYLING - Fix for content-style-2 */
    .content-style-2 {
        padding: 1.5rem !important;
        margin: 1rem 0 !important;
        border-width: 2px !important;
    }
    
    .content-style-2::before,
    .content-style-2::after {
        width: 30px !important;
        height: 30px !important;
        border-width: 2px !important;
    }
    
    .content-style-2 h2 {
        font-size: 1.8rem !important; /* 40% of 4.5rem */
        margin-bottom: 1rem !important;
    }
    
    .content-style-2 h3 {
        font-size: 1.4rem !important; /* 40% of 3.5rem */
        margin: 1.25rem 0 0.75rem 0 !important;
    }
    
    .content-style-2 h4 {
        font-size: 1.2rem !important; /* 40% of 3rem */
        margin: 1rem 0 0.5rem 0 !important;
    }
    
    .content-style-2 p {
        font-size: 0.9rem !important; /* 40% of 2.25rem */
        line-height: 1.5 !important;
        margin-bottom: 0.75rem !important;
        text-align: left !important; /* Better for mobile */
    }
    
    .content-style-2 .subtitle {
        font-size: 1.1rem !important; /* 40% of 2.75rem */
        margin-bottom: 1rem !important;
    }
    
    .content-style-2 li {
        font-size: 0.9rem !important; /* 40% of 2.25rem */
        line-height: 1.5 !important;
        margin-bottom: 0.375rem !important;
    }
    
    .content-style-2 .closing-call {
        font-size: 1rem !important; /* 40% of 2.5rem */
        margin-top: 1.5rem !important;
        padding-top: 1rem !important;
    }
    
    /* Mobile founder quote */
    .founder-quote {
        padding: 1rem !important;
        margin: 1rem 0 !important;
    }
    
    /* Mobile values list */
    .values-list {
        gap: 0.5rem !important;
        margin: 1rem 0 !important;
    }
    
    .value-item {
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
    }
    
    .value-name {
        min-width: auto !important;
        font-size: 0.95rem !important;
    }
    
    .value-description {
        font-size: 0.85rem !important;
    }
    
    /* Mobile social links */
    .social-links {
        flex-direction: column !important;
        gap: 1rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .social-link {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        gap: 0.5rem !important;
    }
}

/* STYLE 2: Runic Scroll */
.content-style-2 {
    background: linear-gradient(135deg, 
        rgba(26, 35, 50, 0.8) 0%,
        rgba(10, 25, 47, 0.9) 50%,
        rgba(5, 11, 20, 0.8) 100%
    );
    border: 3px solid var(--brand-orange-dark);
    border-radius: 0.5rem;
    padding: 3rem;
    margin: 2rem 0;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(255, 77, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.content-style-2::before,
.content-style-2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--brand-orange);
}

.content-style-2::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
}

.content-style-2::after {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
}

.content-style-2 h2 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--brand-yellow);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.content-style-2 h3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brand-cyan);
    margin: 2.5rem 0 1.5rem 0;
    text-shadow: 0 0 15px rgba(0, 194, 209, 0.4);
}

.content-style-2 h4 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--brand-orange);
    margin: 2rem 0 1rem 0;
    text-shadow: 0 0 10px rgba(255, 77, 0, 0.4);
}

.content-style-2 p {
    font-size: 2.25rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: justify;
}

.content-style-2 .subtitle {
    font-size: 2.75rem;
    font-style: italic;
    color: var(--brand-cyan-light);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(51, 209, 221, 0.3);
}

.content-style-2 ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-style-2 li {
    font-size: 2.25rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
}

.content-style-2 .closing-call {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--brand-yellow);
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--brand-orange-dark);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Special styling for founder quote */
.founder-quote {
    background: rgba(0, 194, 209, 0.1);
    border-left: 4px solid var(--brand-cyan);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    font-style: italic;
}

/* Special styling for values list */
.values-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 77, 0, 0.1);
    border-radius: 0.5rem;
    border-left: 4px solid var(--brand-orange);
}

.value-name {
    font-weight: 700;
    color: var(--brand-orange);
    min-width: 150px;
    flex-shrink: 0;
}

.value-description {
    flex: 1;
}

/* Social Links Styling */
.social-links {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--brand-orange);
    border-radius: 1rem;
    color: var(--brand-orange);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    transition: all var(--duration-normal) var(--ease-forge);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-link:hover {
    background: rgba(255, 77, 0, 0.1);
    border-color: var(--brand-orange-light);
    color: var(--brand-orange-light);
    box-shadow: 0 8px 25px rgba(255, 77, 0, 0.3);
    text-shadow: 0 0 8px var(--brand-orange);
    transform: translateY(-2px);
}

.social-link.discord {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
}

.social-link.discord:hover {
    background: rgba(0, 194, 209, 0.1);
    border-color: var(--brand-cyan-light);
    color: var(--brand-cyan-light);
    box-shadow: 0 8px 25px rgba(0, 194, 209, 0.3);
    text-shadow: 0 0 8px var(--brand-cyan);
}

/* Utility classes */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.hidden { display: none; }
.sm\:inline-block { display: inline-block; }

@media (max-width: 640px) {
    .sm\:inline-block { display: none; }
}
