/* Custom Modern CSS Design System for Stampr Website */
:root {
    --bg-dark: #0a0e17;
    --bg-card: rgba(20, 28, 47, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-blue: #2466b8;
    --secondary-blue: #4fa3ff;
    --text-white: #f8fafc;
    --text-muted: #cbd5e1;
    --accent-success: #10b981;
    --accent-error: #ef4444;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Radial Glow */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(42, 117, 211, 0.15) 0%, rgba(10, 14, 23, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, #ffffff 40%, #a5c7f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 4px;
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
}

.nav-logo .trademark {
    font-size: 0.8rem;
    vertical-align: super;
    margin-left: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.nav-btn:hover {
    background-color: transparent;
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(42, 117, 211, 0.4);
    transform: translateY(-2px);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 2rem 4rem 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(42, 117, 211, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-white);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(10, 14, 23, 0.8));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Feature Grid */
.features-section {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 2rem;
}

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

/* Glassmorphism Card System */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 163, 255, 0.3);
    box-shadow: 0 10px 30px rgba(10, 14, 23, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Live Data Explorer layout */
.explorer-section {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 2rem;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.data-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.data-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.data-card-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.05);
}

.data-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
    width: max-content;
}

.badge-blue {
    background-color: rgba(42, 117, 211, 0.2);
    color: var(--secondary-blue);
}

/* Outage Notice */
.outage-notice {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

/* Footer Styles */
.footer {
    border-top: 1px solid var(--border-color);
    background: #06090f;
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 8rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-links-group {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

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

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-muted);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* GDPR Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 10000;
}

.cookie-banner h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-btn-group {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.cookie-btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

.cookie-btn-primary:hover {
    background-color: var(--secondary-blue);
}

.cookie-btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.cookie-btn-text {
    background-color: transparent;
    color: var(--text-muted);
}

.cookie-btn-text:hover {
    color: var(--text-white);
}

/* Responsive Styles */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 4rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0a0e17;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--primary-blue);
    color: var(--text-white);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 20px;
}

/* Added Accessibility Utilities */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.btn-primary:active,
.btn-secondary:active,
.nav-btn:active,
.cookie-btn:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease;
}

@media (max-width: 968px) {
    .nav-link {
        padding: 0.8rem 0; /* Increase minimum touch target height */
    }
}

/* High Contrast / Sunlight Theme Overrides */
body.high-contrast-theme {
    --bg-dark: #000000;
    --bg-card: #050b14;
    --border-color: #60a5fa;
    --text-white: #ffffff;
    --text-muted: #ffffff;
    --secondary-blue: #93c5fd;
    --primary-blue: #2563eb;
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast-theme .navbar {
    background: #000000 !important;
    border-bottom: 2px solid #60a5fa !important;
}

body.high-contrast-theme .glass-card {
    background: #050b14 !important;
    border: 2px solid #60a5fa !important;
}

body.high-contrast-theme p, 
body.high-contrast-theme span, 
body.high-contrast-theme label,
body.high-contrast-theme h1,
body.high-contrast-theme h2,
body.high-contrast-theme h3,
body.high-contrast-theme h4,
body.high-contrast-theme div {
    color: #ffffff !important;
}

body.high-contrast-theme input,
body.high-contrast-theme select {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #60a5fa !important;
}




/* App Screenshot Showcases */
.phone-mockup {
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(30, 41, 59, 0.8), 0 0 0 11px rgba(255, 255, 255, 0.1);
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    background: var(--bg-dark);
    animation: none !important;
}

.staggered-feature {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 6rem auto;
    max-width: 1100px;
}

.staggered-feature.reverse {
    flex-direction: row-reverse;
}

.staggered-text {
    flex: 1;
    text-align: left;
    min-width: 0;
    width: 50%;
}

.staggered-text h3 {
    font-size: 2.2rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.staggered-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.staggered-image {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    width: 50%;
}

.staggered-image img {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 900px) {
    .staggered-feature, .staggered-feature.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin: 4rem auto;
    }
    
    .staggered-text {
        text-align: center;
    }
    
    .staggered-image img {
        max-height: 500px;
    }
}

/* SVG Icons for Features */
.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: var(--transition-smooth);
}

.glass-card:hover .card-icon svg {
    stroke: var(--secondary-blue);
    transform: scale(1.1);
}
