/* ========================================
   RenderCAD SEO Pages - Final Clean Design
   Dark Glassmorphism with Proper Buttons
   ======================================== */

/* ========== RESET & VARIABLES ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #0a0a0f;
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.45);
    --anim--hover-time: 400ms;
    --anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
    --angle-1: -75deg;
    --angle-2: -45deg;
}

/* ========== BASE ========== */
html, body {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    background: var(--bg-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-font-smoothing: antialiased;
}

html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

/* Background effects */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(88, 101, 242, 0.12), transparent 70%),
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(0, 212, 255, 0.08), transparent 60%),
        radial-gradient(ellipse 50% 50% at 100% 100%, rgba(120, 119, 198, 0.08), transparent 60%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

#site-container,
#main-content {
    position: relative;
    z-index: 1;
}

/* ========== TYPOGRAPHY ========== */
@font-face {
    font-family: 'Proxima Nova Thin';
    src: url('/fonts/proxima-nova-thin.otf') format('opentype');
    font-weight: 300;
    font-display: swap;
}

h1 {
    font-family: 'Proxima Nova Thin', sans-serif;
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

h1 .tm {
    font-size: 0.35em;
    vertical-align: super;
    opacity: 0.6;
    margin-left: 0.1em;
}

h2 {
    font-size: clamp(1.875rem, 4.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ========== PRISMATIC BUTTONS ========== */
.prismatic-button-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 999px;
}

.prismatic-button-wrapper .button-shadow {
    --shadow-cuttoff-fix: 2em;
    position: absolute;
    width: calc(100% + var(--shadow-cuttoff-fix));
    height: calc(100% + var(--shadow-cuttoff-fix));
    top: calc(0% - var(--shadow-cuttoff-fix) / 2);
    left: calc(0% - var(--shadow-cuttoff-fix) / 2);
    filter: blur(10px);
    pointer-events: none;
    transition: filter var(--anim--hover-time) var(--anim--hover-ease);
}

.prismatic-button-wrapper .button-shadow::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    top: calc(var(--shadow-cuttoff-fix) - 0.5em);
    left: calc(var(--shadow-cuttoff-fix) - 0.875em);
    padding: 0.125em;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

.prismatic-button-wrapper button,
.prismatic-button-wrapper a {
    all: unset;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 54px;
    padding: 0 1.75rem;
    background: linear-gradient(-75deg, rgba(255,255,255,0.05), rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border-radius: 999px;
    box-shadow:
        inset 0 1px 1px rgba(0, 0, 0, 0.1),
        inset 0 -1px 1px rgba(255, 255, 255, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px inset rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: white;
    white-space: nowrap;
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

.prismatic-button-wrapper button:hover,
.prismatic-button-wrapper a:hover {
    transform: scale(0.98);
    box-shadow:
        inset 0 1px 1px rgba(0, 0, 0, 0.1),
        inset 0 -1px 1px rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.25),
        0 0 0 1px inset rgba(255, 255, 255, 0.2);
}

.button-logo {
    width: 1.125rem;
    height: 1.125rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* ========== NAV BUTTONS ========== */
.nav-button-wrapper {
    display: inline-block;
    position: relative;
}

.nav-button-wrapper a {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 1.25rem;
    background: linear-gradient(-75deg, rgba(255,255,255,0.05), rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border-radius: 999px;
    box-shadow:
        inset 0 1px 1px rgba(0, 0, 0, 0.1),
        inset 0 -1px 1px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 0 1px inset rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: white;
    white-space: nowrap;
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

.nav-button-wrapper a:hover {
    transform: scale(0.98);
    box-shadow:
        inset 0 1px 1px rgba(0, 0, 0, 0.1),
        inset 0 -1px 1px rgba(255, 255, 255, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.25),
        0 0 0 1px inset rgba(255, 255, 255, 0.2);
}

/* ========== LAYOUT ========== */
.nav-buttons {
    display: flex;
    gap: 0.75rem;
}

#header-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 1.5rem 1.5rem;
    position: relative;
}

.hero-section {
    text-align: center;
    max-width: 750px;
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 1rem auto 0;
    max-width: 600px;
}

/* ========== SECTIONS ========== */
section {
    padding: clamp(2rem, 5vh, 3rem) 0;
}

.section-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

/* ========== GLASS PANELS ========== */
.glass-panel {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

/* ========== BENEFITS ========== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.benefit-card {
    text-align: center;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.benefit-card:nth-child(1) .benefit-icon { background: linear-gradient(135deg, #f59e0b, #f97316); }
.benefit-card:nth-child(2) .benefit-icon { background: linear-gradient(135deg, #10b981, #059669); }
.benefit-card:nth-child(3) .benefit-icon { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.benefit-card:nth-child(4) .benefit-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.benefit-card:nth-child(5) .benefit-icon { background: linear-gradient(135deg, #ec4899, #db2777); }
.benefit-card:nth-child(6) .benefit-icon { background: linear-gradient(135deg, #6366f1, #4f46e5); }

.benefit-card h5 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.benefit-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ========== VIDEO ========== */
.video-title {
    text-align: center;
    margin: clamp(3.5rem, 8vh, 5rem) 1.5rem 1rem;
}

.video-subtitle {
    text-align: center;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
}

.demo-video {
    width: 100%;
    max-width: 880px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== STEPS ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.step-card {
    text-align: center;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #0284c7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.step-card h5 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ========== CTA SECTION ========== */
.cta-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========== FOOTER ========== */
.seo-footer {
    padding: 3.5rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.footer-logo {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.footer-brand p {
    font-family: 'Proxima Nova Thin', sans-serif;
    font-size: 1.1875rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.footer-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    #header-section {
        min-height: 65vh;
        padding: 4.5rem 1.5rem 2.5rem;
    }

    .benefits-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.875rem;
    }

    .prismatic-button-wrapper {
        width: 100%;
        max-width: 280px;
    }

    .prismatic-button-wrapper button,
    .prismatic-button-wrapper a {
        width: 100%;
    }

    section {
        padding: 2.75rem 0;
    }
}

@media (max-width: 480px) {
    .nav-button-wrapper a {
        height: 38px;
        padding: 0 1rem;
        font-size: 0.875rem;
    }

    .nav-buttons {
        gap: 0.625rem;
    }
}
