:root {
    --deep-green: #0B3D2E;
    --organic-green: #1F7A3F;
    --light-green: #E8F5E9;
    --premium-gold: #D6A84F;
    --cream: #F7F5EE;
    --text-dark: #1C1C1C;
    --white: #FFFFFF;
    --muted: #61706A;
    --border: rgba(11, 61, 46, 0.10);
    --shadow-soft: 0 24px 60px rgba(10, 50, 35, 0.09);
    --shadow-card: 0 16px 38px rgba(12, 42, 31, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --header-height: 88px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-dark);
    background:
        radial-gradient(circle at 12% 8%, rgba(214, 168, 79, 0.16), transparent 24%),
        radial-gradient(circle at 92% 12%, rgba(31, 122, 63, 0.12), transparent 20%),
        linear-gradient(180deg, #fbfaf5 0%, #f7f5ee 45%, #f2f6ee 100%);
    font-family: "Manrope", sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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

button,
input,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.01em;
    line-height: 1.05;
    margin: 0 0 0.75rem;
}

p {
    margin: 0 0 1rem;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.section-spacing {
    padding: 5.75rem 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--premium-gold);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: "";
    width: 46px;
    height: 1px;
    background: rgba(214, 168, 79, 0.55);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 54px;
    padding: 0.9rem 1.5rem;
    border: 0;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--deep-green), var(--organic-green));
    box-shadow: 0 16px 34px rgba(11, 61, 46, 0.23);
}

.btn-primary:hover {
    box-shadow: 0 20px 42px rgba(11, 61, 46, 0.28);
}

.btn-secondary {
    color: var(--deep-green);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(11, 61, 46, 0.12);
    box-shadow: 0 12px 26px rgba(11, 61, 46, 0.08);
}

.btn-block {
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(247, 245, 238, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(11, 61, 46, 0.08);
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 252, 245, 0.92);
    box-shadow: 0 16px 40px rgba(11, 61, 46, 0.08);
    border-bottom-color: rgba(11, 61, 46, 0.10);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 800;
    background:
        radial-gradient(circle at top left, rgba(214, 168, 79, 0.4), transparent 35%),
        linear-gradient(135deg, var(--deep-green), #145238);
    box-shadow: 0 16px 30px rgba(11, 61, 46, 0.18);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font-size: 1rem;
    font-weight: 800;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.78rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.site-nav a:not(.btn) {
    font-size: 0.94rem;
    font-weight: 700;
    color: rgba(28, 28, 28, 0.78);
    position: relative;
}

.site-nav a:not(.btn):hover {
    color: var(--deep-green);
}

.site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--premium-gold), var(--organic-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.site-nav a:not(.btn):hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    width: 48px;
    height: 48px;
    display: none;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 26px rgba(11, 61, 46, 0.07);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--deep-green);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-section {
    position: relative;
    overflow: clip;
    padding-top: calc(4.5rem + 1rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.7rem, 5vw, 5rem);
    max-width: 12ch;
    color: var(--deep-green);
}

.hero-copy p {
    max-width: 640px;
    font-size: 1.08rem;
    color: rgba(28, 28, 28, 0.78);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.8rem 0 2rem;
}

.hero-proofbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 2rem;
}

.proof-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.58rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(11, 61, 46, 0.09);
    box-shadow: 0 12px 26px rgba(11, 61, 46, 0.06);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--deep-green);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 560px;
}

.metric-card {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(11, 61, 46, 0.08);
    box-shadow: var(--shadow-card);
}

.metric-card strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--deep-green);
}

.metric-card span {
    font-size: 0.92rem;
    color: var(--muted);
}

.hero-visual {
    position: relative;
}

.visual-card {
    position: relative;
    min-height: 590px;
    padding: 1.5rem;
    border-radius: calc(var(--radius-xl) + 6px);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250, 252, 247, 0.86)),
        linear-gradient(135deg, rgba(214,168,79,0.12), rgba(31,122,63,0.08));
    border: 1px solid rgba(11, 61, 46, 0.09);
    box-shadow: var(--shadow-soft);
}

.visual-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(11, 61, 46, 0.88);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
}

.visual-stage {
    position: relative;
    height: 100%;
    min-height: 540px;
    border-radius: calc(var(--radius-xl) - 4px);
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 18%, rgba(214, 168, 79, 0.18), transparent 18%),
        radial-gradient(circle at 78% 22%, rgba(31, 122, 63, 0.12), transparent 22%),
        linear-gradient(180deg, #f3f7ef 0%, #eef5ea 100%);
}

.product-arch {
    position: absolute;
    inset: auto 12% 14% 12%;
    height: 220px;
    border-radius: 50% 50% 24px 24px;
    background:
        radial-gradient(circle at 50% 10%, rgba(214,168,79,0.32), transparent 30%),
        linear-gradient(180deg, rgba(31,122,63,0.16), rgba(11,61,46,0.08));
    border: 1px solid rgba(11, 61, 46, 0.08);
}

.product-tile {
    position: absolute;
    width: min(290px, 78%);
    padding: 1.2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(11, 61, 46, 0.08);
    box-shadow: 0 22px 45px rgba(11, 61, 46, 0.10);
}

.product-tile strong {
    display: block;
    margin: 0.4rem 0 0.2rem;
    font-size: 1.1rem;
    color: var(--deep-green);
}

.product-tile small {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.product-tile-one {
    left: 8%;
    top: 24%;
}

.product-tile-two {
    right: 8%;
    bottom: 12%;
}

.tile-icon {
    width: 42px;
    height: 42px;
    display: inline-block;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(214, 168, 79, 0.55), transparent 35%),
        linear-gradient(135deg, var(--deep-green), var(--organic-green));
}

.leaf {
    position: absolute;
    border-radius: 100% 0 100% 0;
    background: linear-gradient(135deg, rgba(31, 122, 63, 0.28), rgba(214, 168, 79, 0.18));
    filter: blur(0.2px);
}

.leaf-one {
    width: 140px;
    height: 60px;
    top: 16%;
    right: 14%;
    transform: rotate(32deg);
}

.leaf-two {
    width: 120px;
    height: 54px;
    left: 8%;
    bottom: 12%;
    transform: rotate(-28deg);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
}

.hero-orb-one {
    width: 180px;
    height: 180px;
    background: rgba(214, 168, 79, 0.18);
    top: 6%;
    left: -20px;
}

.hero-orb-two {
    width: 240px;
    height: 240px;
    background: rgba(31, 122, 63, 0.12);
    right: 2%;
    bottom: 12%;
}

.brand-strip-section {
    padding: 0 0 1rem;
}

.brand-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(11, 61, 46, 0.08);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.brand-strip span {
    font-size: 0.86rem;
    font-weight: 800;
    color: #305445;
    letter-spacing: 0.02em;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 2rem;
}

.section-heading h2,
.about-card h2,
.registration-info h2,
.login-panel h2 {
    font-size: clamp(2.2rem, 3.6vw, 3.6rem);
    color: var(--deep-green);
}

.trust-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.feature-card,
.step-card {
    height: 100%;
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(11, 61, 46, 0.08);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(214, 168, 79, 0.28);
    box-shadow: 0 24px 44px rgba(11, 61, 46, 0.11);
}

.icon-badge,
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--deep-green);
    background:
        radial-gradient(circle at 28% 28%, rgba(214, 168, 79, 0.42), transparent 32%),
        linear-gradient(135deg, rgba(31,122,63,0.10), rgba(214,168,79,0.12));
}

.feature-card h3,
.step-card h3,
.point-item h3,
.benefit-item h3 {
    font-size: 1.45rem;
    color: var(--deep-green);
}

.feature-card p,
.step-card p,
.point-item p,
.benefit-item p {
    color: var(--muted);
    font-size: 0.96rem;
}

.about-grid,
.registration-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 1.4rem;
    align-items: stretch;
}

.about-card,
.about-points,
.registration-info,
.form-card,
.login-panel {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(11, 61, 46, 0.08);
    box-shadow: var(--shadow-card);
}

.about-card,
.registration-info,
.form-card,
.login-panel,
.feature-card,
.step-card {
    position: relative;
    overflow: hidden;
}

.about-card::before,
.registration-info::before,
.form-card::before,
.login-panel::before,
.feature-card::before,
.step-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(214, 168, 79, 0.14), transparent 68%);
    pointer-events: none;
}

.about-points,
.benefit-list {
    display: grid;
    gap: 1rem;
}

.point-item,
.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.point-dot,
.benefit-icon {
    width: 16px;
    height: 16px;
    margin-top: 0.45rem;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--premium-gold), var(--organic-green));
    box-shadow: 0 8px 18px rgba(11, 61, 46, 0.16);
}

.center-cta {
    margin-top: 2rem;
    text-align: center;
}

.registration-section {
    position: relative;
}

.registration-info {
    background:
        radial-gradient(circle at top left, rgba(214,168,79,0.14), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,0.88), rgba(244,248,241,0.88));
}

.form-shell {
    display: flex;
}

.form-card {
    width: 100%;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.88)),
        linear-gradient(135deg, rgba(31,122,63,0.05), rgba(214,168,79,0.05));
}

.form-header h2 {
    font-size: 2.2rem;
    color: var(--deep-green);
}

.form-header p {
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field-group {
    display: grid;
    gap: 0.45rem;
}

.field-group.full-width {
    grid-column: 1 / -1;
}

.field-group label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--deep-green);
}

.field-group input,
.field-group textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(11, 61, 46, 0.12);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 5.5rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--forest-green);
    cursor: pointer;
    border-radius: 999px;
}

.password-toggle:hover {
    color: var(--deep-green);
    background: rgba(18, 53, 36, 0.06);
}

.password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(31, 122, 63, 0.12);
}

.password-icon {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-icon-hide {
    display: none;
}

.password-toggle.is-visible .password-icon-show {
    display: none;
}

.password-toggle.is-visible .password-icon-hide {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.password-hint {
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(31, 49, 61, 0.72);
    min-height: 1.2rem;
}

.field-helper {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(69, 103, 87, 0.92);
}

.sponsor-lookup {
    display: none;
    padding: 0.72rem 0.9rem;
    border-radius: 14px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.45;
}

.sponsor-lookup.is-visible {
    display: block;
}

.sponsor-lookup.is-loading {
    color: #6a5200;
    background: rgba(214, 168, 79, 0.12);
    border: 1px solid rgba(214, 168, 79, 0.22);
}

.sponsor-lookup.is-valid {
    color: #0d7a39;
    background: rgba(31, 122, 63, 0.12);
    border: 1px solid rgba(31, 122, 63, 0.18);
}

.sponsor-lookup.is-error {
    color: #8d1f1f;
    background: rgba(196, 53, 53, 0.10);
    border: 1px solid rgba(196, 53, 53, 0.16);
}

.password-hint.is-valid {
    color: #0d7a39;
}

.password-hint.is-error {
    color: #8d1f1f;
}

.field-group textarea {
    resize: vertical;
    min-height: 120px;
}

.field-group input:focus,
.field-group textarea:focus {
    border-color: rgba(31, 122, 63, 0.45);
    box-shadow: 0 0 0 4px rgba(31, 122, 63, 0.10);
}

.field-error {
    border-color: rgba(182, 32, 32, 0.42) !important;
    box-shadow: 0 0 0 4px rgba(182, 32, 32, 0.08) !important;
}

.form-message {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    font-size: 0.92rem;
    font-weight: 700;
}

.success-message {
    color: #0d5d26;
    background: rgba(31, 122, 63, 0.12);
    border: 1px solid rgba(31, 122, 63, 0.18);
}

.registration-loading-screen,
.registration-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(7, 25, 19, 0.58);
    backdrop-filter: blur(10px);
}

.registration-loading-card,
.registration-popup-card {
    position: relative;
    width: min(100%, 560px);
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background:
        radial-gradient(circle at top right, rgba(214, 168, 79, 0.24), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,0.97), rgba(244,248,241,0.94));
    box-shadow: 0 26px 60px rgba(10, 34, 26, 0.26);
}

.registration-loading-card {
    padding: 2rem;
}

.registration-popup-card {
    padding: 2rem 2rem 1.8rem;
    animation: popupEnter 0.45s ease;
}

.loading-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.7;
}

.loading-glow-one {
    top: -20px;
    right: -18px;
    width: 132px;
    height: 132px;
    background: rgba(214, 168, 79, 0.26);
}

.loading-glow-two {
    bottom: -26px;
    left: -18px;
    width: 120px;
    height: 120px;
    background: rgba(31, 122, 63, 0.14);
}

.loading-spinner-ring {
    display: inline-grid;
    place-items: center;
    width: 90px;
    height: 90px;
    margin-bottom: 1.1rem;
}

.loading-spinner-ring span {
    grid-area: 1 / 1;
    border-radius: 50%;
    border-style: solid;
    border-color: var(--forest-green) transparent transparent transparent;
    animation: spinnerOrbit 1.45s linear infinite;
}

.loading-spinner-ring span:nth-child(1) {
    width: 90px;
    height: 90px;
    border-width: 4px;
}

.loading-spinner-ring span:nth-child(2) {
    width: 68px;
    height: 68px;
    border-width: 4px;
    animation-duration: 1.1s;
    border-color: rgba(214, 168, 79, 0.92) transparent transparent transparent;
}

.loading-spinner-ring span:nth-child(3) {
    width: 46px;
    height: 46px;
    border-width: 3px;
    animation-duration: 0.9s;
    border-color: rgba(18, 53, 36, 0.82) transparent transparent transparent;
}

.loading-status,
.loading-steps {
    position: relative;
    z-index: 1;
}

.loading-eyebrow,
.registration-popup-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--deep-green);
    background: rgba(18, 53, 36, 0.08);
}

.loading-status h2,
.registration-popup-card h2 {
    margin: 0.9rem 0 0.65rem;
    color: var(--deep-green);
    font-size: 2rem;
}

.loading-status p,
.registration-popup-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.loading-steps {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.loading-steps div,
.registration-popup-grid div {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(11, 61, 46, 0.08);
    color: var(--text-dark);
}

.registration-popup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1.4rem 0 1.3rem;
}

.registration-popup-grid strong {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--forest-green);
}

.registration-popup-grid span {
    font-weight: 700;
    color: var(--deep-green);
    overflow-wrap: anywhere;
}

.registration-popup-footnote {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.error-message {
    color: #8d1f1f;
    background: rgba(196, 53, 53, 0.10);
    border: 1px solid rgba(196, 53, 53, 0.16);
}

.is-hidden {
    display: none;
}

@keyframes spinnerOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes popupEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(214,168,79,0.14), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,0.92), rgba(240,246,238,0.92));
}

.site-footer {
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(11, 61, 46, 0.98), #072f23);
    color: rgba(255,255,255,0.85);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 1.5rem;
}

.site-footer h3,
.site-footer h4 {
    color: var(--white);
    font-size: 1.7rem;
    margin-bottom: 0.65rem;
}

.site-footer h4 {
    font-size: 1.3rem;
}

.site-footer a {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.78);
}

.site-footer a:hover {
    color: var(--white);
}

.auth-page,
.member-page {
    min-height: 100vh;
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 2rem 0;
}

.auth-surface {
    width: min(1180px, calc(100% - 2rem));
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 1.5rem;
    align-items: stretch;
}

.auth-copy,
.auth-form-card,
.member-hero,
.member-stat-card,
.member-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(11, 61, 46, 0.08);
    box-shadow: var(--shadow-card);
}

.auth-copy,
.auth-form-card {
    border-radius: 30px;
    padding: 2rem;
}

.auth-copy {
    background:
        radial-gradient(circle at top left, rgba(214,168,79,0.16), transparent 22%),
        linear-gradient(180deg, rgba(255,255,255,0.88), rgba(243,248,240,0.92));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-copy h1 {
    font-size: clamp(2.5rem, 4vw, 4.2rem);
    color: var(--deep-green);
}

.auth-copy p,
.auth-subtext {
    color: var(--muted);
}

.auth-copy-card {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(11, 61, 46, 0.08);
}

.auth-copy-card strong,
.auth-copy-card span {
    display: block;
}

.auth-copy-card strong {
    color: var(--deep-green);
    margin-bottom: 0.25rem;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.4rem;
}

.auth-links a {
    font-weight: 800;
    color: var(--deep-green);
}

.auth-form-card h2,
.member-hero h1,
.member-panel h2 {
    color: var(--deep-green);
    font-size: 2rem;
}

.member-header {
    position: sticky;
}

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

.member-main {
    padding-top: 2rem;
}

.member-hero {
    border-radius: 28px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.member-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.member-stat-card {
    border-radius: 24px;
    padding: 1.3rem;
}

.member-stat-card strong {
    display: block;
    font-size: 1.8rem;
    color: var(--deep-green);
}

.member-stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.member-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.member-panel {
    border-radius: 28px;
    padding: 1.5rem;
}

.member-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.member-info-grid div {
    display: grid;
    gap: 0.22rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(18, 53, 36, 0.04);
    border: 1px solid rgba(11, 61, 46, 0.06);
}

.member-info-grid strong {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--forest-green);
}

.member-info-grid span {
    color: var(--deep-green);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.member-tree-panel {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.member-tree-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.member-tree-head h2 {
    margin: 0.35rem 0 0;
}

.member-tree-note {
    margin: 0.55rem 0 0;
    color: var(--muted);
    max-width: 680px;
}

.member-tree-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(18, 53, 36, 0.06);
}

.member-tree-tab {
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.1rem;
    background: transparent;
    color: var(--deep-green);
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.member-tree-tab.is-active {
    background: linear-gradient(135deg, var(--deep-green), var(--forest-green));
    color: var(--white);
    box-shadow: 0 14px 28px rgba(11, 61, 46, 0.18);
}

.network-tree-root-card {
    margin-bottom: 1.4rem;
    padding: 1.2rem 1.3rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(214,168,79,0.18), transparent 30%),
        linear-gradient(135deg, rgba(18,53,36,0.96), rgba(31,122,63,0.94));
    color: var(--white);
}

.network-tree-root-card h3 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.5rem;
}

.network-tree-root-card p {
    margin: 0;
    color: rgba(255,255,255,0.82);
}

.network-tree-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.network-tree-member-id {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.network-tree-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.68rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.network-tree-status.is-active {
    background: rgba(17, 152, 81, 0.14);
    color: #0c7d41;
}

.network-tree-status.is-inactive {
    background: rgba(91, 101, 117, 0.16);
    color: #5b6575;
}

.network-tree-status.is-pending {
    background: rgba(214, 168, 79, 0.18);
    color: #976100;
}

.network-tree-root-card .network-tree-status {
    background: rgba(255,255,255,0.18);
    color: var(--white);
}

.network-tree-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.network-tree-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: rgba(11, 61, 46, 0.08);
    color: inherit;
    font-size: 0.82rem;
    font-weight: 700;
}

.member-tree-pane {
    display: none;
}

.member-tree-pane.is-active {
    display: block;
}

.member-tree-scroll {
    overflow-x: auto;
    padding-bottom: 0.4rem;
}

.member-tree-empty {
    padding: 1.15rem 1.2rem;
    border-radius: 20px;
    background: rgba(18, 53, 36, 0.05);
    color: var(--muted);
}

.network-tree-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 1rem 1rem 0;
    min-width: max-content;
    position: relative;
}

.network-tree-list .network-tree-list {
    padding-top: 2.2rem;
}

.network-tree-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
}

.network-tree-item::before {
    content: "";
    position: absolute;
    top: -1.3rem;
    left: 50%;
    width: 2px;
    height: 1.3rem;
    background: rgba(18, 53, 36, 0.14);
    transform: translateX(-50%);
}

.network-tree-list > .network-tree-item::before {
    display: none;
}

.network-tree-list .network-tree-list::before {
    content: "";
    position: absolute;
    top: 0.9rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: rgba(18, 53, 36, 0.14);
}

.network-tree-card {
    width: 100%;
    padding: 1rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(214,168,79,0.12), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,250,244,0.94));
    border: 1px solid rgba(11, 61, 46, 0.08);
    box-shadow: 0 16px 30px rgba(11, 61, 46, 0.08);
}

.network-tree-card h3 {
    margin: 0.75rem 0 0.2rem;
    font-size: 1.05rem;
    color: var(--deep-green);
}

.network-tree-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.member-list-row,
.member-table-head,
.member-table-row {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
    gap: 0.8rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(11, 61, 46, 0.08);
}

.member-list-row {
    grid-template-columns: 1fr auto;
}

.member-table-head {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #456757;
}

.member-table-row:last-child,
.member-list-row:last-child {
    border-bottom: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-delay {
    transition-delay: 0.12s;
}

.reveal-delay-2 {
    transition-delay: 0.22s;
}

.reveal-delay-3 {
    transition-delay: 0.32s;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .registration-grid,
    .trust-grid,
    .steps-grid,
    .footer-grid,
    .auth-surface,
    .member-stats-grid,
    .brand-strip {
        grid-template-columns: 1fr 1fr;
    }

    .visual-card {
        min-height: 500px;
    }

    .member-grid {
        grid-template-columns: 1fr;
    }

    .member-tree-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .member-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    :root {
        --header-height: 78px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.7rem);
        left: 1rem;
        right: 1rem;
        padding: 1rem;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(11, 61, 46, 0.08);
        box-shadow: var(--shadow-soft);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a:not(.btn) {
        padding: 0.2rem 0;
    }

    .hero-grid,
    .about-grid,
    .registration-grid,
    .trust-grid,
    .steps-grid,
    .footer-grid,
    .auth-surface,
    .member-stats-grid,
    .brand-strip {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .hero-metrics,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .visual-card {
        min-height: 440px;
    }

    .login-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .member-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .member-tree-tabs {
        width: 100%;
    }

    .member-tree-tab {
        flex: 1 1 220px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .section-spacing {
        padding: 4.25rem 0;
    }

    .container {
        width: min(100% - 1.2rem, 1180px);
    }

    .brand-copy small {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .feature-card,
    .step-card,
    .about-card,
    .about-points,
    .registration-info,
    .form-card,
    .login-panel {
        padding: 1.2rem;
        border-radius: 22px;
    }

    .product-tile {
        width: min(260px, 84%);
    }

    .product-tile-one {
        left: 6%;
        top: 20%;
    }

    .product-tile-two {
        right: 6%;
        bottom: 10%;
    }

    .registration-loading-card,
    .registration-popup-card {
        padding: 1.3rem;
        border-radius: 24px;
    }

    .loading-status h2,
    .registration-popup-card h2 {
        font-size: 1.55rem;
    }

    .registration-popup-grid {
        grid-template-columns: 1fr;
    }

    .network-tree-root-card,
    .network-tree-card {
        border-radius: 20px;
    }

    .network-tree-item {
        min-width: 200px;
    }
}
