/**
 * Global Styles & Utilities
 * Tendr Website
 */

/* ==================== */
/* CSS RESET */
/* ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--deep-slate);
    background-color: var(--white);
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ==================== */
/* TYPOGRAPHY */
/* ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--deep-slate);
}

h1 {
    font-size: var(--text-7xl);
    letter-spacing: var(--tracking-tight);
}

h2 {
    font-size: var(--text-5xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    line-height: var(--leading-relaxed);
}

strong {
    font-weight: var(--weight-semibold);
}

/* ==================== */
/* CONTAINERS */
/* ==================== */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.container-wide {
    width: 100%;
    max-width: var(--container-2xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.container-narrow {
    width: 100%;
    max-width: var(--container-md);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

/* ==================== */
/* SECTIONS */
/* ==================== */
section {
    position: relative;
    padding: 7.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--coral-accent);
    margin-bottom: var(--space-6);
}

.section-headline {
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-snug);
    color: var(--deep-slate);
    margin-bottom: var(--space-8);
}

.section-subheadline {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--medium-slate);
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== */
/* BUTTONS */
/* ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-mint-peach);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--mint-primary);
    border: 2px solid var(--mint-primary);
}

.btn-secondary:hover {
    background: var(--mint-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: var(--text-lg);
}

.btn-block {
    width: 100%;
}

/* ==================== */
/* CARDS */
/* ==================== */
.card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-emoji {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-4);
    color: var(--deep-slate);
}

.card-text {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--medium-slate);
}

/* ==================== */
/* GLASS EFFECTS */
/* ==================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

/* ==================== */
/* BADGES */
/* ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--medium-slate);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(110, 203, 179, 0.2);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.badge-icon {
    color: var(--mint-primary);
}

/* ==================== */
/* GRIDS */
/* ==================== */
.grid {
    display: grid;
    gap: var(--space-6);
}

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

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

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

/* ==================== */
/* UTILITIES */
/* ==================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* ==================== */
/* ACCESSIBILITY */
/* ==================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--mint-primary);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 2px solid var(--mint-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==================== */
/* SCROLL PROGRESS */
/* ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-mint-peach);
    z-index: var(--z-tooltip);
    transition: width 100ms linear;
}

/* ==================== */
/* PLACEHOLDERS */
/* ==================== */
.placeholder-screenshot,
.placeholder-visual,
.placeholder-illustration {
    background: var(--off-white);
    border: 2px dashed rgba(110, 203, 179, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-slate);
    font-weight: var(--weight-medium);
    padding: var(--space-10);
    min-height: 300px;
}

.phone-mockup {
    max-width: 300px;
    margin: 0 auto;
}

.phone-mockup .placeholder-screenshot {
    aspect-ratio: 9 / 19.5;
    border-radius: var(--radius-xl);
    border: 8px solid var(--deep-slate);
    min-height: 500px;
}

.notification-mockup {
    max-width: 400px;
    margin: 0 auto;
}

/* ==================== */
/* ANIMATIONS */
/* ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in {
    animation: fadeIn var(--transition-slow) ease-out;
}

.float {
    animation: float 6s ease-in-out infinite;
}

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

/* ==================== */
/* RESPONSIVE TYPOGRAPHY */
/* ==================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: var(--text-5xl);
    }
    
    h2 {
        font-size: var(--text-4xl);
    }
    
    h3 {
        font-size: var(--text-xl);
    }
    
    .section-headline {
        font-size: var(--text-4xl);
    }
    
    section {
        padding: 3.75rem 0;
    }
}

@media (max-width: 480px) {
    .container,
    .container-wide,
    .container-narrow {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    section {
        padding: 3rem 0;
    }
}

/* ==================== */
/* RESPONSIVE GRIDS */
/* ==================== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

