/* Construction-Grade Blueprint Palette */
:root {
    --blueprint-blue: #0A3161;
    --chalk-white: #F5F5F0;
    --safety-orange: #FF6B35;
    --pencil-graphite: #2C3E50;
    --paper-warmth: #F8F4E8;
    --blueprint-dark: #06203D;
    --chalk-shadow: #E0E0D8;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--blueprint-blue);
    color: var(--chalk-white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

/* Living Texture - Blueprint Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(245, 245, 240, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 245, 240, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, var(--blueprint-dark) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--safety-orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                width 0.15s ease, 
                height 0.15s ease,
                border-color 0.15s ease;
    mix-blend-mode: difference;
}

.cursor.hover {
    width: 50px;
    height: 50px;
    border-color: var(--chalk-white);
}

.cursor.active {
    transform: translate(-50%, -50%) scale(0.8);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--blueprint-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-line {
    width: 0;
    height: 2px;
    background: var(--safety-orange);
    margin-bottom: 2rem;
    transition: width 0.05s linear;
}

.loader-counter {
    font-family: 'Instrument Serif', serif;
    font-size: 4rem;
    font-weight: 400;
    color: var(--chalk-white);
    margin-bottom: 1rem;
}

.loader-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--chalk-shadow);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, var(--blueprint-blue) 0%, transparent 100%);
}

.nav-brand {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--chalk-white);
}

.nav-cta {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--chalk-white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--chalk-white);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-cta:hover {
    background: var(--chalk-white);
    color: var(--blueprint-blue);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--chalk-white);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.title-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.title-accent {
    color: var(--safety-orange);
    font-style: italic;
}

.hero-subhead {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--chalk-shadow);
    margin-bottom: 2.5rem;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.hero-subhead.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Site mockup SVGs */
.site-mockup {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

.hero-visual {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%) rotate(2.4deg);
    width: clamp(280px, 32vw, 440px);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s,
                transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}

.hero-visual.visible {
    opacity: 1;
    transform: translateY(-50%) rotate(2.4deg);
}

.hero-stamp {
    position: absolute;
    bottom: -40px;
    left: -50px;
    width: 160px;
    height: 160px;
    transform: rotate(-6deg);
    pointer-events: none;
    opacity: 0.92;
    animation: stamp-breathe 6s ease-in-out infinite;
}

@keyframes stamp-breathe {
    0%, 100% { transform: rotate(-6deg) scale(1); }
    50% { transform: rotate(-6deg) scale(1.04); }
}

@media (max-width: 1024px) {
    .hero-visual { display: none; }
}

/* Buttons */
.btn-primary {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--blueprint-blue);
    background: var(--safety-orange);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(20px);
}

.btn-primary.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary:hover {
    background: var(--chalk-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* Sections */
.section {
    padding: 8rem 2rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(245, 245, 240, 0.1);
}

.section-header {
    margin-bottom: 4rem;
}

.section-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--safety-orange);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--chalk-white);
}

.section-content {
    max-width: 900px;
}

.section-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--chalk-shadow);
    margin-bottom: 2rem;
}

/* Problem Section */
.comparison-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(245, 245, 240, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.comparison-item:hover {
    border-color: var(--safety-orange);
}

.comparison-item .site-mockup {
    margin-bottom: 1.25rem;
    border-radius: 4px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.comparison-item:hover .site-mockup {
    transform: translateY(-6px);
}

.comparison-item.featured {
    border-color: rgba(255, 107, 53, 0.4);
}

.comparison-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--chalk-shadow);
    display: block;
    text-align: center;
}

.comparison-item.featured .comparison-label {
    color: var(--safety-orange);
}

/* What You Get */
.feature-list {
    list-style: none;
}

.feature-item {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--chalk-shadow);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(245, 245, 240, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    color: var(--chalk-white);
    padding-left: 1rem;
    border-color: var(--safety-orange);
}

.feature-item::before {
    content: '→';
    margin-right: 1rem;
    color: var(--safety-orange);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pricing-card {
    padding: 2.5rem;
    border: 1px solid rgba(245, 245, 240, 0.1);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--safety-orange);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    border-color: var(--safety-orange);
    background: rgba(255, 107, 53, 0.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--safety-orange);
    color: var(--blueprint-blue);
    padding: 0.25rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.pricing-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--chalk-white);
    margin-bottom: 1rem;
}

.pricing-price {
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    font-weight: 500;
    color: var(--safety-orange);
    margin-bottom: 1rem;
}

.pricing-period {
    font-size: 1rem;
    color: var(--chalk-shadow);
}

.pricing-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--chalk-shadow);
    margin-bottom: 2rem;
}

.pricing-cta {
    width: 100%;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
}

/* How It Works */
.steps {
    display: grid;
    gap: 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    font-weight: 500;
    color: var(--safety-orange);
    line-height: 1;
    flex-shrink: 0;
}

.step-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--chalk-white);
    padding-top: 0.5rem;
}

/* Guarantee */
.guarantee-text {
    font-family: 'Instrument Serif', serif;
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    color: var(--chalk-white);
    line-height: 1.4;
    padding: 3rem;
    border-left: 4px solid var(--safety-orange);
    background: rgba(255, 107, 53, 0.05);
}

/* Examples */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.section.examples .section-content {
    max-width: 1200px;
}

.section.problem .section-content {
    max-width: 1100px;
}

.comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

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

.example-item .site-mockup {
    margin-bottom: 1rem;
    border-radius: 6px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.example-item:hover .site-mockup {
    transform: translateY(-8px) rotate(-0.4deg);
}

.example-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--chalk-shadow);
    display: block;
    text-align: center;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-item {
    padding: 2rem;
    border: 1px solid rgba(245, 245, 240, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--safety-orange);
    background: rgba(255, 107, 53, 0.02);
}

.faq-question {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--chalk-white);
    margin-bottom: 1rem;
}

.faq-answer {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--chalk-shadow);
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    border-top: 1px solid rgba(245, 245, 240, 0.1);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-tagline {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--chalk-white);
    margin-bottom: 1.25rem;
}

.footer-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--chalk-shadow);
    max-width: 460px;
    margin: 0 auto 2rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-name {
    display: block;
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--chalk-white);
    margin-bottom: 0.5rem;
}

.footer-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--chalk-shadow);
}

.footer-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--safety-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--chalk-white);
}

/* ===== Legal Pages ===== */
.legal-body {
    cursor: auto;
}

.legal-body .nav {
    background: linear-gradient(to bottom, rgba(10, 49, 97, 0.92) 0%, transparent 100%);
    backdrop-filter: blur(8px);
}

.nav-brand-link {
    text-decoration: none;
    color: inherit;
}

.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 12rem 2rem 8rem;
    position: relative;
    z-index: 1;
}

.legal-header {
    margin-bottom: 5rem;
    border-bottom: 1px solid rgba(245, 245, 240, 0.12);
    padding-bottom: 3rem;
}

.legal-kicker {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--safety-orange);
    margin-bottom: 2rem;
}

.legal-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.75rem, 6vw, 4.75rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--chalk-white);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.legal-title em {
    font-style: italic;
    color: var(--safety-orange);
}

.legal-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--chalk-shadow);
    margin: 0;
}

.legal-section {
    margin-bottom: 3rem;
    scroll-margin-top: 6rem;
}

.legal-section-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--chalk-white);
    margin-bottom: 1rem;
    line-height: 1.3;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.legal-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--safety-orange);
    flex-shrink: 0;
    min-width: 3.5rem;
}

.legal-section p,
.legal-section li {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--chalk-shadow);
}

.legal-section p {
    margin-bottom: 1rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section strong {
    color: var(--chalk-white);
    font-weight: 500;
}

.legal-section em {
    color: var(--chalk-white);
    font-style: italic;
}

.legal-list {
    list-style: none;
    counter-reset: legal-counter;
    padding-left: 0;
    margin: 1rem 0 1.25rem;
}

.legal-list li {
    counter-increment: legal-counter;
    padding-left: 2.25rem;
    position: relative;
    margin-bottom: 0.875rem;
}

.legal-list li::before {
    content: "(" counter(legal-counter, lower-alpha) ")";
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--safety-orange);
    line-height: 1.95;
    letter-spacing: 0.04em;
}

.legal-allcaps {
    text-transform: uppercase;
    font-size: 0.8125rem !important;
    letter-spacing: 0.02em;
    line-height: 1.7 !important;
    color: var(--chalk-shadow);
    border-left: 2px solid var(--safety-orange);
    padding-left: 1.25rem;
}

.legal-link {
    color: var(--chalk-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 107, 53, 0.45);
    transition: border-color 0.25s ease, color 0.25s ease;
}

.legal-link:hover {
    color: var(--safety-orange);
    border-bottom-color: var(--safety-orange);
}

.legal-footer {
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(245, 245, 240, 0.12);
    text-align: center;
}

.legal-footer .legal-meta + .legal-meta {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 9rem 1.25rem 5rem;
    }
    .legal-section-title {
        flex-direction: column;
        gap: 0.5rem;
    }
    .legal-num {
        min-width: 0;
    }
}

/* ===== Footer legal row ===== */
.footer-legal {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 245, 240, 0.08);
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-legal a {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--chalk-shadow);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-legal a:hover {
    color: var(--safety-orange);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .section {
        padding: 5rem 1.5rem;
    }
    
    .nav {
        padding: 1rem 1.5rem;
    }
    
    .guarantee-text {
        font-size: 1.25rem;
        padding: 2rem;
    }
    
    .cursor {
        display: none;
    }
    
    body {
        cursor: auto;
    }
    
    .btn-primary {
        cursor: pointer;
    }
}
