:root {
    --landing-ink: #163b38;
    --landing-teal: #0f766e;
    --landing-mint: #dff3eb;
    --landing-coral: #ed6a5a;
    --landing-gold: #f4c95d;
}

.landing-shell {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 18%, #dff3eb 0, transparent 25%),
        radial-gradient(circle at 88% 10%, #fff0d0 0, transparent 24%),
        linear-gradient(135deg, #f9fbf7 0%, #eef7f1 50%, #fffaf2 100%);
}

.landing-shell::before,
.landing-shell::after {
    position: absolute;
    z-index: 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    content: '';
    pointer-events: none;
    filter: blur(8px);
    opacity: .42;
    animation: landing-drift 13s ease-in-out infinite alternate;
}

.landing-shell::before {
    top: 270px;
    left: -220px;
    background: radial-gradient(circle, #bfe8d7 0, transparent 68%);
}

.landing-shell::after {
    right: -210px;
    bottom: 80px;
    background: radial-gradient(circle, #ffdca8 0, transparent 68%);
    animation-delay: -5s;
}

.topbar,
.landing-main,
.footer { position: relative; z-index: 1; }

.topbar { padding-top: 30px; }
.landing-brand img { display: block; width: 154px; height: 46px; object-fit: contain; object-position: left center; }
.landing-brand > span { display: none; }
.topbar .button-ghost { background: #ffffffbd; backdrop-filter: blur(12px); }

.landing-main { padding-top: 82px; }
.hero-grid { gap: 96px; }
.hero-copy { animation: landing-rise .7s ease both; }
.hero-copy h1 { color: var(--landing-ink); text-wrap: balance; }
.hero-copy h1 em { display: inline-block; background: linear-gradient(120deg, var(--landing-coral), #d94c63, var(--landing-coral)); background-size: 220% auto; color: transparent; background-clip: text; animation: landing-shimmer 5s linear infinite; }
.hero-lede { color: #657b76; }
.hero-actions .button-primary { background: linear-gradient(135deg, #0f766e, #0b5c5a); transition: transform .2s ease, box-shadow .2s ease; }
.hero-actions .button-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 26px #0f766e38; }
.trust-row { animation: landing-rise .7s .18s ease both; }

.hero-art { min-height: 500px; animation: landing-rise .8s .12s ease both; }
.hero-art::before { position: absolute; inset: 12% 8% 10%; border-radius: 38% 62% 55% 45% / 42% 38% 62% 58%; background: linear-gradient(135deg, #d8f0e6cc, #fff0ceaa); content: ''; transform: rotate(-8deg); animation: landing-morph 11s ease-in-out infinite alternate; }
.preview-card.preview-main { border: 1px solid #ffffffc4; background: #ffffffd9; box-shadow: 0 30px 70px #24524722, 0 0 0 10px #ffffff42; backdrop-filter: blur(18px); animation: landing-float 6s ease-in-out infinite; }
.floating-note { border: 1px solid #ffffffd4; background: #ffffffeb; box-shadow: 0 15px 35px #2452471c; backdrop-filter: blur(14px); animation: landing-float 5s 1s ease-in-out infinite reverse; }
.art-orbit { opacity: .7; border-color: #0f766e2e; }

.groups-section { position: relative; margin-top: 100px; padding: 34px 0 18px; border-top: 1px solid #cfe3d9; }
.section-heading h2 { color: var(--landing-ink); }
.group-grid { gap: 16px; }
.group-tile { position: relative; overflow: hidden; min-height: 218px; padding: 22px; border: 1px solid #d4e7df; border-radius: 18px; background: #ffffffc9; box-shadow: 0 12px 30px #2452470d; backdrop-filter: blur(12px); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; animation: landing-rise .65s ease both; }
.group-tile:nth-child(2) { animation-delay: .1s; }
.group-tile:nth-child(3) { animation-delay: .2s; }
.group-tile::before { position: absolute; right: -42px; bottom: -65px; width: 150px; height: 150px; border-radius: 50%; background: color-mix(in srgb, var(--group-color) 22%, transparent); content: ''; }
.group-tile:hover { transform: translateY(-7px); border-color: color-mix(in srgb, var(--group-color) 55%, #d4e7df); box-shadow: 0 20px 38px #24524718; }
.tile-icon { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 15px; background: var(--group-color); color: #fff; font-size: 21px; font-weight: 800; box-shadow: 0 8px 18px color-mix(in srgb, var(--group-color) 28%, transparent); }
.tile-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-arrow { color: var(--group-color); }
.group-tile h3 { margin: 20px 0 7px; color: var(--landing-ink); }
.group-tile p { min-height: 40px; color: #71827e; line-height: 1.5; }
.tile-meta { color: var(--group-color); font-size: 11px; font-weight: 800; }
.footer { color: #78908a; }

@keyframes landing-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes landing-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(.5deg); } }
@keyframes landing-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(35px, -22px, 0) scale(1.08); } }
@keyframes landing-morph { from { border-radius: 38% 62% 55% 45% / 42% 38% 62% 58%; transform: rotate(-8deg) scale(1); } to { border-radius: 60% 40% 40% 60% / 55% 55% 45% 45%; transform: rotate(5deg) scale(1.04); } }
@keyframes landing-shimmer { to { background-position: 220% center; } }

@media (max-width: 820px) {
    .landing-brand img { width: 128px; height: 40px; }
    .landing-main { padding-top: 54px; }
    .hero-grid { gap: 34px; }
    .hero-art { min-height: 420px; transform: scale(.92); transform-origin: top center; }
    .groups-section { margin-top: 35px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
