:root {
    --home-bg: #07100f;
    --home-bg-soft: #0b1715;
    --home-panel: #101d1b;
    --home-line: rgba(255, 255, 255, 0.11);
    --home-text: #f6f8f7;
    --home-muted: #9caaa5;
    --home-green: #18d37e;
}

.home-page {
    color: var(--home-text);
    background: var(--home-bg);
    font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
}

.home-page h1,
.home-page h2,
.home-page h3 { color: var(--home-text); }
.home-page p { color: var(--home-muted); }
.home-page .container { max-width: 1240px; }

.home-page .home-nav {
    padding: 14px 0;
    color: var(--home-text);
    background: rgba(7, 16, 15, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.home-page .home-nav.is-scrolled {
    background: rgba(7, 16, 15, 0.96);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.home-page .logo {
    width: 42px;
    height: 42px;
    border-radius: 11px;
}

.home-wordmark {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.home-wordmark span { color: var(--home-green); }

.home-page .navbar-nav {
    align-items: center;
    gap: 26px;
}

.home-page .navbar-nav a {
    color: #c7d1cd;
    font-size: 0.92rem;
    font-weight: 600;
}

.home-page .navbar-nav a:hover { color: #fff; }

.home-page .navbar-nav .nav-install {
    padding: 10px 16px;
    color: #04100b;
    background: var(--home-green);
    border-radius: 8px;
}

.home-page .navbar-nav .nav-install:hover {
    color: #04100b;
    background: #41e897;
}

.home-hero {
    position: relative;
    min-height: 760px;
    padding: 168px 0 96px;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(2, 9, 8, 0.95), rgba(7, 16, 15, 0.8) 48%, rgba(7, 31, 23, 0.72)), var(--home-bg);
}

.hero-glow {
    position: absolute;
    right: -240px;
    bottom: -380px;
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, rgba(0, 222, 126, 0.28), rgba(0, 222, 126, 0) 67%);
    pointer-events: none;
}

.hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(420px, 0.82fr) minmax(560px, 1.18fr);
    gap: 54px;
    align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.hero-kicker,
.section-label {
    margin: 0 0 17px;
    color: var(--home-green) !important;
    font-size: 0.76rem !important;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(3.4rem, 6vw, 5.75rem);
    font-weight: 760;
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero-copy h1 span { color: var(--home-green); }

.hero-summary {
    max-width: 590px;
    margin: 28px 0 0;
    font-size: 1.12rem;
    line-height: 1.75;
}

.home-page .hero-actions { margin-top: 34px; gap: 12px; }

.home-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.home-button:hover { transform: translateY(-2px); }

.home-button-primary {
    color: #03130c;
    background: var(--home-green);
}

.home-button-primary:hover { color: #03130c; background: #43e99a; }

.home-button-ghost {
    color: #e9eeec;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
}

.home-button-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

.home-button-ghost small {
    padding-left: 9px;
    color: #94a69e;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.7rem;
}

.hero-update {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0 0;
    font-size: 0.78rem !important;
}

.hero-update span {
    width: 7px;
    height: 7px;
    background: var(--home-green);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(24, 211, 126, 0.1);
}

.hero-visual {
    position: relative;
    height: 510px;
    display: grid;
    place-items: center;
    isolation: isolate;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: radial-gradient(circle at 62% 42%, rgba(24, 211, 126, 0.12), transparent 48%);
    box-shadow: none;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.hero-visual::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 11% 3% 8% 10%;
    border: 1px solid rgba(111, 244, 183, 0.16);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(16, 43, 35, 0.72), rgba(5, 18, 14, 0.3));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        34px 28px 70px rgba(0, 0, 0, 0.34);
    transform: translate3d(24px, 13px, -65px) rotateY(-6deg) rotateX(2deg);
}

.hero-visual::after {
    content: "";
    position: absolute;
    z-index: -2;
    left: 14%;
    right: 5%;
    bottom: 2%;
    height: 18%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.64);
    filter: blur(26px);
    opacity: 0.78;
    transform: translate3d(22px, 28px, -90px) rotate(-2deg);
}

.hero-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 106%;
    max-width: none;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 34px 30px rgba(0, 0, 0, 0.42))
        drop-shadow(14px 16px 18px rgba(0, 0, 0, 0.24))
        drop-shadow(-1px -1px 0 rgba(255, 255, 255, 0.18));
    transform-origin: 54% 52%;
    transform: translate3d(7px, -4px, 46px) rotateY(-7deg) rotateX(2deg) rotateZ(0.35deg);
    backface-visibility: hidden;
    transition: transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 500ms ease;
}

.hero-visual:hover img {
    filter:
        drop-shadow(0 42px 36px rgba(0, 0, 0, 0.48))
        drop-shadow(18px 18px 20px rgba(0, 0, 0, 0.25))
        drop-shadow(-1px -1px 0 rgba(255, 255, 255, 0.2));
    transform: translate3d(10px, -10px, 58px) rotateY(-5deg) rotateX(1deg) rotateZ(0.2deg);
}

.proof-strip {
    background: #0c1816;
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}

.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.proof-grid > div {
    display: flex;
    min-height: 112px;
    align-items: center;
    gap: 13px;
    padding: 22px 26px;
    border-right: 1px solid var(--home-line);
}

.proof-grid > div:first-child { border-left: 1px solid var(--home-line); }
.proof-grid i { color: var(--home-green); font-size: 1.05rem; }

.proof-grid span {
    color: #899b94;
    font-size: 0.76rem;
    line-height: 1.45;
}

.proof-grid strong { display: block; color: #f2f5f4; font-size: 0.9rem; }

.home-section { padding: 120px 0; }

.section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 70px;
    align-items: end;
    margin-bottom: 58px;
}

.section-heading .section-label { grid-column: 1 / -1; margin-bottom: -12px; }

.section-heading h2 {
    text-align: left;
    font-size: clamp(2.6rem, 4.5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.section-heading > p:last-child {
    max-width: 540px;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
}

.workflows-section { background: var(--home-bg); }
.workflow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.workflow-card {
    overflow: hidden;
    background: var(--home-panel);
    border: 1px solid var(--home-line);
    border-radius: 18px;
}

.workflow-copy { min-height: 250px; padding: 34px 36px; }

.workflow-number {
    display: block;
    margin-bottom: 34px;
    color: var(--home-green);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.workflow-card h3 { margin-bottom: 12px; font-size: 1.65rem; letter-spacing: -0.025em; }

.workflow-card p {
    max-width: 510px;
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.7;
}

.workflow-card img { display: block; width: 100%; border-top: 1px solid var(--home-line); }

.formats-section {
    background: #0c1816;
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}

.formats-layout {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 70px;
    align-items: center;
}

.formats-copy h2 {
    margin-bottom: 22px;
    text-align: left;
    font-size: clamp(2.6rem, 4vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.formats-copy > p:not(.section-label) {
    max-width: 470px;
    font-size: 1rem;
    line-height: 1.7;
}

.format-list { margin-top: 34px; border-top: 1px solid var(--home-line); }

.format-list > div {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--home-line);
}

.format-list span { color: var(--home-green); font-size: 0.78rem; font-weight: 750; }
.format-list p { margin: 0; font-size: 0.82rem; }

.feature-visual {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.feature-visual img { display: block; width: 100%; }
.detail-section { background: var(--home-bg); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.detail-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0d1917;
    border: 1px solid var(--home-line);
    border-radius: 18px;
}

.detail-card img { display: block; width: 100%; }
.detail-card > div { padding: 30px 34px 34px; }
.detail-card h3 { margin: -5px 0 10px; font-size: 1.45rem; }
.detail-card p:last-child { margin: 0; font-size: 0.9rem; line-height: 1.65; }

.steps-section { background: #0c1816; border-top: 1px solid var(--home-line); }
.section-heading.compact { display: block; max-width: 780px; }
.section-heading.compact h2 { margin-top: 0; }

.home-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}

.home-steps li {
    min-height: 225px;
    padding: 28px 26px;
    border-right: 1px solid var(--home-line);
}

.home-steps li:first-child { border-left: 1px solid var(--home-line); }

.home-steps span {
    display: block;
    margin-bottom: 48px;
    color: var(--home-green);
    font-size: 0.74rem;
    font-weight: 750;
}

.home-steps strong { display: block; margin-bottom: 10px; color: #f2f5f4; }
.home-steps p { margin: 0; font-size: 0.84rem; line-height: 1.6; }

.home-cta {
    position: relative;
    padding: 105px 0;
    overflow: hidden;
    background: radial-gradient(circle at 80% 120%, rgba(0, 226, 126, 0.34), transparent 42%), #07110f;
    border-top: 1px solid var(--home-line);
}

.cta-layout { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }

.cta-layout h2 {
    text-align: left;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.cta-layout .home-button { flex-shrink: 0; }

.home-footer {
    padding: 48px 0;
    background: #040b0a;
    border-top: 1px solid var(--home-line);
}

.home-page .back-to-top {
    right: 20px !important;
    bottom: 20px !important;
    width: 42px !important;
    height: 42px !important;
    color: var(--home-green) !important;
    background: rgba(7, 16, 15, 0.9) !important;
    border: 1px solid rgba(24, 211, 126, 0.4) !important;
    font-size: 0.95rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(10px);
}

.home-page .back-to-top:hover {
    background: #11251f !important;
}

.home-footer .container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px 40px;
    align-items: center;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-links { display: flex; gap: 24px; }

.footer-links a {
    color: #a7b3af;
    font-size: 0.84rem;
    text-decoration: none;
}

.footer-links a:hover { color: #fff; }

.footer-disclaimer {
    max-width: 790px;
    margin: 0;
    font-size: 0.73rem !important;
    line-height: 1.6;
}

.footer-copyright { margin: 0; font-size: 0.73rem !important; text-align: right; }

@media (max-width: 1050px) {
    .hero-layout { grid-template-columns: 1fr; }
    .hero-copy { max-width: 790px; }
    .hero-visual { height: auto; aspect-ratio: 1.45 / 1; }
    .hero-visual img { width: min(104%, 880px); }
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    .proof-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--home-line); }
    .formats-layout { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .home-page .home-nav .navbar-nav { gap: 14px; }
    .home-page .home-nav .navbar-nav li:not(:last-child) { display: none; }
    .home-hero { min-height: auto; padding: 138px 0 72px; }
    .hero-layout { gap: 48px; }
    .hero-copy h1 { font-size: clamp(3rem, 12vw, 4.8rem); }
    .hero-visual { border-radius: 13px; }
    .home-section { padding: 84px 0; }
    .section-heading { display: block; }
    .section-heading h2 { margin-bottom: 22px; }
    .workflow-grid, .detail-grid { grid-template-columns: 1fr; }
    .home-steps { grid-template-columns: repeat(2, 1fr); }
    .home-steps li:nth-child(-n+2) { border-bottom: 1px solid var(--home-line); }
    .cta-layout { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
    .home-page .container { padding: 0 18px; }
    .home-wordmark { font-size: 1.2rem; }
    .home-page .logo { width: 36px; height: 36px; }
    .home-page .navbar-nav { display: flex; }
    .home-page .navbar-nav .nav-install { padding: 9px 11px; font-size: 0.78rem; }
    .hero-copy h1 { font-size: 2.95rem; }
    .hero-summary { font-size: 1rem; }
    .home-page .hero-actions { align-items: stretch; flex-direction: column; }
    .home-button { width: 100%; }
    .hero-visual { aspect-ratio: 1.1 / 1; }
    .hero-visual::before { inset: 12% 2% 10% 7%; }
    .hero-visual::after { left: 10%; right: 2%; bottom: 4%; }
    .hero-visual img {
        width: 112%;
        transform: translate3d(5px, -2px, 28px) rotateY(-3.5deg) rotateX(1deg);
    }
    .hero-visual:hover img {
        transform: translate3d(5px, -5px, 34px) rotateY(-3deg) rotateX(0.5deg);
    }
    .proof-grid, .home-steps { grid-template-columns: 1fr; }
    .proof-grid > div, .proof-grid > div:first-child, .home-steps li, .home-steps li:first-child { border-right: 0; border-left: 0; border-bottom: 1px solid var(--home-line); }
    .proof-grid > div:last-child, .home-steps li:last-child { border-bottom: 0; }
    .section-heading h2, .formats-copy h2 { font-size: 2.45rem; }
    .workflow-copy { min-height: 0; padding: 27px 24px; }
    .workflow-number { margin-bottom: 24px; }
    .detail-card > div { padding: 26px 24px 30px; }
    .home-steps li { min-height: 0; }
    .home-steps span { margin-bottom: 26px; }
    .cta-layout h2 { font-size: 2.6rem; }
    .home-footer .container { grid-template-columns: 1fr; }
    .footer-links { flex-wrap: wrap; }
    .footer-copyright { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual img { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *, .home-page *::before, .home-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
