@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Stripe/Linear Inspired Core Palette */
    --primary-h: 161;
    --primary-s: 94%;
    --primary-l: 31%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);

    --secondary-h: 212;
    --secondary-s: 100%;
    --secondary-l: 48%;
    --secondary: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));

    --text-main: #0F172A;
    --text-muted: #64748B;
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAFC;

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(226, 232, 240, 0.8);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    --container-max: 1200px;
    --section-spacing: 120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* --- Layout --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-spacing) 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: #f1f5f9;
}

/* --- Header & Nav --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.05em;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* --- Hero --- */
.hero {
    padding-top: 180px;
    padding-bottom: 80px;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, hsla(var(--primary-h), 100%, 95%, 1) 0%, white 50%);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-visual {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-visual-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.hero-phone {
    flex: 1;
    max-width: 380px;
    border-radius: 40px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
    transition: transform 0.3s;
    width: 100%;
}

.hero-phone-cropped {
    object-fit: cover;
    object-position: center 85%;
    height: 500px;
}

.hero-phone:last-child {
    transform: perspective(1000px) rotateY(8deg) rotateX(2deg);
}

@media (max-width: 768px) {
    .hero-visual-grid {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }

    .hero-phone,
    .hero-phone:last-child {
        transform: none;
        max-width: 320px;
    }
}

/* --- Trust Bar --- */
.trust-bar {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-alt);
    text-align: center;
}

.trust-bar p {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    font-weight: 600;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    opacity: 0.4;
    filter: grayscale(1);
    align-items: center;
}

.trust-logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--text-main);
}

/* --- Feature Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 3rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
}

/* --- Problem / Solution --- */
.side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.visual-box {
    position: relative;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    border: 1px solid var(--glass-border);
}

.visual-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- How it Works --- */
.steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.step {
    flex: 1;
    position: relative;
}

.step-num {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-glow);
    position: absolute;
    top: -2rem;
    left: 0;
    z-index: -1;
}

.step h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* --- Newsletter --- */
.newsletter-card {
    background: var(--text-main);
    color: white;
    padding: 6rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.newsletter-card h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.newsletter-card p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
}

.form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

.form-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    color: white;
    font-size: 1rem;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* --- Footer --- */
footer {
    padding: 6rem 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h5 {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

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

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 968px) {

    .grid,
    .side-by-side,
    .steps {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .newsletter-card {
        padding: 4rem 2rem;
    }

    .form-group {
        flex-direction: column;
        background: transparent;
        border-radius: 0;
    }

    .form-group input {
        border: 1px solid rgba(255, 255, 255, 0.2);
        height: 56px;
        border-radius: 100px;
        margin-bottom: 1rem;
    }
}