/* clickclip/css/style.css */

:root {
    /* Colors */
    --color-primary: #0066FF;
    /* Vibrant Blue */
    --color-primary-dark: #0052cc;
    --color-primary-light: #E6F0FF;
    --color-text-main: #111827;
    /* Near Black */
    --color-text-secondary: #4B5563;
    /* Grey */
    --color-bg-body: #FFFFFF;
    --color-bg-light: #F9FAFB;
    --color-bg-card: #FFFFFF;
    --color-border: #E5E7EB;

    /* Typography */
    --font-heading: 'Manrope', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    --container-padding: 24px;

    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px -4px rgba(0, 50, 200, 0.08);
    /* Blueish tint shadow */
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for sticky header */
}

clickclip-header,
clickclip-footer {
    display: block;
}

clickclip-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section-bg-light {
    background-color: var(--color-bg-light);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

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

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    line-height: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text-main);
    background-color: var(--color-bg-light);
}

/* Cards */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
    border-color: var(--color-primary-light);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .section {
        padding: 40px 0 !important;
    }

    .grid, .grid-2, .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .nav-links { display: none; }

    .card {
        padding: 1.5rem !important;
    }

    /* Footer flex columns */
    footer .flex.items-center.justify-between {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem !important;
    }
    
    .flex.gap-4 {
        flex-direction: column;
        width: 100%;
    }
}

/* Specific Component Styles */
.step-card h3 {
    min-height: 2.5em;
    /* Ensure titles align even if line counts differ */
    display: flex;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .step-card h3 {
        min-height: auto;
    }
}