@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    color-scheme: dark;
    --bg-primary: #06070f;
    --bg-secondary: #101228;
    --accent: #7c5cff;
    --accent-soft: rgba(124, 92, 255, 0.25);
    --text-primary: #f5f6ff;
    --text-muted: rgba(245, 246, 255, 0.68);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(120% 120% at 10% 10%, rgba(124, 92, 255, 0.28) 0%, transparent 55%),
                radial-gradient(120% 140% at 90% 15%, rgba(16, 198, 255, 0.22) 0%, transparent 60%),
                linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 40px 24px;
    color: var(--text-primary);
}

.page {
    position: relative;
    max-width: 1180px;
    width: 100%;
    min-height: calc(100vh - 80px);
    border-radius: 32px;
    overflow: hidden;
    padding: 56px clamp(24px, 5vw, 72px);
    backdrop-filter: blur(18px);
    background: rgba(6, 7, 15, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.glow {
    position: absolute;
    filter: blur(60px);
    opacity: 0.85;
    z-index: -1;
}

.glow.one {
    top: -160px;
    left: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.55) 0%, transparent 70%);
}

.glow.two {
    bottom: -200px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(16, 198, 255, 0.45) 0%, transparent 70%);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    letter-spacing: 0.16em;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.brand::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #7c5cff, #54e0ff);
    box-shadow: 0 0 18px rgba(124, 92, 255, 0.55);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-links a.platform-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    background: linear-gradient(135deg, #7c5cff, #667eea);
    color: white !important;
    box-shadow: 0 2px 8px rgba(124, 92, 255, 0.3);
}

.nav-links a.platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 92, 255, 0.4);
    background: linear-gradient(135deg, #667eea, #7c5cff);
}

.hero-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-nav .theme-toggle-container {
    position: static;
}

.hero-nav .nav-links a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: relative;
}

.hamburger-btn {
    background: rgba(124, 92, 255, 0.15);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hamburger-btn:hover {
    background: rgba(124, 92, 255, 0.25);
    border-color: rgba(124, 92, 255, 0.5);
    transform: translateY(-1px);
}

.hamburger-btn:active {
    transform: translateY(0);
}

.hamburger-icon {
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(12, 15, 32, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(124, 92, 255, 0.15);
    color: var(--text-primary);
}

.dropdown-menu .menu-icon {
    font-size: 1.1rem;
    line-height: 1;
}

main {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(240px, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.48em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out;
}

.eyebrow-link {
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.eyebrow-link:hover {
    color: var(--accent);
    background: rgba(124, 92, 255, 0.1);
    transform: translateY(-2px);
}

.eyebrow-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.eyebrow-link:hover::after {
    width: 80%;
}

.eyebrow-separator {
    color: var(--text-muted);
    opacity: 0.5;
    user-select: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4.6rem);
    line-height: 1.05;
    font-weight: 600;
    width: 100%;
}

.hero-title span {
    color: var(--accent);
    text-shadow: 0 0 25px rgba(124, 92, 255, 0.35);
}

.rotating-word {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.rotating-word.fade-out {
    opacity: 0;
}

.hero-text {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.6;
}

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

.cta {
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta.primary {
    color: #0c0f23;
    background: linear-gradient(135deg, #7c5cff, #54e0ff);
    box-shadow: 0 20px 40px rgba(124, 92, 255, 0.35);
}

.cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 46px rgba(124, 92, 255, 0.45);
}

.cta.secondary {
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.cta.secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card {
    position: relative;
    border-radius: 24px;
    padding: 24px 28px;
    text-decoration: none;
    backdrop-filter: blur(12px);
    background: rgba(12, 15, 32, 0.45);
    border: 1px solid rgba(124, 92, 255, 0.12);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card::after {
    content: "↗";
    position: absolute;
    top: 26px;
    right: 26px;
    font-size: 1.2rem;
    color: rgba(245, 246, 255, 0.4);
    transition: transform 0.25s ease, color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.4);
    background: rgba(12, 15, 32, 0.65);
}

.card:hover::after {
    transform: translate(2px, -2px);
    color: var(--text-primary);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Ensure h2 cards look identical to div cards */
h2.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 280px;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    gap: 18px;
}

footer nav {
    display: inline;
}

footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

@media (max-width: 960px) {
    body {
        padding: 32px 20px;
    }

    .page {
        padding: 40px clamp(20px, 8vw, 48px);
        gap: 60px;
    }

    main {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .cards {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .card {
        flex: 1;
        min-width: min(260px, 100%);
    }
}

@media (max-width: 640px) {
    body {
        padding: 20px 16px;
    }

    .page {
        border-radius: 24px;
        min-height: calc(100vh - 40px);
        gap: 48px;
    }

    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .brand {
        font-size: 0.8rem;
    }

    .hero-nav {
        flex-shrink: 0;
    }

    .hero-nav .nav-links {
        gap: 8px;
    }

    .hero-eyebrow {
        font-size: 0.65rem;
        gap: 0.35rem;
        letter-spacing: 0.3em;
    }

    .eyebrow-link {
        padding: 0.2rem 0.35rem;
        font-size: 0.65rem;
    }

    .eyebrow-separator {
        font-size: 0.65rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        background: rgba(124, 92, 255, 0.15);
        border-radius: 8px;
        border: 1px solid rgba(124, 92, 255, 0.3);
    }

    .nav-links a:hover {
        background: rgba(124, 92, 255, 0.25);
        border-color: rgba(124, 92, 255, 0.5);
    }

    /* Hamburger menu responsive adjustments */
    .hamburger-btn {
        padding: 0.5rem 0.75rem;
    }

    .hamburger-icon {
        font-size: 1.2rem;
    }

    .dropdown-menu {
        min-width: 180px;
        right: -10px;
    }

    .dropdown-menu a {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }

    .dropdown-menu .menu-icon {
        font-size: 1rem;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        width: 100%;
    }

    .cta {
        width: 100%;
        justify-content: center;
    }
}

/* AUSTRA - Minimalist Modern */
.austra-glass {
    text-align: center;
    margin: 0.5rem 0 2rem;
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 200;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.849);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.austra-glass span {
    display: inline-block;
    text-shadow:
        0 0 40px rgba(124, 92, 255, 0.4),
        0 0 80px rgba(124, 92, 255, 0.2),
        0 0 120px rgba(124, 92, 255, 0.1);
    animation: subtleGlow 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
}

@keyframes subtleGlow {
    0%, 100% {
        text-shadow:
            0 0 40px rgba(124, 92, 255, 0.4),
            0 0 80px rgba(124, 92, 255, 0.2),
            0 0 120px rgba(124, 92, 255, 0.1);
    }
    50% {
        text-shadow:
            0 0 60px rgba(124, 92, 255, 0.6),
            0 0 100px rgba(124, 92, 255, 0.3),
            0 0 140px rgba(124, 92, 255, 0.15);
    }
}

@media (max-width: 960px) {
    .austra-glass {
        font-size: clamp(2.5rem, 10vw, 6rem);
        letter-spacing: 0.25em;
        margin: 1.5rem 0 1.5rem;
    }

    .austra-glass span {
        text-shadow:
            0 0 30px rgba(124, 92, 255, 0.4),
            0 0 60px rgba(124, 92, 255, 0.2);
    }

    @keyframes subtleGlow {
        0%, 100% {
            text-shadow:
                0 0 30px rgba(124, 92, 255, 0.4),
                0 0 60px rgba(124, 92, 255, 0.2);
        }
        50% {
            text-shadow:
                0 0 45px rgba(124, 92, 255, 0.6),
                0 0 80px rgba(124, 92, 255, 0.3);
        }
    }
}

@media (max-width: 640px) {
    .austra-glass {
        font-size: clamp(3rem, 15vw, 6rem);
        letter-spacing: 0.15em;
        margin: 1.5rem 0 1rem;
        padding: 0 1rem;
    }

    .austra-glass span {
        text-shadow:
            0 0 20px rgba(124, 92, 255, 0.4),
            0 0 40px rgba(124, 92, 255, 0.2);
    }

    @keyframes subtleGlow {
        0%, 100% {
            text-shadow:
                0 0 20px rgba(124, 92, 255, 0.4),
                0 0 40px rgba(124, 92, 255, 0.2);
        }
        50% {
            text-shadow:
                0 0 30px rgba(124, 92, 255, 0.6),
                0 0 60px rgba(124, 92, 255, 0.3);
        }
    }
}

/* AUSTRA Divider */
.austra-divider {
    width: 100%;
    max-width: 600px;
    height: 1px;
    margin: 2rem auto;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(124, 92, 255, 0.3) 20%,
        rgba(124, 92, 255, 0.5) 50%,
        rgba(124, 92, 255, 0.3) 80%,
        transparent
    );
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.2);
}

@media (max-width: 960px) {
    .austra-divider {
        max-width: 450px;
        margin: 1.5rem auto;
    }
}

@media (max-width: 640px) {
    .austra-divider {
        max-width: 80%;
        margin: 1rem auto;
    }
}
