:root {
    /* Theme Colors */
    --primary-color: #0f172a;
    --primary-foreground: #ffffff;
    --secondary-color: #64748b;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --bg-color: #ffffff;
    --bg-muted: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;

    /* Spacing & Sizing */
    --container-max: 1200px;
    --nav-height: 94px;
}

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

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
}

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

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
}

.btn-with-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-with-logo img {
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}

.btn-with-logo span {
    font-size: 20px;
}

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

.btn-accent {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: inherit;
    text-decoration: none;
}

.navbar .logo {
    height: 74px;
}

.navbar .logo img {
    height: 100%;
    width: auto;
    display: block;
}

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

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-color);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

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

.nav-links a.nav-cta {
    padding: 10px 18px;
    font-size: 13px;
    line-height: 1;
    box-shadow: none;
    background-color: var(--accent-color);
    border: 1px solid transparent;
    color: #ffffff;
}

.nav-links a.nav-cta:hover {
    background-color: #ffffff;
    border-color: var(--accent-color);
    color: var(--text-color);
}

/* Hero */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 58%, #edf4ff 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-brand-title {
    margin-bottom: 18px;
}

.hero-app-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-app-heading {
    margin-top: 60px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.hero-app-name {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-app-context {
    font-size: 54px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--text-muted);
}

.hero-title-block {
    max-width: 800px;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
}

.cta-group {
    display: flex;
    gap: 12px;
}

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

.hero-image img {
    display: block;
    width: 100%;
    max-width: 1000px;
    border-radius: 16px;
    border: 1px solid rgba(147, 197, 253, 0.9);
    background: #ffffff;
}

.hero-followup {
    padding: 52px 0 88px;
    background: linear-gradient(180deg, #f4f8ff 0%, #e8f1ff 52%, #dfeaff 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-followup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero-followup-copy {
    max-width: 760px;
    text-align: center;
}

.hero-followup-copy h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.hero-followup-copy p {
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-muted);
}

.hero-followup-image {
    display: flex;
    justify-content: center;
}

.hero-followup-image img {
    display: block;
    width: 100%;
    max-width: 960px;
    border-radius: 16px;
    border: 1px solid rgba(147, 197, 253, 0.9);
    background: #ffffff;
}

/* Features */
.features {
    background: linear-gradient(180deg, #fcfdff 0%, #f1f7ff 24%, #e7f0ff 100%);
    padding: 100px 0;
}

.company-section {
    padding: 96px 0 72px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.company-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.company-card h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.company-card p {
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-muted);
}

.company-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-text,
.feature-image {
    min-width: 0;
}

.feature-text h2 {
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.feature-text p {
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-muted);
}

.feature-image {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.feature-image-frame {
    position: relative;
    width: 540px;
    max-width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.feature-image-frame img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    object-position: left top;
}

.feature-gallery {
    width: 540px;
    max-width: 100%;
}

.feature-gallery-main {
    width: 540px;
    max-width: 100%;
    height: 400px;
    margin-bottom: 16px;
}

.feature-gallery-main .splide__track {
    height: 100%;
    border-radius: 14px;
}

.feature-gallery-main .splide__list {
    height: 100%;
}

.feature-image-frame::after,
.feature-gallery-main .splide__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 78%, rgba(248, 250, 252, 0.28) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 76%, rgba(248, 250, 252, 0.4) 100%);
    pointer-events: none;
}

.feature-gallery-main .splide__slide {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
}

.feature-gallery-main .splide__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 30px -18px rgba(15, 23, 42, 0.18);
}

.feature-gallery-main .splide__arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    opacity: 1;
}

.feature-gallery-main .splide__arrow svg {
    fill: var(--primary-color);
}

.feature-gallery-thumbs .splide__track {
    padding: 2px 0;
}

.feature-gallery-thumbs .splide__slide {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.72;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.feature-gallery-thumbs .splide__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-gallery-thumbs .splide__slide.is-active {
    border-color: rgba(59, 130, 246, 0.65);
    opacity: 1;
    transform: translateY(-2px);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .navbar {
        height: 78px;
    }

    .navbar .logo {
        height: 58px;
    }

    .logo-text {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 18px;
        border: 1px solid var(--border-color);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        box-shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.28);
    }

    .navbar.is-open .nav-links {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 10px 0;
    }

    .nav-links a.nav-cta {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        padding: 12px 18px;
    }

    .navbar.is-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar.is-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .navbar.is-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-title-block {
        max-width: 100%;
    }

    .hero-followup-copy h2 {
        font-size: 32px;
    }

    .hero-followup-copy p {
        font-size: 17px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-app-name {
        font-size: 40px;
    }

    .hero-app-context {
        font-size: 22px;
    }

    .feature-row, .feature-row.reverse {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .feature-text,
    .feature-image {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .feature-image-frame,
    .feature-gallery,
    .feature-gallery-main,
    .feature-gallery-main .splide__slide {
        width: 100%;
        max-width: 100%;
        height: 320px;
    }

    .feature-text h2 {
        font-size: 32px;
    }

    .feature-text p {
        font-size: 17px;
    }

    .company-card {
        padding: 0;
    }

    .company-card h2 {
        font-size: 24px;
    }

    .company-card p {
        font-size: 17px;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero-followup {
        padding-bottom: 72px;
    }

    .hero-followup-copy h2 {
        font-size: 28px;
    }

    .hero-followup-copy p {
        font-size: 16px;
    }

    .company-section {
        padding: 80px 0 64px;
    }

    .company-card {
        padding: 0;
    }

    .company-card h2 {
        font-size: 22px;
    }

    .company-card p {
        font-size: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .hero-app-lockup {
        gap: 10px;
    }

    .hero-app-name {
        font-size: 30px;
    }

    .hero-app-context {
        font-size: 18px;
    }

    .feature-text h2 {
        font-size: 28px;
    }

    .feature-image-frame,
    .feature-gallery,
    .feature-gallery-main,
    .feature-gallery-main .splide__slide {
        height: 260px;
    }

    .feature-text p {
        font-size: 16px;
    }

    .cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding: 32px 0;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}
