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

:root {
    --accent: #e8a83a;
    --accent-dim: rgba(232, 168, 58, 0.06);
    --accent-border: rgba(232, 168, 58, 0.2);
    --bg: #f8f7f4;
    --bg-card: #ffffff;
    --border: #ede8e0;
    --text: #2a2520;
    --text-muted: #7a7066;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* =============== NAVBAR =============== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 247, 244, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.logo-subtext {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

.nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

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

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-ghost {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s;
    display: inline-block;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--text);
}

.btn-primary {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
    display: inline-block;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: default;
}

/* =============== HERO =============== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 2rem 6rem;
    text-align: center;
}

.grid-bg {
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(232, 168, 58, 0.04) 25%, rgba(232, 168, 58, 0.04) 26%, transparent 27%, transparent 74%, rgba(232, 168, 58, 0.04) 75%, rgba(232, 168, 58, 0.04) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(232, 168, 58, 0.04) 25%, rgba(232, 168, 58, 0.04) 26%, transparent 27%, transparent 74%, rgba(232, 168, 58, 0.04) 75%, rgba(232, 168, 58, 0.04) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(232, 168, 58, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 820px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-title {
    font-family: Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.accent-text {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

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

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.social-proof {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.social-proof span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =============== SECTIONS =============== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

.features,
.how-it-works,
.compliance,
.security,
.stats,
.pricing {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============== FEATURES =============== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =============== HOW IT WORKS =============== */
.how-it-works {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    position: relative;
    text-align: center;
}

.step-number {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 0.75rem;
    display: block;
}

.step-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.step-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* =============== COMPLIANCE =============== */
.compliance {
    background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 100%);
}

.compliance-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s, transform 0.2s;
}

.pillar:hover {
    border-color: var(--accent-border);
    transform: translateY(-5px);
}

.pillar-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pillar h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.pillar p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.pillar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pillar li {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

/* =============== SECURITY =============== */
.security-layers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.layer {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.layer:hover {
    transform: translateY(-5px);
    border-color: var(--accent-border);
    box-shadow: 0 10px 30px rgba(232, 168, 58, 0.08);
}

.layer-icon {
    font-size: 32px;
    margin-bottom: 1rem;
    display: block;
}

.layer h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.layer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =============== STATS =============== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}

.stat:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 100%);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
}

/* =============== PRICING =============== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
    margin-top: 3rem;
}

.pricing-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
}

.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.02);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 999px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.card-name {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
}

.card-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.card-price span {
    font-size: 14px;
    color: var(--text-muted);
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.card-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.pricing-card button {
    width: 100%;
}

/* =============== CTA =============== */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, rgba(232, 168, 58, 0.8) 100%);
    text-align: center;
    color: #000;
}

.cta-section h2 {
    font-family: Georgia, serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
}

/* =============== FOOTER =============== */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1rem;
    background: var(--bg-card);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 14px;
    font-weight: 600;
}

.footer-col p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 13px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 13px;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

/* =============== RESPONSIVE =============== */
/* Tablets and below */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }
}

/* Mobile optimized */
@media (max-width: 768px) {
    /* Navbar */
    .nav-container {
        padding: 0 1rem;
        height: 56px;
    }

    .logo-text {
        font-size: 16px;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 13px;
    }

    /* Hero section */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .badge {
        font-size: 12px;
        padding: 8px 12px;
    }

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

    .btn-primary {
        width: 100%;
        padding: 12px 24px;
        font-size: 15px;
        min-height: 44px;
    }

    .social-proof {
        gap: 1rem;
        font-size: 12px;
        flex-wrap: wrap;
    }

    /* Sections */
    section {
        padding: 2rem 1rem !important;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 15px;
    }

    /* Grids */
    .features-grid,
    .compliance-pillars,
    .security-layers,
    .doc-grid,
    .concept-list {
        gap: 1rem;
        grid-template-columns: 1fr !important;
    }

    /* Cards */
    .feature-card,
    .pillar,
    .layer,
    .doc-card,
    .concept-item,
    .pricing-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 32px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    /* Stats */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 28px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-col h4 {
        font-size: 16px;
    }

    /* Forms */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }

    #contactForm {
        padding: 1.5rem;
    }

    /* Legal pages */
    .legal-page {
        padding: 2rem 1rem;
    }

    .legal-content {
        padding: 1.5rem;
    }

    .legal-header h1 {
        font-size: 28px;
    }

    .legal-content h2 {
        font-size: 18px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
        font-size: 12px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .badge {
        font-size: 11px;
        padding: 6px 10px;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .feature-card p {
        font-size: 14px;
    }

    .legal-header h1 {
        font-size: 24px;
    }

    /* Ensure buttons are touch-friendly (44px minimum) */
    a[class*="btn"], button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better spacing for touch */
    .nav-links a {
        padding: 8px 4px;
    }
}

/* =============== ANIMATIONS =============== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.step,
.pillar,
.layer,
.stat,
.pricing-card {
    animation: slideUp 0.6s ease-out backwards;
}

.feature-card:nth-child(n) { animation-delay: calc(0.1s * var(--index, 0)); }
