:root {
    --bg-primary: #1a1a2c;
    --bg-secondary: #141422;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d0;
    --text-tertiary: #7a7a96;
    --gradient-main: linear-gradient(90deg, #FB8466 0%, #BD5BD4 33%, #7473FA 66%, #53B2FA 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.g-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.g-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 44, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.g-nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.g-logo img {
    height: 32px;
}

.g-nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.g-btn-ghost {
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.g-btn-ghost:hover, .g-btn-ghost:active {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.g-btn-primary {
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--gradient-main);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.g-btn-primary:hover, .g-btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116, 115, 250, 0.4);
}

/* Hero */
.g-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

.g-hero-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    height: 400px;
    background: var(--gradient-main);
    filter: blur(120px);
    opacity: 0.2;
    pointer-events: none;
}

.g-hero .g-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.g-hero-logo {
    margin-bottom: 32px;
}

.g-hero-logo img {
    width: 180px;
    filter: drop-shadow(0 15px 50px rgba(116, 115, 250, 0.4));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.g-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.g-gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g-hero > .g-container > p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 380px;
    margin-bottom: 32px;
    padding: 0 10px;
}

.g-btn-hero {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 18px 40px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(116, 115, 250, 0.4);
    animation: pulse 2s ease-in-out infinite;
    text-align: center;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(116, 115, 250, 0.4); }
    50% { box-shadow: 0 15px 50px rgba(116, 115, 250, 0.6); }
}

.g-btn-hero:hover, .g-btn-hero:active {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(116, 115, 250, 0.5);
}

.g-hero-login {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.g-hero-login a {
    color: #7473FA;
    font-weight: 600;
    margin-left: 6px;
    transition: color 0.2s;
    padding: 8px;
    display: inline-block;
}

.g-hero-login a:hover, .g-hero-login a:active {
    color: #53B2FA;
}

/* Footer */
.g-footer {
    background: var(--bg-secondary);
    padding: 40px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.g-footer-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.g-footer-brand {
    text-align: center;
}

.g-footer-brand img {
    height: 28px;
    margin: 0 auto 12px;
}

.g-footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.g-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.g-footer-col h5 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.g-footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 6px 0;
    transition: color 0.2s;
}

.g-footer-col a:hover, .g-footer-col a:active {
    color: var(--text-primary);
}

.g-footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.g-footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

/* Tablet and up */
@media (min-width: 600px) {
    .g-nav-container {
        padding: 14px 20px;
    }

    .g-logo img {
        height: 36px;
    }

    .g-hero {
        padding: 100px 20px 60px;
    }

    .g-hero-logo img {
        width: 200px;
    }

    .g-hero h1 {
        font-size: 2.5rem;
    }

    .g-hero > .g-container > p {
        font-size: 1.1rem;
        max-width: 450px;
    }

    .g-btn-hero {
        max-width: 320px;
        padding: 20px 50px;
        font-size: 1.2rem;
    }

    .g-footer-main {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
    }

    .g-footer-brand {
        text-align: left;
        max-width: 250px;
    }

    .g-footer-brand img {
        margin: 0 0 12px;
    }

    .g-footer-nav {
        grid-template-columns: repeat(4, auto);
        gap: 40px;
    }
}

/* Desktop */
@media (min-width: 900px) {
    .g-hero-logo img {
        width: 220px;
    }

    .g-hero h1 {
        font-size: 3rem;
    }

    .g-hero > .g-container > p {
        font-size: 1.15rem;
        max-width: 480px;
        margin-bottom: 40px;
    }

    .g-btn-hero {
        max-width: 340px;
        padding: 22px 60px;
        font-size: 1.25rem;
    }

    .g-footer {
        padding: 50px 0 0;
    }

    .g-footer-nav {
        gap: 60px;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .g-nav-container {
        padding: 10px 12px;
    }

    .g-logo img {
        height: 28px;
    }

    .g-btn-ghost {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .g-btn-primary {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .g-hero-logo img {
        width: 140px;
    }

    .g-hero h1 {
        font-size: 1.75rem;
    }

    .g-hero > .g-container > p {
        font-size: 0.95rem;
    }

    .g-btn-hero {
        padding: 16px 32px;
        font-size: 1.05rem;
    }
}

/* Fix for iOS viewport height */
@supports (-webkit-touch-callout: none) {
    .g-hero {
        min-height: -webkit-fill-available;
    }
}
