/* ============================================
   Merstell Website — Base Stylesheet
   ============================================ */

/* Inter Font — Self-hosted */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/Inter-Bold.woff2') format('woff2');
}

/* CSS Custom Properties (Theme Variables)
   These are overridden by theme files */
:root {
    /* Colours */
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-text: #1a1a1a;
    --color-text-muted: #6b7280;
    --color-heading: #111827;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-border: #e5e7eb;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --line-height: 1.6;

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

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 800px;

    /* Effects */
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: 150ms ease;
}


/* ============================================
   Reset & Base
   ============================================ */

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

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
}

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

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

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

p {
    margin-bottom: var(--space-sm);
}

p:last-child {
    margin-bottom: 0;
}

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

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

strong {
    font-weight: 600;
}

small {
    font-size: var(--font-size-sm);
}


/* ============================================
   Layout
   ============================================ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

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

section:first-of-type {
    padding-top: var(--space-2xl);
}


/* ============================================
   Header
   ============================================ */

.header {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

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

.header__logo {
    display: flex;
    align-items: center;
    color: var(--color-heading);
}

.header__logo:hover {
    color: var(--color-heading);
}

.header__logo svg {
    height: 45px;
    width: auto;
}

.header__nav {
    display: flex;
    gap: var(--space-md);
}

.header__nav a:not(:last-child)::after {
    content: "|";
    margin-left: var(--space-md);
    color: var(--color-border);
}

.header__nav a {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.header__nav a:hover {
    color: var(--color-text);
    text-decoration: none;
}


/* ============================================
   Hero Section
   ============================================ */

.hero-v2 {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0;
}

.hero-v2__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-v2__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--color-heading);
}

.hero-v2__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-v2__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-accent);
    color: #18181b;
    font-weight: 600;
    font-size: var(--font-size-base);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color var(--transition), transform var(--transition);
}

.hero-v2__cta:hover {
    background-color: var(--color-accent-hover);
    color: #18181b;
    text-decoration: none;
    transform: translateY(-2px);
}

.hero-v2__cta svg {
    width: 20px;
    height: 20px;
}


/* ============================================
   Product Section (ProfitEdge)
   ============================================ */

.product {
    background-color: var(--color-bg-alt);
}

.product__header {
    margin-bottom: var(--space-xl);
}

.product__tagline {
    color: var(--color-accent);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.product__description {
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
    margin-top: var(--space-sm);
}

.product__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.feature {
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--border-radius);
}

.feature__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.feature__text {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.product__cta {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: var(--font-size-base);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color var(--transition), transform var(--transition);
}

.btn:hover {
    background-color: var(--color-accent-hover);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}


/* ============================================
   About Section
   ============================================ */

.about-v2 {
    padding: var(--space-3xl) 0;
}

.about-v2__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-v2__content h2 {
    margin-bottom: var(--space-md);
}

.about-v2__content p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.about-v2__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.value {
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--border-radius);
}

.value__title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-heading);
}

.value__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
}


/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--color-bg-alt);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer__company {
    flex: 1;
    min-width: 250px;
}

.footer__logo {
    margin-bottom: var(--space-sm);
}

.footer__logo svg {
    height: 24px;
    width: auto;
}

.footer__address {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-style: normal;
    line-height: 1.8;
}

.footer__links {
    display: flex;
    gap: var(--space-lg);
}

.footer__links a {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.footer__links a:hover {
    color: var(--color-text);
}

.footer__copyright {
    width: 100%;
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}


/* ============================================
   Privacy Page
   ============================================ */

.privacy {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.privacy h1 {
    margin-bottom: var(--space-xs);
}

.privacy__updated {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.privacy h2 {
    font-size: var(--font-size-xl);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

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


/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 900px) {
    .hero-v2__title {
        font-size: 2.5rem;
    }

    .about-v2__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-v2__values {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --space-3xl: 4rem;
        --space-2xl: 3rem;
    }

    /* Header */
    .header__inner {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .header__logo svg {
        height: 36px;
    }

    .header__nav {
        gap: var(--space-xs);
        flex-wrap: wrap;
        justify-content: center;
    }

    .header__nav a:not(:last-child)::after {
        margin-left: var(--space-xs);
    }

    /* Hero */
    .hero-v2 {
        min-height: auto;
        padding: var(--space-xl) 0;
    }

    .hero-v2__title {
        font-size: 2rem;
    }

    .hero-v2__subtitle {
        font-size: var(--font-size-base);
    }

    /* Footer */
    .footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__company {
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.375rem;
        --space-md: 1rem;
    }

    /* Header */
    .header__nav a {
        font-size: 0.75rem;
    }

    .header__nav a:not(:last-child)::after {
        margin-left: 0.5rem;
    }

    /* Hero */
    .hero-v2__title {
        font-size: 1.75rem;
    }

    .hero-v2__cta {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-sm);
    }

    /* Product features */
    .product__features {
        grid-template-columns: 1fr;
    }

    .feature__title {
        font-size: var(--font-size-base);
    }

    /* Value cards */
    .value {
        padding: var(--space-sm);
    }
}
