/* ============================================
   reduitli.ch — Swiss Minimal Design System
   ============================================ */

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Custom Properties --- */
:root {
    /* Colors */
    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --surface-alt: #F3F4F6;
    --text: #1A1A1A;
    --text-secondary: #6B7280;
    --accent: #E11A27;
    --accent-hover: #C01520;
    --border: #E5E7EB;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --max-width: 1120px;
    --gutter: 24px;
    --section-padding: 96px;
    --section-padding-mobile: 64px;

    /* Radius */
    --radius: 12px;
    --radius-sm: 8px;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* --- Typography --- */
h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

p {
    color: var(--text-secondary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section Spacing --- */
section {
    padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
    section {
        padding: var(--section-padding-mobile) 0;
    }
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    padding-top: calc(var(--section-padding) + 64px); /* account for fixed nav */
    padding-bottom: var(--section-padding);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-top: 20px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Phone mockup */
.hero-phone {
    display: flex;
    justify-content: center;
}

.phone-frame {
    position: relative;
    width: 280px;
    background: #1A1A1A;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
}

.phone-frame img {
    border-radius: 24px;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .phone-frame {
        width: 220px;
    }
}

/* ============================================
   Highlights
   ============================================ */
.highlights {
    padding: 64px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.highlight {
    text-align: center;
}

.highlight-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.highlight h3 {
    margin-bottom: 8px;
}

.highlight p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================================
   Feature Showcase
   ============================================ */
.showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.showcase-reverse .showcase-inner {
    direction: rtl;
}

.showcase-reverse .showcase-inner > * {
    direction: ltr;
}

.showcase-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-top: 16px;
}

.feature-list {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list li {
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

.feature-list strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.feature-list span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.showcase-img {
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

/* Category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.category-icon {
    font-size: 1.25rem;
}

.category-label {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Small phone frame for second showcase */
.phone-frame-sm {
    width: 240px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .showcase-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .showcase-reverse .showcase-inner {
        direction: ltr;
    }

    .showcase-image {
        order: -1;
    }
}

/* ============================================
   Privacy
   ============================================ */
.privacy {
    background: var(--surface-alt);
}

.privacy-box {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.privacy-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.privacy-box h2 {
    margin-bottom: 16px;
}

.privacy-box p {
    font-size: 1rem;
    line-height: 1.7;
}

.tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    text-align: center;
}

.cta-inner h2 {
    margin-bottom: 12px;
}

.cta-inner > p {
    font-size: 1.0625rem;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.cta-buttons svg {
    flex-shrink: 0;
}

.version-note {
    margin-top: 20px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
