:root {
    --bg: #0b1220;
    --bg-elev: #111b2e;
    --surface: #152238;
    --text: #e8eef8;
    --muted: #8fa3c4;
    --accent: #3d9cf0;
    --accent-soft: rgba(61, 156, 240, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --font: "DM Sans", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-optical-sizing: auto;
    background-color: var(--bg);
    background-image: url("jadetam-bg.png");
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(8, 14, 28, 0.08) 0%,
        rgba(8, 14, 28, 0.18) 42%,
        rgba(8, 14, 28, 0.42) 78%,
        rgba(8, 14, 28, 0.58) 100%
    );
    pointer-events: none;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    font-family: ui-monospace, "Cascadia Code", monospace;
    font-size: 0.88em;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.12em 0.4em;
    border-radius: 6px;
}

.wrap {
    width: min(1080px, 100% - 2rem);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(8, 14, 28, 0.32);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
    color: #fff;
}

.brand-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    font-size: 0.92rem;
}

.nav a {
    color: var(--muted);
}

.nav a:hover {
    color: var(--text);
}

main {
    flex: 1;
}

.hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(8, 14, 28, 0.28) 0%,
        rgba(8, 14, 28, 0.12) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.hero-inner {
    max-width: 40rem;
}

@media (max-width: 860px) {
    .hero-inner {
        text-align: center;
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .lead {
        margin-inline: auto;
    }
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--accent);
    margin: 0 0 0.75rem;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.1rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.accent {
    color: var(--accent);
}

.lead {
    margin: 0 0 1.75rem;
    font-size: 1.08rem;
    color: #c5d6ec;
    max-width: 36rem;
}

.hero h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 0, 0, 0.35);
}

.hero .lead,
.hero .eyebrow {
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn.primary {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: #0a1624;
    box-shadow: 0 8px 28px rgba(61, 156, 240, 0.35);
}

.btn.primary:hover {
    box-shadow: 0 10px 32px rgba(61, 156, 240, 0.45);
}

.btn.ghost {
    border-color: var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, rgba(8, 14, 28, 0.45));
    pointer-events: none;
    z-index: 1;
}

.section {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    position: relative;
}

.section > .wrap {
    background: rgba(8, 14, 28, 0.38);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.section h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.section.muted > .wrap {
    background: rgba(8, 14, 28, 0.45);
}

.steps {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    max-width: 48rem;
}

.steps li {
    margin-bottom: 0.65rem;
}

.steps strong {
    color: var(--text);
}

.jak-cta {
    margin: 1.5rem 0 0;
}

.stack-intro {
    color: var(--muted);
    margin: 0 0 1.25rem;
    max-width: 40rem;
}

.price-card {
    max-width: 22rem;
    margin-top: 0.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(8, 14, 28, 0.55);
}

.price-label {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.price-old {
    margin: 0;
    font-size: 1.25rem;
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.price-current {
    margin: 0.15rem 0 0.75rem;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: #f0b429;
}

.price-note {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.price-card .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.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;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    border: 1px solid var(--border);
    background: var(--accent-soft);
    color: #dbeafe;
}

.cta {
    padding-bottom: 4rem;
}

.cta-inner h2 {
    margin-top: 0;
}

.code {
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: #0a0f1a;
    border: 1px solid var(--border);
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.55;
}

.code code {
    background: none;
    padding: 0;
    white-space: pre;
}

.hint {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0;
}

.site-footer {
    backdrop-filter: blur(10px);
    background: rgba(8, 14, 28, 0.38);
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.footer-tag {
    opacity: 0.85;
}

.footer-credit a {
    color: var(--accent);
    text-decoration: none;
}

.footer-legal a {
    color: var(--muted);
    text-decoration: none;
}

.footer-sep {
    color: var(--muted);
    opacity: 0.6;
    margin: 0 0.35rem;
}

.footer-legal a:hover,
.footer-credit a:hover {
    text-decoration: underline;
}

.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;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.create-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 40rem;
    margin-top: 1.25rem;
}

.create-form-wide {
    max-width: 52rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

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

.form-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.form-field .req {
    color: #f87171;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.35;
}

.create-form input[type="text"],
.create-form input[type="tel"],
.create-form input[type="email"],
.create-form input[type="url"],
.create-form input[type="file"],
.create-form select,
.create-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0a0f1a;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
}

.create-form textarea {
    resize: vertical;
    min-height: 6rem;
}

.create-form input:focus,
.create-form select:focus,
.create-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.create-form input[type="file"] {
    padding: 0.5rem;
    font-size: 0.88rem;
}

.create-form input[type="url"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0a0f1a;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
}

.create-form input[type="url"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    cursor: pointer;
}

.checkbox-label input {
    accent-color: var(--accent);
}

.create-form .btn.primary {
    align-self: flex-start;
    border: none;
    font-family: inherit;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    max-width: 48rem;
}

.alert-ok {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.alert-err {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.result-box {
    margin: 1rem 0;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--accent-soft);
    max-width: 48rem;
}

.result-box .btn {
    margin-right: 0.5rem;
    margin-top: 0.35rem;
}

.result-box p {
    margin: 0 0 0.5rem;
}

.purchase-section > .wrap {
    border-color: rgba(61, 156, 240, 0.35);
}

.purchase-box {
    margin-top: 1.25rem;
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(61, 156, 240, 0.35);
    background: rgba(61, 156, 240, 0.08);
    max-width: 32rem;
}

.purchase-price {
    font-size: 1.1rem;
    margin: 0 0 1rem;
}

.purchase-price-old {
    margin-right: 0.5rem;
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 400;
}

.purchase-terms {
    margin-bottom: 1rem;
    align-items: flex-start;
}

.purchase-email-field {
    max-width: 24rem;
    margin-bottom: 1rem;
}

.purchase-form .btn.primary {
    border: none;
    font-family: inherit;
}

.location-picker .jadetam-map {
    width: 100%;
    height: min(320px, 50vh);
    min-height: 240px;
    margin-top: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #0a0f1a;
}

.jadetam-map-error {
    padding: 1rem 1.15rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.35);
    border-radius: var(--radius);
    height: 100%;
    box-sizing: border-box;
}

.jadetam-map-error p {
    margin: 0.5rem 0 0;
    color: #e8eef8;
}

.jadetam-map-error code {
    font-size: 0.85em;
}

.location-picker .location-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    margin-top: 0.75rem;
}

.location-picker .location-fields .form-field {
    margin: 0;
}

@media (max-width: 520px) {
    .location-picker .location-fields {
        grid-template-columns: 1fr;
    }
}

.coords-hint {
    margin-top: 0.35rem;
    min-height: 1.2em;
}

.map-unavailable {
    margin-top: 0.5rem;
}

.location-picker {
    position: relative;
}

.jadetam-suggest-list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #0f1728;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    position: relative;
}

.jadetam-suggest-list li {
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.jadetam-suggest-list li:last-child {
    border-bottom: none;
}

.jadetam-suggest-list li:hover,
.jadetam-suggest-list li:focus {
    background: var(--accent-soft);
}

.suggest-main {
    font-size: 0.92rem;
    color: var(--text);
}

.suggest-sub {
    font-size: 0.8rem;
    color: var(--muted);
}

.leaflet-container {
    font-family: var(--font);
}

.contact-page h1 {
    margin-top: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.25rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-details h2,
.contact-form-wrap h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.contact-dl {
    margin: 0;
    display: grid;
    gap: 0.65rem 1rem;
    grid-template-columns: auto 1fr;
    font-size: 0.95rem;
}

.contact-dl dt {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.contact-dl dd {
    margin: 0;
}

.contact-dl a {
    color: var(--accent);
    text-decoration: none;
}

.contact-dl a:hover {
    text-decoration: underline;
}

.panel-box {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.create-form .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
