@font-face {
  font-family: "Hurme Geometric Sans 1";
  src: url("/assets/fonts/HurmeGeometricSans1-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =====================================================
   VARIABLE INITIALIZATION (LIGHT THEME DEFAULT)
   ===================================================== */
:root {
    /* Brand */
    --color-primary: #1B4537;
    --color-accent: #CBAA7D;

    /* Backgrounds */
    --color-background: #F6F8FA;
    --color-surface: #FFFFFF;
    --color-light-bg: #F3F3F3;
    --color-light-gray: #EFEFEF;
    --color-gold: #CBAA7D;

    /* Text */
    --color-text: #1B4537;
    --color-text-muted: #777777;

    /* Borders */
    --color-border: #DDDDDD;

    /* Misc */
    --color-white: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 3px 8px rgba(0, 0, 0, .05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, .08);

    /* Radius */
    --radius-card: 20px;
    --radius-pill: 50px;
    --r: var(--radius-card, 24px);
}

/* =====================================================
   DARK THEME OVERRIDES
   ===================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        /* Brand */
        --color-primary: #2A6B55;
        --color-accent: #CBAA7D;

        /* Backgrounds */
        --color-background: #111315;
        --color-surface: #1B1D20;
        --color-light-bg: #26292D;
        --color-light-gray: #34373C;

        /* Text */
        --color-text: #F8F8F8;
        --color-text-muted: #AAAAAA;

        /* Borders */
        --color-border: #3B3F45;

        /* Misc */
        --color-white: #1B1D20;

        /* Shadows */
        --shadow-sm: 0 3px 10px rgba(0, 0, 0, .35);
        --shadow-md: 0 10px 25px rgba(0, 0, 0, .45);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Hurme Geometric Sans 1", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    background: var(--color-background);
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: "Hurme Geometric Sans 1", Georgia, "Times New Roman", serif;
    letter-spacing: -.01em;
    margin: 0;
}
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--color-primary); margin-bottom: 1rem; }
p { line-height: 1.7; }
a { color: inherit; text-decoration: none; }

/* buttons */
.sq-btn {
    display: inline-block;
    border: 0;
    cursor: pointer;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    padding: .85rem 1.7rem;
    border-radius: var(--radius-pill, 999px);
    transition: transform .25s, box-shadow .25s, background .25s;
    box-shadow: 0 6px 18px rgba(27, 69, 55, .3);
}
.sq-btn:hover {
    transform: translateY(-2px);
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 10px 24px rgba(27, 69, 55, .4);
}
.sq-btn-sm { padding: .55rem 1.2rem; font-size: .9rem; }
.sq-btn-ghost {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .55);
    backdrop-filter: blur(6px);
    box-shadow: none;
}
.sq-btn-gold { background: var(--color-accent); color: var(--color-primary); }
.sq-btn-gold:hover { background: #d8b688; color: var(--color-primary); }

/* nav */
.sq-nav-wrap { position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 14px; }
.sq-nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 1.2rem .65rem 1.6rem;
    background: rgba(246, 248, 250, .82);
    backdrop-filter: blur(14px);
    border-radius: var(--r);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
    position: relative;
    transition: background .3s;
}
.sq-nav.solid { background: rgba(246, 248, 250, .96); }

/* Logo styling and sizing */
.sq-logo {
    display: inline-flex;
    align-items: center;
    max-width: 100px;
}
.sq-logo img { width: 30%; height: auto; display: block; }
.sq-links { display: flex; align-items: center; gap: 1.6rem; font-size: .92rem; font-weight: 500; }
.sq-links a:not(.sq-btn):hover { color: var(--color-primary); }
.sq-burger { display: none; background: none; border: 0; padding: .4rem; }
.sq-burger span { display: block; width: 24px; height: 2px; background: var(--color-primary); margin: 5px 0; transition: .3s; }

/* hero */
.sq-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: var(--color-primary);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sq-sun {
    position: absolute;
    top: -12%;
    left: 50%;
    width: 70vmin;
    height: 70vmin;
    margin-left: -35vmin;
    background: rgba(203, 170, 125, .35);
    animation: pulse 7s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pulse { 50% { transform: scale(1.12); opacity: .8; } }
.sq-hero-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 7rem; padding-bottom: 9rem; }
.sq-hero-copy { max-width: 600px; }
.sq-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; margin: 1rem 0; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.sq-hero h1 em { color: var(--color-accent); font-style: italic; }
.sq-hero p { font-size: 1.12rem; max-width: 520px; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); margin-bottom: 1.8rem; }
.sq-chip { display: inline-block; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); padding: .35rem 1rem; border-radius: var(--radius-pill, 999px); font-size: .82rem; font-weight: 600; }
.sq-floats { display: flex; flex-direction: column; gap: 1rem; align-items: flex-end; }
.sq-glass { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(12px); border-radius: 20px; padding: 1rem 1.4rem; min-width: 190px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); animation: bob 6s ease-in-out infinite; transition: transform .2s; }
.sq-glass:nth-child(2) { animation-delay: -2s; }
.sq-glass:nth-child(3) { animation-delay: -4s; }
.sq-glass b { display: block; font-family: "Hurme Geometric Sans 1", Georgia, serif; font-size: 1.9rem; color: var(--color-accent); }
.sq-glass span { font-size: .85rem; opacity: .9; }
@keyframes bob { 50% { margin-top: -10px; } }

/* pill search */
.sq-pill-wrap { position: relative; z-index: 5; margin-top: -5.2rem; }
.sq-pill { max-width: 900px; margin: 0 auto; display: flex; gap: .6rem; align-items: center; background: var(--color-accent); padding: .9rem; border-radius: var(--radius-pill, 999px); box-shadow: var(--shadow-md); }
.sq-pill input { flex: 1; min-width: 0; border: 0; border-radius: var(--radius-pill, 999px); padding: .95rem 1.4rem; background: #fff; font-size: .95rem; outline: 0; }
.sq-pill input:focus, .sq-wait input:focus { box-shadow: 0 0 0 3px rgba(27, 69, 55, .45); }

/* welcome */
.sq-welcome { padding: 6rem 0 5rem; }
.sq-photo { position: relative; background: var(--color-surface); padding: 14px; border-radius: var(--r); box-shadow: var(--shadow-md); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s; }

/* Tile grids */
.sq-grid-art,
.sq-card-art {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    padding: 16px;
    border-radius: 16px;
    background: var(--color-primary);
}

/* The card-art panel itself uses the primary brand color. */
.sq-card-art {
    background: var(--color-primary);
}

/* All tiles are primary green by default; owned tiles keep their gold styling. */
.sq-grid-art span,
.sq-card-art span {
    display: block;
    min-width: 0;
    aspect-ratio: 1;
    border-radius: 6px;
    background: var(--color-primary);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
    transition: transform .35s, background .35s;
}

.sq-grid-art span.own,
.sq-card-art span.own {
    background: var(--color-accent);
    animation: glow 3.2s ease-in-out infinite;
}

.sq-grid-art span:nth-child(3n).own { animation-delay: -1s; }
.sq-grid-art span:nth-child(2n).own { animation-delay: -2s; }
.sq-grid-art span:hover,
.sq-card-art span:hover { transform: translateY(-6px) scale(1.06); }

@keyframes glow { 50% { filter: brightness(1.2); transform: translateY(-3px); } }

.sq-badge { position: absolute; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); animation: bob 5s ease-in-out infinite; }
.sq-badge-a { top: -22px; left: -22px; width: 84px; height: 84px; background: var(--color-primary); border: 4px solid var(--color-background); }
.sq-badge-b { right: -18px; bottom: -18px; width: 60px; height: 60px; background: var(--color-accent); border: 4px solid #fff; animation-delay: -2.5s; }
.sq-ticks { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.sq-ticks li { padding: .35rem 0 .35rem 2rem; position: relative; }
.sq-ticks li:before { content: ""; position: absolute; left: 0; top: .6rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--color-primary) no-repeat center/60%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* how */
.sq-how { padding: 5rem 0; background: var(--color-background); }
.sq-step { background: var(--color-surface); border-radius: var(--r); padding: 2rem; height: 100%; box-shadow: var(--shadow-sm); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s; }
.sq-step i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--color-primary); color: #fff; font-style: normal; font-weight: 700; margin-bottom: 1rem; }
.sq-step h3, .sq-card h3 { font-size: 1.25rem; color: var(--color-primary); margin-bottom: .5rem; }

/* cards */
.sq-cards { padding: 5rem 0 6rem; background: var(--color-light-bg); }
.sq-card { background: var(--color-surface); border-radius: var(--r); padding: 12px; height: 100%; box-shadow: var(--shadow-md); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s; }
.sq-card-body { padding: 1.2rem 1rem 1rem; }
.sq-card-body small { color: var(--color-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.sq-card-body p { font-size: .93rem; color: var(--color-text-muted); }

/* cta */
.sq-cta { padding: 6rem 0; background: var(--color-primary); color: #fff; }
.sq-cta h2 { color: #fff; }
.sq-wait { display: flex; gap: .6rem; max-width: 520px; margin: 1.5rem auto 0; background: rgba(255, 255, 255, .12); padding: .6rem; border-radius: var(--radius-pill, 999px); }
.sq-wait input[type=email] { flex: 1; min-width: 0; border: 0; border-radius: var(--radius-pill, 999px); padding: .85rem 1.3rem; outline: 0; }
.sq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sq-msg { min-height: 1.6rem; margin-top: 1rem; font-weight: 500; color: var(--color-accent); }
.sq-footer { background: var(--color-background); color: var(--color-text-muted); padding: 1.6rem 0; font-size: .9rem; }
.sq-footer a:hover { color: var(--color-text); }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.sq-photo.reveal.in, .sq-step.reveal.in, .sq-card.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* responsive */
@media (max-width: 991px) {
    .sq-burger { display: block; }
    .sq-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .8rem; background: var(--color-background); padding: 1.2rem; border-radius: var(--r); box-shadow: var(--shadow-md); display: none; text-align: center; }
    .sq-links.open { display: flex; }
    .sq-floats { display: none; }
    .sq-pill { border-radius: 28px; flex-direction: column; align-items: stretch; }
    .sq-pill-wrap { margin-top: -4rem; }
}
@media (max-width: 575px) {
    .sq-wait { flex-direction: column; border-radius: 28px; }
    .sq-badge-a { left: -8px; }
    .sq-badge-b { right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
