/* ==========================================================================
   Terms-inator Website - Main CSS
   ========================================================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --primary-color: #0891b2;
    --primary-dark: #1e40af;

    --prg-color: #84cc16;
    --prg-dark: #65a30d;

    --secondary-color: #64748b;
    --accent-color: #84cc16;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Background Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #f0f9ff;
    --bg-tertiary: #f7fee7;
    --bg-dark: #475569;
    --bg-card: #ffffff;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 4rem 0;
    --card-padding: 2rem;
    --border-radius: 15px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-success: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    --gradient-danger: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    --gradient-dark: linear-gradient(135deg, var(--bg-dark) 0%, #64748b 100%);
    
    /* Typography */
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 2.75rem;
    
    /* Z-index */
    --z-header: 100;
    --z-modal: 1000;
    --z-tooltip: 1100;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: var(--font-size-base);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.8;
}

.site-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-btn {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--prg-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   Button Components
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.btn-primary {
    background: var(--bg-card);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-secondary:hover {
    background: var(--prg-color);
    color: var(--text-white);
    border-color: var(--accent-color);
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.btn-features span {
    white-space: nowrap;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: var(--section-padding);
    text-align: center;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-2xl);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.hero-feature {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-feature h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Statistics Section
   ========================================================================== */

.stats-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid #e0f2fe;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
}

.stats-meta {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.status-indicator.online {
    background: var(--success-color);
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
}

.status-indicator.offline {
    background: var(--danger-color);
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.content-section {
    padding: var(--section-padding);
}

.content-section.bg-white {
    background: var(--bg-card);
}

.content-section.bg-gray {
    background: var(--bg-primary);
}

.content-section.bg-green {
    background: var(--bg-tertiary);
}

.content-section.bg-dark {
    background: var(--gradient-dark);
    color: var(--text-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: inherit;
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.content-section.bg-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Card Components
   ========================================================================== */

.card-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.card-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.card-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.content-card {
    background: var(--bg-card);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-card ul {
    list-style: none;
    margin: 1rem 0;
}

.content-card ul li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.content-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Problem/Solution Cards */
.problem-card {
    background: var(--gradient-danger);
    border-left: 4px solid var(--danger-color);
}

.problem-card ul li::before {
    content: "⚠️";
}

.solution-card {
    background: var(--gradient-success);
    border-left: 4px solid var(--success-color);
}

.solution-card ul li::before {
    content: "✓";
    color: var(--success-color);
}

/* AI Risk Cards */
.ai-risk-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.15) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--text-white);
}

.ai-risk-card h3 {
    color: var(--text-white);
}

.ai-risk-card p {
    color: var(--text-white);
}

/* ==========================================================================
   Process Steps
   ========================================================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

.step-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 2;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: var(--prg-color);
    z-index: 1;
}

.step-card:last-child::after {
    display: none;
}

.step-number {
    background: var(--gradient-primary);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #f1f5f9 100%);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    border: 1px solid #cbd5e1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* ==========================================================================
   CTA Sections
   ========================================================================== */

.cta-section {
    padding: var(--section-padding);
    background: var(--gradient-primary);
    color: var(--text-white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-base);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #334155;
    color: var(--text-white);
    padding: 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr repeat(3, auto);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand h3 {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 180px;
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.footer-brand p {
    color: #cbd5e1;
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-size: var(--font-size-lg);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.3rem 0;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--text-white);
}

.footer-disclaimer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #374151;
    margin-top: 2rem;
    color: #94a3b8;
}

.footer-disclaimer strong {
    color: var(--text-white);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    /* Typography adjustments */
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-xl);
    }
    
    .section-title {
        font-size: var(--font-size-4xl);
    }
    
    /* Layout adjustments */
    .card-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        box-shadow: var(--shadow-lg);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        z-index: 1000;
        border-top: 1px solid var(--secondary-color);
    }
    
    .nav-container.active {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .nav-links a {
        padding: 0.75rem 1rem;
        border-radius: var(--border-radius);
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: var(--bg-secondary);
        color: var(--primary-color);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .site-header {
        position: relative;
    }
    
    .cta-btn {
        align-self: center;
        padding: 0.75rem 2rem;
        font-size: 1rem;
        font-weight: 600;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-logo-image {
        height: 120px;
        max-width: 100%;
        width: auto;
    }
    
    .site-logo {
        font-size: var(--font-size-xl);
    }
    
    .site-logo img {
        width: 50px;
        height: 50px;
    }

    .step-card::after {
        top: auto;
        bottom: -1rem;
        right: 50%;
        transform: translateX(50%);
        width: 2px;
        height: 2rem;
        background: var(--gradient-primary);
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: var(--font-size-4xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-logo-image {
        height: 80px;
        max-width: 90%;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-disclaimer {
        padding: 1.5rem 0;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================================================
   Animation Classes
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}
