/* ============================================
   SureWhyNot, LLC – Stylesheet
   ============================================ */

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

:root {
    --bg-dark: #0a0e27;
    --bg-darker: #050812;
    --bg-card: #1a1f3a;
    --text-primary: #e8eef7;
    --text-secondary: #b0b8cc;
    --accent-primary: #4f46e5;
    --accent-light: #6366f1;
    --border-color: #2a2f48;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.75em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
    margin-top: 1.5em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1.25em;
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

ul li {
    margin-bottom: 0.75em;
    color: var(--text-secondary);
}

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

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
}

.nav-links a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--accent-primary);
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 10vw, 8rem) 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated ambient glow behind the hero */
.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-glow::before,
.hero-glow::after {
    content: "";
    position: absolute;
    width: 45vw;
    height: 45vw;
    max-width: 620px;
    max-height: 620px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.hero-glow::before {
    top: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.55) 0%, transparent 70%);
    animation: drift-a 18s ease-in-out infinite;
}

.hero-glow::after {
    bottom: -15%;
    right: -8%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.45) 0%, transparent 70%);
    animation: drift-b 22s ease-in-out infinite;
}

@keyframes drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(6%, 8%) scale(1.12); }
}

@keyframes drift-b {
    0%, 100% { transform: translate(0, 0) scale(1.05); }
    50%      { transform: translate(-7%, -6%) scale(0.92); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Status pill (featured product) */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    margin-bottom: 1.75rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: var(--transition);
}

.status-pill:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.18);
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.status-arrow {
    transition: transform 0.25s ease;
}

.status-pill:hover .status-arrow {
    transform: translateX(3px);
}

.hero-title {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Focus Areas */
.focus-areas {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background-color: var(--bg-darker);
}

.focus-areas h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

.focus-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-6px);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(79, 70, 229, 0.05) 100%);
    box-shadow: 0 16px 40px rgba(5, 8, 18, 0.55), 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.focus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    color: var(--accent-light);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    transition: var(--transition);
}

.focus-icon svg {
    width: 24px;
    height: 24px;
}

.focus-card:hover .focus-icon {
    color: #fff;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.06);
}

.focus-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.focus-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Philosophy Section */
.philosophy {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background-color: var(--bg-dark);
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-content h2 {
    margin-bottom: 2rem;
}

.philosophy-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.philosophy-content p:last-child {
    margin-bottom: 0;
}

/* Page Header */
.page-header {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Page Content */
.page-content {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.page-content .container {
    max-width: 800px;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2 {
    margin-top: 0;
}

/* Legal Pages */
.legal p {
    font-size: 0.95rem;
}

.legal ul {
    margin-bottom: 1.5em;
}

.legal ul li {
    font-size: 0.95rem;
    margin-bottom: 0.75em;
}

/* Contact Info */
.contact-section {
    margin-bottom: 3rem;
}

.contact-info {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

.contact-info a {
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: clamp(2rem, 5vw, 3rem) 0;
    margin-top: clamp(3rem, 8vw, 5rem);
}

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

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .page-content {
        padding: 2rem 0;
    }

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

    .hero-cta {
        gap: 0.75rem;
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Stagger the focus cards as they enter */
.focus-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.focus-card.reveal:nth-child(2) { transition-delay: 0.13s; }
.focus-card.reveal:nth-child(3) { transition-delay: 0.21s; }
.focus-card.reveal:nth-child(4) { transition-delay: 0.29s; }

/* No-JS fallback: never leave content hidden */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
    }
}
