:root {
    --bg: #f7f6f2;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-2: rgba(255, 255, 255, 0.72);
    --text: rgba(20, 24, 28, 0.92);
    --muted: rgba(20, 24, 28, 0.62);
    --line: rgba(20, 24, 28, 0.12);
    --gold: #33B371;
    /* Green Theme */
    --gold-2: #27ae60;
    /* Darker Green */
    --shadow: 0 18px 70px rgba(10, 12, 14, 0.12);
    --radius: 18px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    /* Updated gradients to Green (51, 179, 113) */
    background: radial-gradient(1200px 600px at 12% 10%, rgba(51, 179, 113, 0.08), transparent 62%),
        radial-gradient(900px 500px at 88% 30%, rgba(51, 179, 113, 0.06), transparent 58%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.92), rgba(247, 246, 242, 0.96)),
        var(--bg);
    color: var(--text);
    overflow-x: hidden;
    font-family: "Shippori Mincho", serif;
    letter-spacing: 0.02em;
}

a {
    color: inherit;
}

.container {
    width: min(var(--max), calc(100% - 3rem));
    margin: 0 auto;
}

/* fade-in */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: 1.2s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* header */
header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 1.4rem 0;
    background: linear-gradient(to bottom, rgba(247, 246, 242, 0.92), rgba(247, 246, 242, 0.35), rgba(247, 246, 242, 0));
    backdrop-filter: blur(10px);
}

.head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.seal {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.9);
}

.seal svg {
    width: 22px;
    height: 22px;
    fill: var(--gold);
}

.brand-txt {
    min-width: 0;
}

.brand-name {
    font-family: "Cinzel", serif;
    letter-spacing: 0.18em;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-sub {
    margin-top: 0.2rem;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}

nav {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
}

nav a {
    text-decoration: none;
    color: rgba(20, 24, 28, 0.74);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: 0.25s ease;
}

nav a:hover {
    color: rgba(20, 24, 28, 0.92);
    border-bottom-color: rgba(51, 179, 113, 0.55);
    /* Green */
}

.nav-cta {
    margin-left: 0.4rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(51, 179, 113, 0.45);
    /* Green */
    background: rgba(51, 179, 113, 0.14);
    /* Green */
    color: rgba(20, 24, 28, 0.92);
    text-decoration: none;
    transition: 0.25s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: rgba(51, 179, 113, 0.14);
    border-color: rgba(51, 179, 113, 0.75);
    transform: translateY(-1px);
}

/* hero */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #111;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transform: scale(1.08);
    transition: transform 7s linear, opacity 1.8s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 600px at 40% 35%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72)),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.78));
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    display: grid;
    place-items: center;
    padding-top: 4.5rem;
    /* header offset */
}

.hero-txt {
    text-align: center;
    width: min(920px, calc(100% - 2rem));
}

.kicker {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    letter-spacing: 0.28em;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
}

.h-title {
    margin: 1.2rem 0 0;
    font-family: "Cinzel", serif;
    font-weight: 400;
    letter-spacing: 0.16em;
    line-height: 1.18;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    color: white;
    /* Forced White */
}

.h-sub {
    margin: 1.2rem auto 0;
    max-width: 44rem;
    font-size: 1.05rem;
    line-height: 2.1;
    color: rgba(255, 255, 255, 0.82);
}

.hero-badges {
    margin-top: 2rem;
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.82);
}

/* sections */
main {
    position: relative;
    z-index: 1;
}

section {
    padding: 6.5rem 0;
}

.sec-head {
    text-align: center;
    margin-bottom: 3rem;
}

.sec-title {
    margin: 0;
    font-family: "Cinzel", serif;
    font-weight: 600;
    letter-spacing: 0.2em;
    font-size: 1.25rem;
    color: var(--gold);
    /* Green */
}

.sec-lead {
    margin: 1.2rem auto 0;
    max-width: 58rem;
    font-size: 1.25rem;
    line-height: 2.3;
    color: rgba(20, 24, 28, 0.82);
}

.glass {
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* pain points */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.card {
    padding: 1.6rem 1.6rem 1.4rem;
}

.card-k {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 0.85rem;
    color: rgba(20, 24, 28, 0.62);
    letter-spacing: 0.12em;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(51, 179, 113, 0.9);
    /* Green */
    box-shadow: 0 0 0 6px rgba(51, 179, 113, 0.12);
    /* Green */
}

.card h3 {
    margin: 0.9rem 0 0;
    font-size: 1.12rem;
    letter-spacing: 0.08em;
}

.card p {
    margin: 0.9rem 0 0;
    color: rgba(20, 24, 28, 0.72);
    line-height: 2;
    font-size: 0.98rem;
}

/* parallax list (Sanctuary-like) */
.stack {
    padding-top: 1rem;
}

.stack-item {
    margin: 0 auto 6.5rem;
    width: 100%;
    position: relative;
}

.img-wrap {
    width: 100%;
    height: min(72vh, 640px);
    overflow: hidden;
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid rgba(20, 24, 28, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

.p-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    display: block;
    position: relative;
    top: -10%;
    transform: translateY(0) scale(1.06);
    will-change: transform;
}

.stack-info {
    max-width: 640px;
    margin: -4.2rem auto 0;
    padding: 2.2rem 2.2rem 1.8rem;
    border-radius: var(--radius);
    border: 1px solid rgba(20, 24, 28, 0.12);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    text-align: left;
}

.stack-title {
    margin: 0;
    font-family: "Cinzel", serif;
    letter-spacing: 0.12em;
    font-weight: 600;
    font-size: 1.35rem;
}

.stack-desc {
    margin: 1.1rem 0 0;
    line-height: 2.1;
    color: rgba(20, 24, 28, 0.74);
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.4rem;
    flex-wrap: wrap;
}

.btn-line {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(20, 24, 28, 0.45);
    padding-bottom: 4px;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: rgba(20, 24, 28, 0.92);
    transition: 0.25s ease;
}

.btn-line:hover {
    opacity: 0.78;
    border-bottom-color: rgba(51, 179, 113, 0.65);
    /* Green */
}

.tag {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: rgba(20, 24, 28, 0.62);
    border: 1px solid rgba(20, 24, 28, 0.12);
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    background: rgba(51, 179, 113, 0.10);
    /* Green */
}

/* steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.step {
    padding: 1.3rem 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(20, 24, 28, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.step-no {
    font-family: "Cinzel", serif;
    letter-spacing: 0.14em;
    color: var(--gold);
}

.step h4 {
    margin: 0.8rem 0 0;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.step p {
    margin: 0.7rem 0 0;
    color: rgba(20, 24, 28, 0.72);
    line-height: 2;
    font-size: 0.93rem;
}

/* faq */
.faq {
    max-width: 860px;
    margin: 0 auto;
}

details {
    border: 1px solid rgba(20, 24, 28, 0.12);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.9rem;
}

summary {
    cursor: pointer;
    list-style: none;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    letter-spacing: 0.08em;
    color: rgba(20, 24, 28, 0.92);
}

summary::-webkit-details-marker {
    display: none;
}

.ans {
    margin-top: 0.9rem;
    color: rgba(20, 24, 28, 0.76);
    line-height: 2.05;
}

/* representative greeting (Sanctuary style) */
.greeting-section {
    position: relative;
}

.greeting-glass {
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

.greeting-img-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
}

.greeting-img-placeholder {
    width: 100%;
    height: 100%;
    background: #f4f6f8;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.g-prof {
    text-align: right;
    margin-top: 2rem;
}

.g-prof span {
    display: block;
}

.g-role {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.g-name {
    font-family: "Cinzel", serif;
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 980px) {
    .greeting-glass {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* company info */
.company {
    padding: 5rem 0 8.5rem;
    border-top: 1px solid rgba(20, 24, 28, 0.08);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
}

.company-box {
    padding: 2.2rem;
}

.co-title {
    font-family: "Cinzel", serif;
    letter-spacing: 0.2em;
    color: var(--gold);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.co-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 1.6rem;
}

.kv {
    border: 1px solid rgba(20, 24, 28, 0.12);
    border-radius: 14px;
    padding: 1rem 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.k {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: rgba(20, 24, 28, 0.62);
}

.v {
    margin-top: 0.55rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
}

.note {
    margin-top: 1.2rem;
    color: rgba(20, 24, 28, 0.6);
    font-size: 0.86rem;
    line-height: 1.9;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

/* bottom CTA bar (Sanctuary-like) */
.cta-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 200;
    border-top: 1px solid rgba(20, 24, 28, 0.12);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
    padding: 1rem 0;
}

.cta-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.cta-title {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
    color: rgba(20, 24, 28, 0.6);
}

.cta-sub {
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: rgba(20, 24, 28, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(51, 179, 113, 0.75);
    /* Green */
    background: linear-gradient(135deg, rgba(51, 179, 113, 0.22), rgba(51, 179, 113, 0.08));
    /* Green */
    color: rgba(20, 24, 28, 0.92);
    text-decoration: none;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: 0.25s ease;
    white-space: nowrap;
}

.btn-solid:hover {
    transform: translateY(-1px);
    border-color: rgba(51, 179, 113, 0.95);
    background: linear-gradient(135deg, rgba(51, 179, 113, 0.3), rgba(51, 179, 113, 0.12));
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 24, 28, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: rgba(20, 24, 28, 0.9);
    text-decoration: none;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    letter-spacing: 0.1em;
    transition: 0.25s ease;
    white-space: nowrap;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.88);
}

/* modal (for details) */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-panel {
    width: min(980px, calc(100% - 2rem));
    max-height: 88vh;
    overflow: hidden;
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 15, 18, 0.92);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
    transform: translateY(10px);
    transition: transform 0.25s ease;
}

.modal.active .modal-panel {
    transform: translateY(0);
}

.modal-img {
    width: 100%;
    height: 44vh;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-body {
    padding: 2rem 2rem 2.2rem;
    overflow: auto;
}

.modal-h {
    margin: 0;
    font-family: "Cinzel", serif;
    letter-spacing: 0.14em;
    font-size: 1.5rem;
}

.modal-p {
    margin: 1rem 0 0;
    line-height: 2.05;
    color: rgba(255, 255, 255, 0.78);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

/* responsive */
@media (max-width: 980px) {
    nav {
        display: none;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .co-grid {
        grid-template-columns: 1fr;
    }

    .img-wrap {
        height: 52vh;
    }

    section {
        padding: 5.5rem 0;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-actions {
        width: 100%;
        justify-content: stretch;
    }

    .btn-solid,
    .btn-ghost {
        width: 100%;
    }
}

/* spacer for fixed cta bar */
.cta-spacer {
    height: 96px;
}

@media (max-width: 980px) {
    .cta-spacer {
        height: 160px;
    }
}

/* Background Utilities */
.bg-white {
    background-color: rgba(255, 255, 255, 0.6);
}

.bg-light {
    background-color: rgba(247, 246, 242, 0.6);
}

/* Footer & Company Section in Footer */
footer {
    border-top: 1px solid rgba(20, 24, 28, 0.08);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.72), rgba(247, 246, 242, 0.9));
    padding-top: 5rem;
    padding-bottom: 2rem;
}

/* Footer content grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.footer-column {
    min-width: 0;
}

.footer-title {
    font-family: "Shippori Mincho", serif;
}

.footer-heading {
    font-family: "Shippori Mincho", serif;
}

.footer-list a:hover {
    color: rgba(20, 24, 28, 0.92);
}

/* Reusing company-box styles but ensuring they work in footer context */
footer .company-box {
    margin-bottom: 3rem;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}