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

:root {
    --color-bg-primary: #f5f5f5;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-accent: #3b82f6;
    --shadow-premium: 0 20px 50px -15px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 1);
    --glass-border: #d1d5db;
}

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

body {
    background-color: var(--color-bg-primary);
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--color-text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Background Orbs --- */
.orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    mix-blend-mode: multiply;
    opacity: 0.6;
    animation: float-orb 18s ease-in-out infinite;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: rgba(37, 99, 235, 0.12);
}

.orb-2 {
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(107, 114, 128, 0.1);
    animation-delay: 2s;
}

.orb-3 {
    bottom: -10%;
    left: 20%;
    width: 700px;
    height: 700px;
    background: rgba(2, 132, 199, 0.12);
    animation-delay: 4s;
}

@keyframes float-orb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: var(--color-text-primary);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: 40px;
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 48px;
}

.logo-beta {
    position: absolute;
    top: -12px;
    right: 0;
    background: #3b82f6;
    color: white;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transform: rotate(12deg);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.signature {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
    position: absolute;
    bottom: -18px;
    right: 40px;
    transform: rotate(-3deg);
    white-space: nowrap;
}

/* --- Interstitial CTAs --- */
.interstitial-cta {
    padding: 3rem 10%;
    text-align: center;
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.02), transparent);
}

.btn-cta {
    display: inline-block;
    background: #1e293b;
    color: white !important;
    padding: 1.5rem 3.5rem;
    border-radius: 24px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cta:hover {
    background: #000;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-text-primary);
    color: white !important;
    padding: 0.75rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    line-height: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn-primary:hover {
    background: black;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
}

.pg-btn-large {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #2563eb 100%) !important;
    color: white !important;
    padding: 1.25rem 2rem !important;
    border-radius: 16px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-align: center !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.5) !important;
    border: none !important;
    cursor: pointer !important;
}

.pg-btn-large:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 20px 45px -10px rgba(59, 130, 246, 0.7) !important;
    filter: brightness(1.2);
}

/* --- Hero Section --- */
.hero {
    padding: 100px 10% 20px;
    /* Reduced bottom and top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.hero-top-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Asymmetric split */
    gap: 2rem;
    align-items: flex-end;
    /* Align title and desc bodies */
    max-width: 1400px;
    width: 100%;
    margin-bottom: 2rem;
}

.hero-title-side {
    text-align: left;
}

.hero-title-side h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 200;
    line-height: 1;
    color: #111827;
}

.hero-title-side h1 b {
    font-weight: 700;
}

.hero-desc-side {
    text-align: left;
    padding-bottom: 0.5rem;
    /* Optical alignment with large title */
}

.hero-desc-side .badge {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.hero-desc-side p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 450px;
    font-weight: 300;
}

/* --- AI Studio Playground --- */
.playground-container {
    position: relative;
    z-index: 20;
    /* Increased to stay above ecosystem blocks */
    width: 100%;
    max-width: 1200px;
    /* Enlarged form container */
    margin: 0 auto;
}

.playground-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 40px;
    padding: 3.5rem;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 600px;
    /* Slightly taller for more content */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Title stays at top */
    align-items: stretch;
    overflow: visible;
}

.pg-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2.5rem;
    text-align: left;
    position: static;
}

/* --- Incorporated Suggestions (Inside Card) --- */
.pg-suggestions-incorporated {
    margin-bottom: 2rem;
    text-align: left;
}

.pg-suggestions-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.pg-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pg-pill {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.pg-pill:hover {
    background: white;
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.pg-label {
    width: 100%;
    /* Ensure label doesn't shrink */
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.pg-textarea-wrapper {
    width: 100%;
    position: relative;
    background: #f8fafc;
    border-radius: 24px;
    padding: 2.5rem;
    /* Larger padding for text side */
    transition: all 0.3s;
    border: 1px solid #cbd5e1;
}

.pg-textarea-wrapper:focus-within {
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

textarea#pg-prompt {
    width: 100%;
    min-height: 200px;
    /* Taller prompt area (+40%) */
    border: none !important;
    background: transparent !important;
    font-size: 1.5rem !important;
    /* Slightly larger input text */
    font-weight: 350 !important;
    color: #1e293b !important;
    resize: none !important;
    font-family: inherit !important;
    outline: none !important;
    line-height: 1.5 !important;
    text-align: left;
}

.pg-textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pg-footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

#pg-char-count {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    margin-top: 4px;
}

#pg-free-label {
    transition: opacity 0.3s ease;
}

#pg-gating-notice {
    font-size: 13px;
    /* Slightly larger for readability */
    color: #ef4444;
    /* red-500 */
    font-weight: 650;
    margin-bottom: 2px;
    text-align: left;
    animation: pg-fade-in 0.3s ease;
}

.pg-btn-icon {
    min-width: 80px;
    width: auto;
    padding: 0 1.8rem !important;
    height: 64px;
    background: #1e293b !important;
    color: white !important;
    border: none !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.pg-btn-icon span {
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pg-btn-icon:hover:not(:disabled) {
    background: #000 !important;
    transform: scale(1.05) !important;
}

.pg-btn-icon:disabled {
    background: #cbd5e1 !important;
    color: #94a3b8 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

/* Floating Badges */
.pg-floating-badge {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #f1f5f9;
    z-index: 20;
    animation: pg-float 4s ease-in-out infinite;
}

.pg-badge-top {
    top: -25px;
    right: -45px;
}

/* Wider badges */
.pg-badge-bottom {
    bottom: -25px;
    left: -45px;
    animation-delay: 1s;
}

@keyframes pg-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.pg-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.pg-bg-emerald {
    background: #ecfdf5;
    color: #059669;
}

.pg-bg-indigo {
    background: #eef2ff;
    color: #4f46e5;
}

.pg-badge-text {
    text-align: left;
}

.pg-badge-text b {
    display: block;
    font-size: 11px;
    color: #1e293b;
}

.pg-badge-text span {
    display: block;
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* States (Loader/Result) */
#pg-input-state,
#pg-loader-state,
#pg-result-state {
    padding: 0;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically within state */
    align-items: stretch;
    /* Stretch children horizontally by default */
    width: 100%;
    flex-grow: 1;
}

#pg-input-state {
    display: flex;
    /* Visible by default */
}

#pg-loader-state,
#pg-result-state {
    display: none;
    /* Controlled via JS */
    align-items: center;
    /* Keep these centered horizontally */
}

.pg-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid #f1f5f9;
    border-top-color: #3b82f6;
    border-radius: 50%;
    margin: 0 auto 3rem;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

#pg-result-state .pg-result-header {
    margin-bottom: 4rem;
    text-align: center;
}

#pg-result-state h3 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -1.5px;
    animation: pg-fade-in 0.6s ease;
}

#pg-result-state p {
    font-size: 1.2rem;
    color: #475569;
    font-weight: 500;
    letter-spacing: -0.2px;
}

@keyframes success-pop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#pg-result-state p {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: -0.3px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pg-code-block {
    background: #0b0f1a;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.12) 1px, transparent 0);
    background-size: 24px 24px;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pg-code-block.pg-fade-in {
    opacity: 1;
    transform: translateY(0);
}

pre#pg-code-content {
    color: #cbd5e1;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    min-height: 500px;
    max-height: 600px;
    overflow: hidden;
}

.pg-code-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(11, 15, 26, 0.4) 30%, #0b0f1a 85%, #0b0f1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 10;
}

.pg-overlay-content {
    background: rgba(11, 15, 26, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 2.75rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    width: 100%;
    max-width: 500px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(20px);
}

.pg-overlay-content.pg-state-active {
    opacity: 1;
    transform: translateY(0);
}

.pg-overlay-text {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pg-overlay-text p {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.pg-overlay-text span {
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 400;
    display: block;
    margin-top: 0.25rem;
}

/* Professional Reward Card Styling */
.pg-reward-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.pg-reward-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.pg-reward-icon {
    width: 52px;
    height: 52px;
    background: #f1f5f9;
    color: #4f46e5;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.pg-reward-text-group {
    display: flex;
    flex-direction: column;
}

.pg-reward-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: #4f46e5;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.pg-reward-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.pg-reward-value {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.pg-success-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.pg-success-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.pg-claim-details {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 1.5rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Premium Claim Button */
.pg-btn-premium {
    width: 100%;
    background: #4f46e5;
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

.pg-btn-premium:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.4);
}

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

.pg-success-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

.pg-btn-download {
    width: 100%;
    background: #1e293b;
    color: white;
    padding: 1.1rem 2rem;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pg-btn-download:hover {
    background: black;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.pg-btn-download svg {
    transition: transform 0.3s;
}

.pg-btn-download:hover svg {
    transform: translateY(2px);
}

/* Pulse Animation */
.pg-btn-pulse {
    animation: pg-pulse-glow 2s infinite;
}

@keyframes pg-pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 30px 10px rgba(59, 130, 246, 0.3);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
        transform: scale(1);
    }
}

/* Loading Message Transitions */
#pg-current-msg {
    transition: opacity 0.8s ease-in-out;
}

.pg-fade-out {
    opacity: 0;
}

/* --- Features (Bento Grid) --- */
/* --- Features (Bento Grid) --- */
.features {
    padding: 4rem 10% 6rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 40px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.05);
}

.bento-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.1);
}

.bento-main {
    grid-column: span 2;
    grid-row: span 2;
    background: #ffffff;
    border: 1px solid #d1d5db;
}

.bento-tall {
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 3;
    flex-direction: row !important;
    align-items: center;
    gap: 2rem;
}

.bento-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
}

.bento-card p {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.5;
}

.bento-card .icon {
    width: 60px;
    height: 60px;
    background: #f8fafc;
    color: #3b82f6;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.bento-wide .icon {
    margin-bottom: 0;
}

.icon-red {
    color: #ef4444 !important;
}

.icon-emerald {
    color: #10b981 !important;
}

.icon-indigo {
    color: #6366f1 !important;
}

.icon-amber {
    color: #f59e0b !important;
}

.bento-badge {
    align-self: center;
    text-align: center;
    margin: 1.5rem auto 0;
    padding: 6px 14px;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Shared Section Styles --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    color: #1e293b;
    line-height: 1.1;
}

.section-header h2 b {
    font-weight: 800;
}

.section-header p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 650px;
    margin: 1.5rem auto 0;
}

.steps-container,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Glass Sections (Security etc) --- */
.glass-section {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 48px;
    padding: 6rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08);
}

.icon-large {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.glass-section h2 {
    font-size: 3.5rem;
    font-weight: 200;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.glass-section h2 b {
    font-weight: 800;
}

.glass-section p {
    font-size: 1.4rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 4rem;
    font-weight: 300;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: left;
}

.sec-item h5 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
}

.sec-item p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

/* --- Step Cards --- */
.step {
    background: white;
    border: 1px solid #d1d5db;
    padding: 8rem 4rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.pricing-card {
    background: white;
    border: 1px solid #d1d5db;
    padding: 4rem 2.5rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.step:hover,
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08);
}

.step-num {
    width: 48px;
    height: 48px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

.step h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: #1e293b;
}

.step p {
    font-size: 1.1rem;
    color: #64748b;
}

/* --- Other Sections --- */
.how-it-works,
.security,
.pricing {
    padding: 6rem 10%;
}

.pricing {
    padding: 6rem 10%;
}

.step,
.pricing-card {
    background: white;
    border: 1px solid #d1d5db;
    padding: 4rem;
    border-radius: 48px;
    transition: all 0.3s;
}

.step:hover,
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.pg-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 3.5rem auto 0;
    /* Centered reset button */
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
}

.pg-link-btn:hover {
    background: white;
    border-color: #3b82f6;
    /* Accent color on hover */
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* --- Custom Modal --- */
.pg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pg-modal-active {
    opacity: 1;
}

.pg-modal-card {
    background: white;
    padding: 3rem;
    border-radius: 32px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #d1d5db;
}

.pg-modal-active .pg-modal-card {
    transform: translateY(0) scale(1);
}

.pg-modal-icon {
    width: 60px;
    height: 60px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    margin: 0 auto 1.5rem;
    border: 2px solid #fee2e2;
}

.pg-modal-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
}

.pg-modal-card p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.pg-modal-card .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
}

/* --- Pricing Section --- */
.pricing {
    padding: 10rem 10%;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    padding: 4rem 2.5rem 3.5rem;
    border-radius: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08);
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 2.5rem;
    width: 40px;
    height: 4px;
    background: #3b82f6;
    border-radius: 0 0 4px 4px;
    opacity: 0.3;
    transition: width 0.4s;
}

.pricing-card:hover::before {
    width: 80px;
    opacity: 1;
}

.pricing-card.featured-tier {
    border: 2px solid #3b82f6;
    transform: scale(1.02);
}

.pricing-card.featured-tier:hover {
    transform: translateY(-10px) scale(1.02);
}

.price-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.price-header h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 4.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -3px;
}

.price-token {
    font-size: 0.95rem;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    justify-content: center;
}

.power-discounted {
    display: none;
    color: #4f46e5;
}

.power-unit {
    display: none;
    font-size: 10px;
    font-weight: 800;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -5px;
    margin-bottom: 10px;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    justify-content: center;
}

.power-discounted {
    display: none;
    color: #4f46e5;
}

.power-unit {
    display: none;
    font-size: 10px;
    font-weight: 800;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -5px;
    margin-bottom: 10px;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    flex-grow: 1;
}

.price-features li {
    padding: 0.8rem 0;
    color: #64748b;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features li::before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233b82f6' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.btn-claim {
    display: block;
    width: 100%;
    padding: 1.25rem;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    font-size: 1.05rem;
}

.btn-claim-white {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-claim-white:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

.btn-claim-dark {
    background: #1e293b;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-claim-dark:hover {
    background: black;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
}

.badge-top {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 22px;
    border-radius: 100px;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
    z-index: 10;
    white-space: nowrap;
}

/* --- Power Card Specifics --- */
.lp-qty-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 18px;
    margin-bottom: 2rem;
    border: 1px solid #f1f5f9;
}

.lp-qty-label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.lp-qty-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lp-qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    color: #64748b;
    transition: all 0.2s;
}

.lp-qty-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

/* Professional Reset Button */
#pg-reset-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
}

#pg-reset-btn:hover {
    color: #4f46e5;
    background: #f1f5f9;
    border-radius: 10px;
}

.lp-qty-val {
    font-weight: 800;
    color: #1e293b;
    min-width: 15px;
    text-align: center;
}

/* --- Footer --- */
footer {
    padding: 6rem 10% 4rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.footer-copy {
    color: #64748b;
    font-size: 0.9rem;
}

/* --- Trust Marquee --- */
.trust-marquee-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 3rem 0;
}

.trust-marquee {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
    z-index: 5;
    background: transparent;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    gap: 1.5rem;
    animation: marquee-scroll 40s linear infinite;
    width: max-content;
    padding-left: 1.5rem;
}

.marquee-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 1rem 1.8rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03);
}

.marquee-item svg {
    color: #3b82f6;
    stroke-width: 2.5px;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.trust-marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* --- Ecosystem Section --- */
.ecosystem-section {
    padding: 3rem 10% 6rem;
    position: relative;
    z-index: 10;
    margin-top: 0;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ecosystem-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    padding: 4rem;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.05);
}

.ecosystem-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.08);
}

.ecosystem-icon {
    width: 64px;
    height: 64px;
    background: #f8fafc;
    color: #3b82f6;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

#pg-result-state .pg-result-header {
    width: 100%;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 1rem;
    text-align: left;
}

.pg-header-content {
    flex: 1;
}

#pg-result-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.5rem;
    /* Space for descenders like 'g' */
    letter-spacing: -2px;
    line-height: 1.25;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: header-slide-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes header-slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#pg-result-desc {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 450;
    margin: 0;
    letter-spacing: -0.3px;
    transition: all 0.5s ease;
}

.pg-dots-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0.8rem;
    min-width: 60px;
    /* Prevent jumping during swap */
}

.pg-dots {
    display: flex;
    gap: 6px;
    padding: 12px 20px;
    background: #f1f5f9;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.pg-success-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #10b981;
    /* Emerald 500 */
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    animation: success-check-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes success-check-pop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pg-dots span {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    opacity: 0.3;
}

.pg-dots span:nth-child(1) {
    animation: pg-dot-fade 1.5s infinite 0s;
}

.pg-dots span:nth-child(2) {
    animation: pg-dot-fade 1.5s infinite 0.3s;
}

.pg-dots span:nth-child(3) {
    animation: pg-dot-fade 1.5s infinite 0.6s;
}

@keyframes pg-dot-fade {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.ecosystem-icon.icon-indigo {
    color: #4f46e5;
}

.ecosystem-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.ecosystem-card p {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.ecosystem-badge {
    padding: 8px 16px;
    background: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    border: 1px solid #d1d5db;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-top-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .pg-floating-badge {
        display: none !important;
    }

    .playground-container {
        margin-top: 2rem;
    }

    .nav-links {
        display: none;
    }

    .signature {
        display: none;
    }
}

@media (max-width: 768px) {
    nav {
        position: relative !important;
        padding: 0.5rem 5% !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .nav-links {
        display: none !important;
    }

    .signature,
    .logo-beta {
        display: none !important;
    }

    .logo {
        font-size: 1.3rem !important;
    }

    .btn-primary {
        padding: 0.65rem 1.4rem !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
        min-width: 110px !important;
    }

    .hero {
        padding: 0.25rem 5% 10px !important;
        /* Balanced top padding for relative nav */
    }

    .hero-top-split {
        margin-bottom: 1rem !important;
        gap: 1rem !important;
    }

    .hero-title-side h1 {
        font-size: 2.2rem !important;
        text-align: center !important;
        line-height: 1.0 !important;
    }

    .hero-desc-side .badge {
        display: none !important;
    }

    .hero-desc-side {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 0.5rem;
    }

    .hero-desc-side p {
        font-size: 1.0rem !important;
        text-align: center !important;
        max-width: 350px !important;
        margin-top: 0.25rem !important;
    }

    /* Playground Robust Stacking */
    .playground-container {
        margin-top: 0.5rem !important;
        width: 100% !important;
    }

    .playground-card {
        padding: 4rem 1.5rem 2.5rem !important;
        /* More top padding for title safety */
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        /* Remove ALL fixed constraints */
        justify-content: flex-start !important;
        /* Start from top to avoid bleed */
        overflow: visible !important;
    }

    .pg-card-title {
        font-size: 1.4rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }

    /* Section Spacing Polish */
    .features,
    .how-it-works,
    .security,
    .pricing {
        padding: 4rem 5% !important;
    }

    .ecosystem-section {
        padding: 2rem 5% 4rem !important;
    }

    .section-header {
        margin-bottom: 3rem !important;
    }

    .section-header p {
        font-size: 1.1rem !important;
        margin-top: 1rem !important;
    }

    .pricing-grid,
    .ecosystem-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
        gap: 1.5rem !important;
    }

    .bento-card {
        padding: 2.5rem 1.5rem !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .bento-content {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .bento-card .icon {
        margin: 0 auto 1.5rem !important;
    }

    .bento-card h3 {
        font-size: 1.6rem !important;
        margin-bottom: 1rem !important;
    }

    .bento-card p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    .bento-main,
    .bento-tall,
    .bento-wide {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .bento-wide .bento-text {
        text-align: center !important;
    }

    /* Steps Polish */
    .steps-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .step {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 4rem 2rem !important;
    }

    .step-num {
        margin: 0 auto 1.5rem !important;
    }

    .step h4 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .ecosystem-card {
        padding: 2.5rem 1.5rem !important;
        text-align: center !important;
        align-items: center !important;
        border-radius: 32px !important;
    }

    .ecosystem-icon {
        margin-bottom: 1.5rem !important;
    }

    .ecosystem-card h3 {
        font-size: 1.8rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
        letter-spacing: -1px !important;
    }

    .ecosystem-card p {
        font-size: 1.05rem !important;
        text-align: center !important;
        margin-bottom: 2rem !important;
        line-height: 1.5 !important;
    }

    .glass-section {
        padding: 3rem 1.5rem !important;
        text-align: center !important;
    }

    .glass-section h2 {
        font-size: 2.2rem !important;
    }

    .security-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        margin-top: 3rem !important;
    }

    .sec-item {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .sec-item h5 {
        font-size: 1.3rem !important;
        margin-bottom: 0.75rem !important;
    }

    .pricing-card {
        padding: 3rem 2rem !important;
    }

    footer {
        padding: 4rem 10% 3rem !important;
    }

    .interstitial-cta {
        padding: 4rem 5% !important;
    }

    .btn-cta {
        padding: 1.25rem 2rem !important;
        font-size: 1.05rem !important;
        border-radius: 18px !important;
        width: 100% !important;
        max-width: 400px !important;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.15rem !important;
    }

    .hero {
        padding: 0.5rem 5% 10px !important;
    }

    .hero-top-split {
        margin-bottom: 0.5rem !important;
    }

    .hero-title-side h1 {
        font-size: 1.75rem !important;
    }

    .hero-desc-side p {
        display: block !important;
        font-size: 0.95rem !important;
        /* Slightly smaller for tight mobile screens */
        margin-top: 0.5rem !important;
    }

    .pg-suggestions-incorporated {
        display: block !important;
        margin-bottom: 1.5rem !important;
    }

    .playground-container {
        margin-top: 0 !important;
    }

    .playground-card {
        padding: 2rem 1.25rem 2.5rem !important;
        min-height: auto !important;
        /* Allow card to grow with content on mobile */
    }

    .pg-card-title {
        font-size: 1.2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .pg-pill {
        padding: 5px 10px !important;
        font-size: 10px !important;
    }

    textarea#pg-prompt {
        font-size: 1.1rem !important;
        min-height: 140px !important;
    }

    .pg-btn-icon {
        width: 65px !important;
        height: 48px !important;
        font-size: 0.85rem !important;
    }

    /* Code Result Page Mobile Fix */
    #pg-result-state {
        padding: 0;
        text-align: center;
        flex-direction: column;
        justify-content: flex-start !important;
        align-items: stretch;
        height: auto !important;
        min-height: auto !important;
        width: 100% !important;
        /* Ensure full width on mobile */
    }

    #pg-result-state h3 {
        font-size: 1.5rem !important;
        /* Shrunk from 2.2rem for better fit */
        margin-bottom: 1rem !important;
        /* Shrunk from 1.5rem */
    }

    .pg-spinner {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 1.5rem !important;
    }

    .pg-overlay-content {
        padding: 1.25rem 1rem !important;
        border-radius: 24px !important;
        width: 100% !important;
    }

    .pg-overlay-text {
        margin-bottom: 1.5rem !important;
    }

    .pg-overlay-text p {
        font-size: 1.2rem !important;
    }

    .pg-current-msg {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }

    .pg-loader-text p {
        font-size: 0.9rem !important;
    }

    .pg-result-header {
        flex-shrink: 0 !important;
        /* Prevent header from being crushed in Firefox */
        width: 100% !important;
    }

    .pg-code-block {
        padding: 0.75rem !important;
        border-radius: 24px !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 1rem !important;
        /* Drastically reduced top padding */
        padding-bottom: 1rem !important;
        /* Drastically reduced bottom margin for compactness */
        /* Increased padding for fluid growth */
        overflow: visible !important;
        height: auto !important;
        width: 100% !important;
        /* Ensure it doesn't exceed container */
    }

    pre#pg-code-content {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        min-height: auto !important;
        max-height: 180px !important;
        /* Limit height to prevent vertical bloat */
        overflow-y: auto !important;
        /* Allow scrolling within the limited height */
        margin-bottom: 1rem !important;
        /* Removed sacrificial height for more compact layout */
    }

    .pg-code-overlay {
        position: relative !important;
        inset: auto !important;
        padding: 1rem !important;
        /* Aggressively tightened padding */
        background: #0b0f1a !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 20 !important;
        margin-top: 0 !important;
        /* Removed negative margin */
    }

    .pg-overlay-content {
        padding: 1.25rem 1rem !important;
        border-radius: 24px !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .pg-reward-card {
        padding: 1rem 0.75rem !important;
        /* Further shrunk padding */
        margin-bottom: 0.75rem !important;
        /* Further shrunk margin */
        width: 100% !important;
    }

    .pg-reward-content {
        flex-direction: column !important;
        gap: 0.75rem !important;
        /* Shrink gap */
        text-align: center !important;
    }

    .pg-reward-icon {
        width: 40px !important;
        height: 40px !important;
        margin: 0 auto !important;
    }

    .pg-reward-title {
        font-size: 1.05rem !important;
        /* Shrink title */
    }

    .pg-reward-value {
        font-size: 0.7rem !important;
        /* Shrink value */
    }

    .pg-success-title {
        font-size: 1.15rem !important;
        /* Shrink title */
    }

    .pg-success-subtitle {
        font-size: 0.8rem !important;
        /* Shrink subtitle */
        margin-bottom: 1rem !important;
    }

    .pg-btn-premium {
        padding: 0.7rem 1rem !important;
        /* Narrower button padding */
        font-size: 0.9rem !important;
        /* Smaller button text */
    }

    .pg-claim-details {
        display: none !important;
        /* Hide redundant footer info on mobile */
    }
}