:root {
    --primary: #38bdf8;
    --primary-dark: #0284c7;
    --secondary: #0f172a;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 6px 24px rgb(15 23 42 / 0.08);
    --shadow-lg: 0 18px 46px rgb(15 23 42 / 0.16);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);
    --container-padding: 8%;
    --max-width: 1200px;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; transition: all 0.2s ease; }

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 1.4rem var(--container-padding);
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.lotriflow-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img { height: 60px; width: auto; display: block; }

.logo-name {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #222;
    margin-left: 0.5rem;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    line-height: 1;
    text-transform: lowercase;
}

.logo-name-lotri { color: #38bdf8; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
}

.nav-links a {
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--primary);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
}

.nav-links a:hover::after { opacity: 1; transform: translateY(0); }
.nav-links a:hover { color: var(--primary); }

.btn-nav {
    background: #0f172a;
    color: #fff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: #0b1220;
}

header.hero {
    padding: 160px var(--container-padding) 60px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}

header.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.16) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 780px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.hero-bg-accent {
    position: absolute;
    inset: -80px auto auto 20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.12), transparent 55%);
    filter: blur(10px);
    z-index: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary-dark);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero-title-main {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    color: #0f172a;
    text-transform: lowercase;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: left;
    max-width: 620px;
    margin: 0 0 1.5rem;
    line-height: 1.6;
    will-change: transform;
}

.hero-logo-main {
    display: inline-block;
    margin: 0 auto;
    width: 140px;
    height: 140px;
    will-change: transform;
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.hero-orb {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.1));
    border-radius: 50%;
    filter: blur(12px);
    z-index: 0;
}

.hero-visual .hero-logo-main {
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.cta-group {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid transparent;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-main);
    padding: 0.8rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.btn-secondary:hover { background: #dbeafe; color: var(--primary-dark); }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-block {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.stat-value {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem var(--container-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.product-section {
    padding: 6rem var(--container-padding);
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.product-card {
    background: #fff;
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card h3 {
    font-size: 1.4rem;
    color: var(--text-main);
}

.product-summary {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.product-list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    color: var(--text-main);
}

.product-list li {
    padding-left: 1.2rem;
    position: relative;
}

.product-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.pill {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.ghost-card { background: #f8fafc; border-style: dashed; }
.pill-ghost { background: rgba(148, 163, 184, 0.15); color: #475569; }

.waitlist-note {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.waitlist-note a {
    color: var(--primary-dark);
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.why-section {
    padding: 6rem var(--container-padding);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.flow-section {
    padding: 6rem var(--container-padding);
    background: #fff;
}

.flow-steps {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.flow-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-sm);
}

.step-marker {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.15);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--primary-dark);
}

.flow-step h3 { margin-bottom: 0.2rem; color: var(--text-main); }
.flow-step p { color: var(--text-muted); }

footer {
    padding: 4rem var(--container-padding);
    text-align: center;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer p {
    margin: 0.5rem 0;
    color: var(--text-muted);
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (max-width: 960px) {
    nav {
        padding: 1.2rem 6%;
        gap: 1rem;
    }

    .nav-links { display: none; }

    header.hero {
        grid-template-columns: 1fr;
        padding-top: 140px;
    }

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

@media (max-width: 600px) {
    nav {
        padding: 1rem 1.1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .lotriflow-logo {
        justify-content: space-between;
        width: 100%;
    }

    .logo-img { height: 50px; }

    .logo-name { font-size: 1.6rem; }

    .btn-nav {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: inline-flex;
    }

    header.hero {
        padding: 130px 1.1rem 60px;
        row-gap: 1.5rem;
    }

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

    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-visual {
        padding: 0.5rem;
    }

    .hero-title-main { font-size: 2.3rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }

    .product-section,
    .why-section,
    .flow-section {
        padding: 3.5rem 1.1rem;
    }

    .product-card .btn-primary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
