/* =============================================
   Farm Link Puzzle — Claymorphism Farm Game Theme
   Colors inspired by casual farm puzzle games:
   lime green, golden orange, cream, wood brown
   ============================================= */

:root {
    --green-lime: #84CC16;
    --green-dark: #4D7C0F;
    --green-forest: #365314;
    --yellow-bright: #FBBF24;
    --orange-warm: #F97316;
    --orange-deep: #C2410C;
    --pink-accent: #EC4899;
    --purple-accent: #A855F7;
    --cream: #FFFBEB;
    --cream-dark: #FEF3C7;
    --wood: #92400E;
    --wood-dark: #78350F;
    --wood-light: #B45309;
    --sky: #BAE6FD;
    --sky-deep: #7DD3FC;
    --grass: #86EFAC;
    --grass-deep: #4ADE80;
    --text: #451A03;
    --text-muted: #78350F;
    --white: #FFFFFF;
    --shadow-clay: 4px 4px 0 var(--wood-dark), 0 8px 24px rgba(69, 26, 3, 0.12);
    --shadow-clay-hover: 2px 2px 0 var(--wood-dark), 0 4px 12px rgba(69, 26, 3, 0.15);
    --radius-clay: 20px;
    --radius-pill: 999px;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --nav-height: 72px;
    --vine-width: 56px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: linear-gradient(180deg, var(--cream) 0%, #F0FDF4 40%, var(--cream-dark) 100%);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---- Background floating leaves ---- */
.bg-leaves {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.leaf {
    position: absolute;
    width: 28px;
    height: 28px;
    background: var(--green-lime);
    border-radius: 0 80% 0 80%;
    opacity: 0.25;
    animation: leafDrift 12s ease-in-out infinite;
}

.leaf-1 { top: 12%; left: 8%; animation-delay: 0s; transform: rotate(20deg); }
.leaf-2 { top: 35%; right: 6%; animation-delay: -3s; width: 20px; height: 20px; }
.leaf-3 { top: 60%; left: 4%; animation-delay: -6s; opacity: 0.18; }
.leaf-4 { top: 78%; right: 10%; animation-delay: -2s; width: 22px; height: 22px; }
.leaf-5 { top: 48%; left: 50%; animation-delay: -8s; opacity: 0.15; }

@keyframes leafDrift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(12deg); }
}

/* ---- Level vine (desktop scroll progress) ---- */
.level-vine {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.vine-stem {
    position: absolute;
    top: 24px;
    bottom: 24px;
    width: 6px;
    background: linear-gradient(180deg, var(--green-lime), var(--green-dark));
    border-radius: 3px;
    z-index: -1;
}

.vine-stem::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--green-lime);
    border-radius: 3px;
    transform-origin: top;
    transform: scaleY(var(--vine-progress, 0));
    transition: transform 0.3s ease;
}

.vine-node {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--cream);
    border: 3px solid var(--wood);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--wood-dark);
    margin: 20px 0;
    box-shadow: 2px 2px 0 var(--wood-dark);
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.vine-node.active {
    background: var(--yellow-bright);
    transform: scale(1.12);
    box-shadow: 3px 3px 0 var(--orange-deep), 0 0 16px rgba(251, 191, 36, 0.5);
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1100px;
    z-index: 1000;
    transition: top 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    top: 8px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    background: var(--cream);
    border: 3px solid var(--wood);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-clay);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid var(--wood);
    object-fit: cover;
}

.nav-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.title-fun {
    color: var(--green-lime);
    text-shadow: 1px 1px 0 var(--green-dark);
}

.title-levels {
    color: var(--orange-warm);
    text-shadow: 1px 1px 0 var(--orange-deep);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.2s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--green-dark);
}

.btn-download-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(180deg, var(--green-lime), var(--green-dark));
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border: 3px solid var(--wood);
    border-radius: var(--radius-pill);
    box-shadow: 3px 3px 0 var(--wood-dark);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-download-nav:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--wood-dark);
}

.btn-download-nav svg {
    width: 16px;
    height: 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--wood-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Clay buttons ---- */
.btn-clay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border: 3px solid var(--wood);
    border-radius: var(--radius-clay);
    box-shadow: var(--shadow-clay);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    cursor: pointer;
}

.btn-clay svg {
    width: 20px;
    height: 20px;
}

.btn-clay:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-clay-hover);
}

.btn-clay:active {
    transform: translate(4px, 4px);
    box-shadow: 1px 1px 0 var(--wood-dark);
}

.btn-appstore {
    background: linear-gradient(180deg, var(--yellow-bright), var(--orange-warm));
    color: var(--text);
}

.btn-playstore {
    background: linear-gradient(180deg, var(--green-lime), var(--green-dark));
    color: var(--white);
}

.btn-lg {
    padding: 16px 28px;
    font-size: 1.05rem;
}

.btn-confirm {
    background: linear-gradient(180deg, var(--green-lime), var(--green-dark));
    color: var(--white);
    width: 100%;
    margin-top: 8px;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-height) + 48px) 24px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-sky {
    position: absolute;
    inset: 0 0 45%;
    background: linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 60%, transparent 100%);
    z-index: -3;
}

.hero-meadow {
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(180deg, var(--grass) 0%, var(--grass-deep) 100%);
    z-index: -2;
}

.hero-fence {
    position: absolute;
    bottom: 38%;
    left: 0;
    right: 0;
    height: 40px;
    background: repeating-linear-gradient(
        90deg,
        var(--white) 0px,
        var(--white) 16px,
        transparent 16px,
        transparent 24px
    );
    border-top: 4px solid var(--white);
    border-bottom: 4px solid var(--white);
    opacity: 0.7;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--cream);
    border: 2px solid var(--wood);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--green-dark);
    box-shadow: 2px 2px 0 var(--wood-dark);
    margin-bottom: 20px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: var(--green-lime);
}

.hero-brand {
    margin-bottom: 16px;
}

.hero-banner {
    width: min(420px, 88vw);
    margin: 0 auto;
    filter: drop-shadow(0 8px 20px rgba(69, 26, 3, 0.18));
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 20px;
}

.word-fun {
    display: inline-block;
    color: var(--yellow-bright);
    text-shadow: 3px 3px 0 var(--orange-deep), -1px -1px 0 var(--white);
}

.word-link {
    display: inline-block;
    color: var(--green-lime);
    text-shadow: 3px 3px 0 var(--green-dark), -1px -1px 0 var(--white);
}

.word-clear {
    display: inline-block;
    color: var(--orange-warm);
    text-shadow: 3px 3px 0 var(--orange-deep), -1px -1px 0 var(--white);
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 28px;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 48px;
}

/* Game board centerpiece */
.hero-board-wrap {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.wood-frame {
    position: relative;
    padding: 16px;
    background: linear-gradient(145deg, var(--wood-light), var(--wood-dark));
    border-radius: 24px;
    border: 4px solid var(--wood-dark);
    box-shadow: 6px 6px 0 rgba(69, 26, 3, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 12px;
    background: var(--cream);
    border-radius: 16px;
    border: 3px solid var(--wood);
}

.grid-tile {
    aspect-ratio: 1;
    border-radius: 10px;
    border: 2px solid rgba(69, 26, 3, 0.2);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08), 2px 2px 0 rgba(69, 26, 3, 0.1);
}

.tile-orange { background: linear-gradient(135deg, #FDBA74, var(--orange-warm)); }
.tile-green  { background: linear-gradient(135deg, #BBF7D0, var(--green-lime)); }
.tile-yellow { background: linear-gradient(135deg, #FDE68A, var(--yellow-bright)); }
.tile-pink   { background: linear-gradient(135deg, #FBCFE8, var(--pink-accent)); }
.tile-purple { background: linear-gradient(135deg, #E9D5FF, var(--purple-accent)); }

.phone-in-board {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.phone-shell {
    width: 180px;
    padding: 10px;
    background: var(--wood-dark);
    border-radius: 28px;
    border: 4px solid var(--wood);
    box-shadow: 0 16px 40px rgba(69, 26, 3, 0.35);
}

.phone-screen {
    width: 100%;
    border-radius: 20px;
    aspect-ratio: 9/19;
    object-fit: cover;
}

.hero-prop {
    position: absolute;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border: 3px solid var(--wood);
    border-radius: 16px;
    box-shadow: var(--shadow-clay);
    animation: propFloat 4s ease-in-out infinite;
}

.hero-prop svg {
    width: 28px;
    height: 28px;
}

.prop-bell {
    top: -12px;
    right: -20px;
    color: var(--yellow-bright);
    animation-delay: 0s;
}

.prop-carrot {
    bottom: 20px;
    left: -28px;
    color: var(--orange-warm);
    animation-delay: -1.5s;
}

.prop-sprout {
    bottom: -8px;
    right: -16px;
    color: var(--green-lime);
    animation-delay: -3s;
}

@keyframes propFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- Section shared ---- */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--cream);
    border: 2px solid var(--wood);
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--green-dark);
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ---- Features: staggered tile board ---- */
.features {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(132, 204, 22, 0.08) 50%, transparent);
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath d='M0,30 Q150,60 300,30 T600,30 T900,30 T1200,30 L1200,0 L0,0 Z' fill='%23FFFBEB'/%3E%3C/svg%3E") center/cover no-repeat;
}

.feature-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px;
    background: linear-gradient(145deg, var(--wood-light), var(--wood));
    border-radius: 28px;
    border: 4px solid var(--wood-dark);
    box-shadow: 6px 6px 0 rgba(69, 26, 3, 0.25);
}

.feature-tile {
    background: var(--cream);
    border: 3px solid var(--wood);
    border-radius: var(--radius-clay);
    padding: 28px 24px;
    box-shadow: 3px 3px 0 var(--wood-dark);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    cursor: default;
}

.feature-tile:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--wood-dark);
}

.feature-tile-offset {
    margin-top: 32px;
}

.tile-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--wood);
    margin-bottom: 16px;
    box-shadow: 2px 2px 0 var(--wood-dark);
}

.tile-icon svg {
    width: 26px;
    height: 26px;
    color: var(--white);
}

.tile-icon-green  { background: linear-gradient(135deg, var(--green-lime), var(--green-dark)); }
.tile-icon-orange { background: linear-gradient(135deg, var(--orange-warm), var(--orange-deep)); }
.tile-icon-yellow { background: linear-gradient(135deg, var(--yellow-bright), var(--orange-warm)); }
.tile-icon-pink   { background: linear-gradient(135deg, var(--pink-accent), #BE185D); }

.feature-tile h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-tile p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ---- Screenshots: horizontal level strip ---- */
.screenshots {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.06) 0%, rgba(132, 204, 22, 0.1) 100%);
}

.screenshot-track {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(145deg, var(--wood-light), var(--wood));
    border: 4px solid var(--wood-dark);
    border-radius: 28px;
    box-shadow: 6px 6px 0 rgba(69, 26, 3, 0.25);
}

.track-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border: 3px solid var(--wood);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--wood-dark);
    color: var(--wood-dark);
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
}

.track-btn:hover {
    background: var(--yellow-bright);
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--wood-dark);
}

.track-btn svg {
    width: 22px;
    height: 22px;
}

.screenshot-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.screenshot-strip::-webkit-scrollbar {
    display: none;
}

.screenshot-strip:active {
    cursor: grabbing;
}

.shot-card {
    flex: 0 0 auto;
    width: clamp(200px, 28vw, 260px);
    margin: 0;
    scroll-snap-align: center;
    background: var(--cream);
    border: 3px solid var(--wood);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 3px 3px 0 var(--wood-dark);
    transition: transform 0.25s ease-out;
}

.shot-card:hover {
    transform: translateY(-4px);
}

.shot-card img {
    width: 100%;
    border-radius: 14px;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

/* ---- How it works: level path ---- */
.how-it-works {
    padding: 100px 0;
    background: var(--cream);
}

.level-path {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.path-track {
    position: absolute;
    left: 28px;
    top: 40px;
    bottom: 40px;
    width: 6px;
    background: var(--cream-dark);
    border-radius: 3px;
    border: 2px solid var(--wood);
}

.path-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0;
    position: relative;
}

.step-badge {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--green-lime), var(--green-dark));
    border: 3px solid var(--wood);
    box-shadow: 3px 3px 0 var(--wood-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    z-index: 1;
}

.step-badge-hot {
    background: linear-gradient(180deg, var(--yellow-bright), var(--orange-warm));
    color: var(--text);
    box-shadow: 3px 3px 0 var(--orange-deep), 0 0 20px rgba(251, 191, 36, 0.4);
}

.step-body {
    flex: 1;
    background: var(--white);
    border: 3px solid var(--wood);
    border-radius: var(--radius-clay);
    padding: 20px 24px;
    box-shadow: 3px 3px 0 var(--wood-dark);
}

.step-body h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.step-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ---- Download ---- */
.download {
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
}

.download-meadow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--grass) 0%, var(--grass-deep) 100%);
    z-index: -1;
}

.download-meadow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 50'%3E%3Cpath d='M0,50 Q200,0 400,25 T800,25 T1200,10 L1200,50 Z' fill='%23FFFBEB'/%3E%3C/svg%3E") center/cover no-repeat;
}

.download-card {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 36px;
    background: var(--cream);
    border: 4px solid var(--wood);
    border-radius: 32px;
    box-shadow: 8px 8px 0 var(--wood-dark);
}

.download-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.download-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.download-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.download-buttons .btn-clay {
    width: 100%;
    max-width: 320px;
}

/* ---- Footer ---- */
.footer {
    background: var(--wood-dark);
    color: var(--cream);
    padding: 48px 24px 32px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-links a {
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.2s, color 0.2s;
    cursor: pointer;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    opacity: 1;
    color: var(--yellow-bright);
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(69, 26, 3, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--cream);
    border: 4px solid var(--wood);
    border-radius: 28px;
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: 8px 8px 0 var(--wood-dark);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.25s ease-out;
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-dark);
    border: 2px solid var(--wood);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--yellow-bright);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(180deg, var(--yellow-bright), var(--orange-warm));
    border: 3px solid var(--wood);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0 var(--wood-dark);
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    color: var(--text);
}

.modal-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* ---- Responsive ---- */
@media (min-width: 1024px) {
    .level-vine {
        display: flex;
    }

    body {
        padding-left: var(--vine-width);
    }

    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .download-buttons .btn-clay {
        width: auto;
        flex: 1;
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: calc(var(--nav-height) + 8px);
        left: 16px;
        right: 16px;
        flex-direction: column;
        gap: 0;
        background: var(--cream);
        border: 3px solid var(--wood);
        border-radius: var(--radius-clay);
        box-shadow: var(--shadow-clay);
        padding: 8px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        border-bottom: 1px solid rgba(146, 64, 14, 0.15);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .btn-download-nav {
        display: none;
    }

    .feature-board {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .feature-tile-offset {
        margin-top: 0;
    }

    .phone-shell {
        width: 150px;
    }

    .track-btn {
        width: 38px;
        height: 38px;
    }

    .shot-card {
        width: clamp(180px, 55vw, 220px);
    }

    .hero-prop {
        width: 44px;
        height: 44px;
    }

    .hero-prop svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 375px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-clay {
        width: 100%;
    }
}

/* ---- Accessibility: reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .leaf,
    .hero-prop,
    .download-glow {
        animation: none;
    }
}

/* ---- Focus states ---- */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--green-lime);
    outline-offset: 2px;
}
