:root {
    /* Trackly app-inspired palette */
    --primary: #7C3AED;
    --primary-dark: #6A37D4;
    --accent: #AE8DFF;
    --accent-soft: #FFC0DB;
    --highlight: #FCC025;
    --surface: #F5F3FF;
    --background: #F6FAF9;
    --text-dark: #242F41;
    --text-light: #52678E;
    --muted: #7B8794;
    --white: #FFFFFF;
    
    /* System */
    --container-width: 1140px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

/* Navbar */
.navbar {
    height: 84px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
}

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

.nav-links .btn {
    color: var(--white);
}

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

.nav-links .btn:hover {
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #AE8DFF 100%);
    color: var(--white);
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.18);
    margin-right: 12px;
}

.btn-primary:last-child { margin-right: 0; }

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(124, 58, 237, 0.22);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--text-dark);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid rgba(124, 58, 237, 0.12);
}

/* Hero */
.hero {
    padding: 80px 0;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at top center, rgba(174, 141, 255, 0.16) 0%, rgba(124, 58, 237, 0.30) 35%, #1A0B3D 100%);
}

.hero .container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 0 0 52%;
    max-width: 560px;
}

.hero-title {
    font-size: 64px;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 22px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
    max-width: 100%;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #F8F7FF;
    backdrop-filter: blur(12px);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 10px;
}

.hero-screenshot {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 360px;
}

.screenshot-card {
    width: 100%;
    max-width: 340px;
    border-radius: 42px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 28px 80px rgba(50, 18, 120, 0.20);
}

.screenshot-card img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.screenshot-card img {
    width: 100%;
    display: block;
}

.hero-image {
    flex: 0 0 42%;
    max-width: 420px;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.24), rgba(106, 55, 212, 0.65));
    border-radius: 40px;
    padding: 15px;
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 50px 120px -20px rgba(124, 58, 237, 0.24);
    position: relative;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: #F8F3FF;
    border-radius: 25px;
    overflow: hidden;
    padding: 40px 20px;
}

.mockup-header {
    margin-bottom: 30px;
}

.mockup-day {
    display: block;
    font-family: 'Plus Jakarta Sans';
    font-weight: 800;
    font-size: 18px;
}

.mockup-streak {
    color: var(--text-light);
    font-size: 14px;
}

.mockup-habits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-habit-item {
    padding: 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.habit-pink { background: #FCEDF8; }
.habit-yellow { background: #FEF8E6; }
.habit-purple { background: #F3EEFF; }

.habit-icon { font-size: 24px; }
.habit-name { font-weight: 700; font-size: 15px; }
.habit-status { font-size: 12px; opacity: 0.7; }

.habit-check {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
}

.habit-check.checked {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}

/* Features */
.features {
    padding: 80px 0;
}

.section-title {
    font-size: 48px;
    margin-bottom: 16px;
}

.section-copy {
    max-width: 720px;
    margin: 0 auto 60px;
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.8;
}

.features-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.feature-card {
    background: var(--surface);
    padding: 36px 32px;
    border-radius: 32px;
    transition: var(--transition);
    border: 1px solid rgba(124, 58, 237, 0.12);
    min-height: 240px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(124, 58, 237, 0.16);
}

.feature-icon {
    font-size: 34px;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 14px;
    font-size: 24px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-light);
}

/* How it works */
.showcase-section { padding: 80px 0; background: #fff; }

.showcase-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.showcase-block.reverse {
    direction: rtl;
}

.showcase-block.reverse .showcase-copy,
.showcase-block.reverse .showcase-image {
    direction: ltr;
}

.showcase-copy {
    max-width: 540px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.85rem;
    color: var(--highlight);
    font-weight: 700;
}

.showcase-copy h2 {
    font-size: 44px;
    margin-bottom: 20px;
}

.showcase-copy p {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.9;
}

.showcase-image img {
    width: 100%;
    max-width: 520px;
    border-radius: 34px;
    box-shadow: 0 40px 80px rgba(124, 58, 237, 0.18);
}

.step-container.reversed { flex-direction: row-reverse; }

.step-content { flex: 1; }
.step-image { flex: 1; display: flex; justify-content: center; }

.step-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.step-title { font-size: 36px; margin-bottom: 24px; }
.step-description { font-size: 18px; color: var(--text-light); }

.illustration-placeholder {
    font-size: 120px;
    width: 240px;
    height: 240px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(174, 141, 255, 0.18));
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.08);
}

/* CTA */
.cta-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, #6A37D4 0%, #7C3AED 100%);
    color: var(--white);
}

.cta-title { font-size: 48px; margin-bottom: 18px; }
.cta-subtitle { font-size: 20px; margin-bottom: 40px; opacity: 0.95; }

.cta-buttons {
    display: flex;
    justify-content: center;
}

/* Legal Pages */
.legal-page { padding: 120px 0 80px; background: #fff; }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 40px; }
.legal-content h2 { margin: 40px 0 20px; font-size: 24px; }
.legal-content p, .legal-content li { margin-bottom: 16px; color: var(--text-light); font-size: 17px; }
.legal-content ul { padding-left: 24px; }

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--surface);
    border-top: 1px solid rgba(124, 58, 237, 0.08);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* Mobile */
@media (max-width: 991px) {
    .hero .container { flex-direction: column; text-align: center; }
    .hero-title { font-size: 48px; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-image, .hero-screenshot { width: 100%; }
    .hero-screenshot { margin-top: 32px; }
    .feature-grid, .showcase-block { grid-template-columns: 1fr; }
    .showcase-block.reverse { direction: ltr; }
    .showcase-block.reverse .showcase-copy,
    .showcase-block.reverse .showcase-image { direction: ltr; }
    .showcase-block { margin-bottom: 60px; }
    .step-container, .step-container.reversed { flex-direction: column; text-align: center; gap: 40px; }
    .navbar .nav-links { display: none; }
}