/* CSS Variables - Brand Colors from Brandbook */
:root {
    /* Brand Colors */
    --ss-primary: #003366;    /* Navy - brand anchor */
    --ss-accent: #F75C03;     /* Ember Orange - CTA/energy */
    --ss-highlight: #E3A857;  /* Warm Amber - highlights/badges */
    --ss-warn: #E34234;       /* Coral/Alert - deprecation urgency */
    --ss-ink: #0B1220;        /* Deep Ink - body copy */
    
    /* Supporting Neutrals */
    --ss-bg: #F5F7FA;         /* Page background */
    --ss-surface: #FFFFFF;    /* Card/email surface */
    --ss-muted: #6B7280;      /* Muted text/meta copy */
    
    /* Additional UI Colors */
    --ss-border: #E6E9EE;
    --ss-shadow: rgba(11, 18, 32, 0.1);
    --ss-shadow-hover: rgba(11, 18, 32, 0.15);
    
    /* Typography */
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Poppins", "Inter", sans-serif;
    
    /* Spacing - 8px base grid */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    --space-20: 5rem;    /* 80px */
    --space-24: 6rem;    /* 96px */
    
    /* Breakpoints */
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ss-ink);
    background-color: var(--ss-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ss-ink);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3rem);
    margin-bottom: var(--space-6);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.125rem);
    margin-bottom: var(--space-5);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: var(--space-4);
}

p {
    margin-bottom: var(--space-4);
    color: var(--ss-ink);
}

a {
    color: var(--ss-primary);
    text-decoration: none;
    transition: color 0.16s ease-out;
}

a:hover {
    color: var(--ss-accent);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}

/* Buttons - Following brand guidelines */
.btn-primary {
    background: var(--ss-accent);
    color: var(--ss-ink);
    border: none;
    padding: var(--space-3) var(--space-4);
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.16s ease-out;
    min-height: 44px; /* Touch-friendly */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 92, 3, 0.25);
    color: var(--ss-ink);
}

.btn-secondary {
    background: transparent;
    color: var(--ss-primary);
    border: 2px solid var(--ss-primary);
    padding: calc(var(--space-3) - 2px) calc(var(--space-4) - 2px);
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.16s ease-out;
    min-height: 44px;
}

.btn-secondary:hover {
    background: var(--ss-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.25);
}

.btn-large {
    padding: var(--space-4) var(--space-6);
    font-size: 1.125rem;
    min-height: 56px;
}

.btn-full {
    width: 100%;
}

.btn-login {
    background: transparent;
    color: var(--ss-primary);
    border: none;
    padding: var(--space-2) var(--space-4);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.16s ease-out;
}

.btn-login:hover {
    color: var(--ss-accent);
}

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid var(--ss-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-logo {
    width: 32px;
    height: 32px;
}

.nav-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ss-primary);
}

.nav-links {
    display: none;
    gap: var(--space-6);
    align-items: center;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--ss-ink);
    transition: color 0.16s ease-out;
    padding: var(--space-2) 0;
}

.nav-link:hover {
    color: var(--ss-accent);
}

.nav-actions {
    display: none;
    gap: var(--space-4);
    align-items: center;
}

@media (min-width: 768px) {
    .nav-actions {
        display: flex;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ss-ink);
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--ss-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: var(--space-6) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.mobile-nav-link {
    font-weight: 500;
    color: var(--ss-ink);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--ss-border);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

/* Hero Section */
.hero {
    padding: calc(64px + var(--space-16)) 0 var(--space-20) 0;
    background: linear-gradient(135deg, var(--ss-bg) 0%, #ffffff 100%);
}

.hero-content {
    text-align: center;
    margin-bottom: var(--space-16);
}

@media (min-width: 1024px) {
    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
        align-items: center;
    }
    
    .hero-content {
        text-align: left;
        margin-bottom: 0;
    }
}

.hero-heading {
    background: linear-gradient(135deg, var(--ss-ink) 0%, var(--ss-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-6);
}

.hero-subheading {
    font-size: 1.25rem;
    color: var(--ss-muted);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    @media (min-width: 1024px) {
        .hero-actions {
            justify-content: flex-start;
        }
    }
}

.hero-benefits {
    display: grid;
    gap: var(--space-4);
    text-align: left;
}

@media (min-width: 640px) {
    .hero-benefits {
        grid-template-columns: 1fr 1fr;
    }
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: 0.875rem;
    color: var(--ss-muted);
}

.benefit-item svg {
    color: var(--ss-highlight);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    margin-top: var(--space-12);
}

@media (min-width: 1024px) {
    .hero-visual {
        margin-top: 0;
    }
}

.dashboard-preview {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(11, 18, 32, 0.1);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.preview-header {
    background: var(--ss-primary);
    color: white;
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.preview-dots {
    display: flex;
    gap: var(--space-1);
}

.preview-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.preview-title {
    font-size: 0.875rem;
    font-weight: 500;
}

.preview-content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.alert-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: 8px;
    background: var(--ss-bg);
}

.alert-item.urgent {
    background: rgba(227, 66, 52, 0.1);
    border-left: 4px solid var(--ss-warn);
}

.alert-item.info {
    background: rgba(0, 51, 102, 0.1);
    border-left: 4px solid var(--ss-primary);
}

.alert-item.success {
    background: rgba(227, 168, 87, 0.1);
    border-left: 4px solid var(--ss-highlight);
}

.alert-icon {
    font-size: 1.25rem;
}

.alert-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.alert-details strong {
    color: var(--ss-ink);
    font-weight: 600;
}

.alert-details span {
    font-size: 0.875rem;
    color: var(--ss-muted);
}

.badge {
    padding: var(--space-1) var(--space-3);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge.urgent {
    background: var(--ss-warn);
    color: white;
}

.badge.info {
    background: var(--ss-primary);
    color: white;
}

.badge.success {
    background: var(--ss-highlight);
    color: var(--ss-ink);
}

/* Sections */
section {
    padding: var(--space-16) 0;
}

section h2 {
    text-align: center;
    margin-bottom: var(--space-12);
}

/* How It Works */
.steps {
    display: grid;
    gap: var(--space-8);
    margin-top: var(--space-12);
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.step-number {
    width: 48px;
    height: 48px;
    background: var(--ss-primary);
    color: var(--ss-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto var(--space-4) auto;
}

.step h3 {
    margin-bottom: var(--space-3);
}

.step p {
    color: var(--ss-muted);
    margin-bottom: 0;
}

/* Features */
.feature-grid {
    display: grid;
    gap: var(--space-6);
    margin-top: var(--space-12);
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: white;
    padding: var(--space-8);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--ss-shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--ss-shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    display: block;
}

.feature-card h3 {
    color: var(--ss-primary);
    margin-bottom: var(--space-3);
}

.feature-card p {
    color: var(--ss-muted);
    margin-bottom: 0;
}

/* Pricing */
.pricing {
    background: white;
}

.pricing-grid {
    display: grid;
    gap: var(--space-8);
    margin-top: var(--space-12);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: var(--ss-bg);
    border-radius: 16px;
    padding: var(--space-8);
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--ss-shadow-hover);
}

.pricing-card.featured {
    background: white;
    border-color: var(--ss-accent);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ss-highlight);
    color: var(--ss-ink);
    padding: var(--space-2) var(--space-4);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.pricing-header h3 {
    color: var(--ss-primary);
    margin-bottom: var(--space-3);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ss-ink);
    margin-bottom: var(--space-2);
}

.price span {
    font-size: 1rem;
    color: var(--ss-muted);
    font-weight: 400;
}

.pricing-header p {
    color: var(--ss-muted);
    margin-bottom: 0;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-8);
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: 0.875rem;
}

.pricing-features li:before {
    content: "✓";
    color: var(--ss-highlight);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-hooks {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-12);
    padding: var(--space-8);
    background: var(--ss-bg);
    border-radius: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .pricing-hooks {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hook-item {
    font-size: 0.875rem;
    color: var(--ss-muted);
}

.hook-item strong {
    color: var(--ss-ink);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    gap: var(--space-8);
    margin-top: var(--space-12);
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    background: white;
    padding: var(--space-8);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--ss-shadow);
    text-align: center;
}

.testimonial-card blockquote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--ss-ink);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.testimonial-card cite {
    color: var(--ss-muted);
    font-style: normal;
    font-weight: 500;
}

/* FAQ */
.faq {
    background: white;
}

.faq-grid {
    display: grid;
    gap: var(--space-8);
    margin-top: var(--space-12);
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-12) var(--space-8);
    }
}

.faq-item h3 {
    color: var(--ss-primary);
    margin-bottom: var(--space-3);
    font-size: 1.125rem;
}

.faq-item p {
    color: var(--ss-muted);
    margin-bottom: 0;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--ss-primary) 0%, #004080 100%);
    color: white;
    text-align: center;
}

.final-cta h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.final-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: var(--space-8);
}

.cta-actions {
    margin-bottom: var(--space-6);
}

.support-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    font-size: 0.875rem;
}

.support-links a {
    color: rgba(255, 255, 255, 0.8);
}

.support-links a:hover {
    color: white;
}

.support-links span {
    color: rgba(255, 255, 255, 0.4);
}

/* Footer */
.footer {
    background: var(--ss-ink);
    color: white;
    padding: var(--space-16) 0 var(--space-8) 0;
}

.footer-content {
    display: grid;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 2fr;
        gap: var(--space-16);
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8) var(--space-6);
}

@media (min-width: 640px) {
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column h4 {
    color: white;
    margin-bottom: var(--space-4);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-3);
    font-size: 0.875rem;
    transition: color 0.16s ease-out;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: var(--space-4);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.16s ease-out;
}

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

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.nav-link:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid var(--ss-accent);
    outline-offset: 2px;
}

/* Loading States */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu,
    .mobile-menu-toggle,
    .final-cta,
    .footer {
        display: none !important;
    }
    
    .hero {
        padding-top: var(--space-8);
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}