/* ===== Claymorphism Design Tokens ===== */
:root {
    /* Backgrounds */
    --bg-base: #fef8f3;
    --bg-soft: #fdeee3;
    --bg-gradient: linear-gradient(135deg, #fef8f3 0%, #fde6f0 50%, #e8f0ff 100%);

    /* Surfaces (clay cards) */
    --surface: #ffffff;
    --surface-pink: #ffeef2;
    --surface-blue: #ebf3ff;
    --surface-mint: #e3faf2;
    --surface-yellow: #fff5d9;

    /* Text */
    --text-primary: #2d2a32;
    --text-secondary: #6b6677;
    --text-muted: #9a95a8;

    /* Accents (macaron) */
    --accent-coral: #ff7a8a;
    --accent-coral-deep: #e8546b;
    --accent-mint: #4dd4ac;
    --accent-blue: #5b9ef5;
    --accent-yellow: #ffc341;
    --accent-purple: #b893f5;

    /* Clay shadows (key technique) */
    --clay-shadow:
        8px 8px 20px rgba(180, 150, 130, 0.25),
        -8px -8px 20px rgba(255, 255, 255, 0.95),
        inset 2px 2px 4px rgba(255, 255, 255, 0.7),
        inset -3px -3px 6px rgba(180, 150, 130, 0.12);
    --clay-shadow-sm:
        4px 4px 10px rgba(180, 150, 130, 0.2),
        -4px -4px 10px rgba(255, 255, 255, 0.9),
        inset 1px 1px 2px rgba(255, 255, 255, 0.6),
        inset -1px -1px 3px rgba(180, 150, 130, 0.1);
    --clay-shadow-press:
        inset 4px 4px 8px rgba(180, 150, 130, 0.25),
        inset -4px -4px 8px rgba(255, 255, 255, 0.9);
    --clay-shadow-color:
        6px 6px 16px rgba(255, 122, 138, 0.35),
        -4px -4px 12px rgba(255, 255, 255, 0.85),
        inset 2px 2px 4px rgba(255, 255, 255, 0.5),
        inset -2px -2px 5px rgba(232, 84, 107, 0.2);

    /* Radii (very rounded) */
    --radius-pill: 999px;
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 16px;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Fonts */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', sans-serif;
    --font-rounded: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Quicksand', 'Comfortaa', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-base);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Decorative background ===== */
.bg-clay {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--bg-gradient);
}

.bg-clay::before,
.bg-clay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.bg-clay::before {
    width: 500px;
    height: 500px;
    background: var(--accent-coral);
    top: -150px;
    left: -150px;
    animation: floatClay 18s ease-in-out infinite;
}

.bg-clay::after {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    bottom: -200px;
    right: -200px;
    animation: floatClay 22s ease-in-out infinite reverse;
}

@keyframes floatClay {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.08); }
    66%      { transform: translate(-30px, 40px) scale(0.95); }
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--space-xl) 0;
    position: relative;
}

@media (max-width: 768px) {
    section { padding: var(--space-lg) 0; }
    .container { padding: 0 20px; }
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: var(--font-rounded);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: var(--surface);
    color: var(--accent-coral-deep);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    box-shadow: var(--clay-shadow-sm);
    margin-bottom: 1.5rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
}

/* ===== Clay card (the signature element) ===== */
.clay-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--clay-shadow);
    padding: 2.5rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.clay-card:hover {
    transform: translateY(-4px);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-family: var(--font-rounded);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-coral);
    color: #fff;
    box-shadow: var(--clay-shadow-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: var(--clay-shadow-press);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--clay-shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.15rem;
}

/* ===== Navigation ===== */
.navbar {
    position: sticky;
    top: 16px;
    z-index: 100;
    padding: 0 24px;
    margin-bottom: 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow:
        6px 6px 16px rgba(180, 150, 130, 0.15),
        -6px -6px 16px rgba(255, 255, 255, 0.85),
        inset 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.nav-logo img {
    height: 50px;
    width: auto;
/*    border-radius: 50%;
    box-shadow: var(--clay-shadow-sm); */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 122, 138, 0.1);
}

.nav-link.active {
    color: var(--accent-coral-deep);
    background: var(--surface-pink);
    box-shadow: inset 2px 2px 4px rgba(180, 150, 130, 0.12),
                inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.nav-link.cta-btn {
    background: var(--accent-coral);
    color: #fff;
    padding: 10px 24px;
    box-shadow: 3px 3px 8px rgba(255, 122, 138, 0.35),
                -2px -2px 6px rgba(255, 255, 255, 0.7);
    margin-left: 8px;
}

.nav-link.cta-btn:hover {
    background: var(--accent-coral-deep);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
}

.nav-toggle .bar {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: var(--radius-md);
        padding: 16px;
        gap: 4px;
        box-shadow: var(--clay-shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        padding: 14px 20px;
    }

    .nav-link.cta-btn {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* ===== Footer ===== */
.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: var(--space-xl);
}

.footer-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--clay-shadow);
    padding: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--accent-coral-deep);
}

.footer-brand p {
    max-width: 360px;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--accent-coral-deep);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px dashed rgba(180, 150, 130, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .footer-card { padding: 2rem 1.5rem; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-2deg); }
    75%      { transform: rotate(2deg); }
}

.fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
