/* Custom design system for The Compliance Guy */

:root {
    /* Color Palette */
    --bg-main: #0A1128;         /* Deep dark navy for body background */
    --bg-section: #121E36;      /* Slightly lighter navy for section boxes */
    --primary-navy: #1B2A4A;    /* Classic brand navy */
    --accent-amber: #F5A623;    /* Brand amber */
    --accent-amber-hover: #FFB33B; /* Bright glowing amber for hover states */
    --accent-amber-glow: rgba(245, 166, 35, 0.4);
    --text-white: #FFFFFF;
    --text-muted: #A0AEC0;
    --text-light-grey: #E2E8F0;
    
    /* Layout & Styling Tokens */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(245, 166, 35, 0.3);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

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

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 17, 40, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
}

.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-amber);
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.2);
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light-grey);
}

.main-nav a:hover {
    color: var(--accent-amber);
}

.nav-cta {
    background: rgba(245, 166, 35, 0.1);
    color: var(--accent-amber) !important;
    border: 1px solid var(--accent-amber);
    padding: 8px 18px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

.nav-cta:hover {
    background: var(--accent-amber);
    color: var(--bg-main) !important;
    box-shadow: 0 0 15px var(--accent-amber-glow);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background glowing lights */
.hero-glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(27, 42, 74, 0.6) 0%, rgba(10, 17, 40, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, rgba(10, 17, 40, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

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

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light-grey);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-amber);
    box-shadow: 0 0 10px var(--accent-amber);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-white) 60%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 36px;
    color: var(--text-light-grey);
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent-amber);
    color: var(--bg-main);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.25);
}

.btn-primary:hover {
    background-color: var(--accent-amber-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 166, 35, 0.4);
}

.btn-subtext {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

.cta-guarantee {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Smartphone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 290px;
    height: 580px;
    background-color: #000;
    border-radius: 40px;
    border: 8px solid #2d3748;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 
                0 0 40px rgba(245, 166, 35, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-speaker {
    width: 80px;
    height: 16px;
    background-color: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 0;
    left: calc(50% - 40px);
    z-index: 100;
}

.phone-screen {
    flex: 1;
    background-color: #0B0E14;
    padding: 30px 16px 16px;
    display: flex;
    flex-direction: column;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-weight: 500;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.chat-day {
    text-align: center;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.sms-bubble {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    max-width: 85%;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(10px);
}

.sms-bubble.received {
    background-color: #212B3B;
    color: #FFFFFF;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.sms-bubble.sent {
    background-color: #0A84FF;
    color: #FFFFFF;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.sms-sender {
    font-size: 0.65rem;
    color: var(--accent-amber);
    font-weight: 600;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sms-text strong {
    color: var(--text-white);
}

.sms-time {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    margin-top: 4px;
}

/* Typing Indicator */
.typing-indicator span {
    height: 6px;
    width: 6px;
    float: left;
    margin: 0 1px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: bounce 1.3s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}

/* Animations for SMS Bubbles */
.sms-bubble.anim-delay-1 {
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 1.2s;
}

.sms-bubble.anim-delay-2 {
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 3.5s;
}

.sms-bubble.anim-delay-3 {
    animation: popIn 0.3s ease forwards;
    animation-delay: 6s;
}

.sms-bubble.anim-delay-4 {
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 8s;
}

.sms-bubble.hidden {
    display: none;
}

/* Social Proof Bar */
.social-proof-bar {
    background-color: var(--bg-section);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 24px 0;
}

.ticker-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: #38A169; /* Green color for active tracking */
    border-radius: 50%;
    box-shadow: 0 0 8px #38A169;
}

.ticker-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light-grey);
    text-align: center;
}

/* Section Common Styles */
.features-section, .steps-section, .math-section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    color: var(--text-white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Who It's For (Features) Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-6px);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(245, 166, 35, 0.05);
}

.card-icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 24px;
    line-height: 1;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 14px;
    color: var(--text-white);
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* How It Works (Steps) Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    position: relative;
}

.step-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding-top: 20px;
}

/* Number styles */
.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(245, 166, 35, 0.15);
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.3) 0%, rgba(245, 166, 35, 0.02) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-smooth);
}

.step-card:hover .step-number {
    color: rgba(245, 166, 35, 0.3);
    transform: scale(1.05);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.step-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* The Math (Conversion Section) */
.math-section {
    padding-top: 50px;
    padding-bottom: 120px;
}

.math-card {
    background: linear-gradient(135deg, rgba(27, 42, 74, 0.8) 0%, rgba(10, 17, 40, 0.95) 100%);
    border: 2px solid var(--accent-amber);
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(245, 166, 35, 0.15);
}

.math-accent-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.05) 0%, rgba(10, 17, 40, 0) 60%);
    pointer-events: none;
}

.math-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    color: var(--text-white);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.math-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.math-pricing {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.math-pricing .price {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-amber);
}

.math-pricing .period {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.math-cancel {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-secondary {
    background-color: var(--primary-navy);
    color: var(--text-white);
    border: 1px solid var(--accent-amber);
}

.btn-secondary:hover {
    background-color: var(--accent-amber);
    color: var(--bg-main);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 166, 35, 0.35);
}

.btn-glow {
    animation: borderGlow 3s infinite alternate;
}

/* Footer Styles */
.site-footer {
    background-color: var(--bg-main);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 6px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.footer-link {
    font-size: 0.95rem;
    color: var(--text-light-grey);
}

.footer-link:hover {
    color: var(--accent-amber);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.footer-fineprint {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 600px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Custom Keyframe Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(245, 166, 35, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 166, 35, 0);
    }
}

@keyframes animate-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .4;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes borderGlow {
    0% {
        box-shadow: 0 0 10px rgba(245, 166, 35, 0.15);
    }
    100% {
        box-shadow: 0 0 25px rgba(245, 166, 35, 0.4);
    }
}

/* Responsiveness Settings */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 40px;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 8px 0;
    }
    .main-nav {
        display: none; /* Hide desktop nav navigation menu on mobile simple layout */
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        padding-top: 40px;
    }
    .hero-content {
        align-items: center;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-cta-wrapper {
        width: 100%;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }
    .footer-right {
        align-items: center;
    }
    .math-card {
        padding: 40px 24px;
    }
    .math-title {
        font-size: 1.75rem;
    }
    .math-pricing .price {
        font-size: 3rem;
    }
}
