:root {
    --bg: #081c15;
    --panel: #0e2b20;
    --text: #e6f4ee;
    --muted: #a8c3b7;
    --primary: #2d6a4f;
    --primary-600: #1b4332;
    --ring: rgba(82, 183, 136, 0.35);
    --card: #0a241b;
    --border: #123225;
    --success: #52b788;
    --danger: #ef4444;
    --gradient-primary: linear-gradient(135deg, #2d6a4f, #52b788);
    --gradient-secondary: linear-gradient(135deg, #1b4332, #2d6a4f);
    --shadow-glow: 0 0 20px rgba(82, 183, 136, 0.3);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}
* {
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html,
body {
    padding: 0;
    margin: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Ubuntu,
        Cantarell,
        Noto Sans,
        sans-serif;
    background: linear-gradient(
        180deg,
        #071912,
        #081c15 30%,
        #081c15 70%,
        #071912
    );
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: saturate(140%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: slideDown 0.6s ease-out;
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.brand:hover {
    transform: translate3d(0, -2px, 0);
}
.logo {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
    position: relative;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.brand:hover .logo::before {
    animation: shimmer 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.brand:hover .logo {
    box-shadow: 0 0 0 2px rgba(82, 183, 136, 0.4);
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.brand-text {
    letter-spacing: 0.2px;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}
.nav-list {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-list a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-list a:hover,
.nav-list a:focus {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--ring);
    transform: translate3d(0, -1px, 0);
}
.nav-list a:hover::before {
    width: 80%;
}
.hero {
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}
.hero-inner {
    padding: 48px 0 24px;
    display: grid;
    gap: 18px;
    justify-items: start;
}
.hero h1 {
    font-size: clamp(28px, 4.5vw, 44px);
    line-height: 1.15;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #a8c3b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero p {
    max-width: 720px;
    color: var(--muted);
    margin: 8px 0 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-ctas {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover {
    transform: translate3d(0, -2px, 0);
}

.btn:hover::before {
    animation: shimmer 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:active {
    transform: translate3d(0, 0, 0) scale(0.98);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary-600);
    box-shadow: 0 10px 30px -10px var(--ring);
}
.btn-primary:hover {
    background: var(--primary-600);
    animation: buttonGlow 2s ease-in-out infinite;
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
@keyframes buttonGlow {
    0%,
    100% {
        box-shadow:
            0 15px 35px -5px var(--ring),
            0 0 5px var(--primary);
    }
    50% {
        box-shadow:
            0 15px 35px -5px var(--ring),
            0 0 20px var(--primary);
    }
}
.section {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    position: relative;
}
.section.alt {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0)
    );
}
.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}
.section:hover::before {
    opacity: 1;
}
.section h2 {
    font-size: 24px;
    margin: 0 0 18px;
}
.grid {
    display: grid;
    gap: 16px;
}
.cards {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1000px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .cards {
        grid-template-columns: 1fr;
    }
}
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: cardFadeIn 0.6s ease-out forwards;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--success));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.card:hover::before {
    transform: scaleX(1);
}
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.card:nth-child(1) {
    animation-delay: 0.1s;
}
.card:nth-child(2) {
    animation-delay: 0.2s;
}
.card:nth-child(3) {
    animation-delay: 0.3s;
}
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}
.contact-form {
    display: grid;
    gap: 14px;
    max-width: 560px;
}
.form-row {
    display: grid;
    gap: 6px;
}
label {
    font-weight: 600;
}
input,
textarea {
    width: 100%;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
input:focus,
textarea:focus {
    outline: 2px solid transparent;
    box-shadow:
        0 0 0 3px var(--ring),
        0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary);
}
.alerts {
    display: grid;
    gap: 10px;
    margin: 10px 0 14px;
}
.alert {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    animation: slideInFromTop 0.5s ease-out;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.alert::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}
.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #a7f3d0;
}
.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
}
@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: var(--muted);
    font-size: 14px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-bg {
    position: absolute;
    inset: auto -10% -20% -10%;
    height: 40vh;
    min-height: 260px;
    background:
        radial-gradient(
            50% 50% at 50% 0%,
            rgba(82, 183, 136, 0.22) 0%,
            rgba(17, 22, 32, 0) 70%
        ),
        radial-gradient(
            30% 40% at 20% 20%,
            rgba(45, 106, 79, 0.25) 0%,
            rgba(17, 22, 32, 0) 70%
        );
    filter: blur(40px);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}
.hero-media {
    margin-top: 8px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(82, 183, 136, 0.08);
}
.hero-media img {
    display: block;
    width: 100%;
    height: auto;
}
.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;
}
@media (max-width: 780px) {
    .nav-toggle {
        display: inline-flex;
    }
    .nav-list {
        position: absolute;
        right: 20px;
        top: 64px;
        flex-direction: column;
        background: rgba(11, 14, 20, 0.98);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 8px;
        min-width: 180px;
        display: none;
    }
    .nav-list.open {
        display: flex;
    }
    .nav-list a {
        padding: 10px 12px;
    }
}
.qr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.qr-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.qr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}
.qr-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
}
.qr-actions {
    display: flex;
    gap: 10px;
}
.qr-actions .btn {
    height: 36px;
}
.qr-container {
    display: none;
    margin-top: 10px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(82, 183, 136, 0.06);
}
.qr-container.open {
    display: block;
}
.qr-container img {
    display: block;
    width: 100%;
    height: auto;
}
.qr-footer {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.contact-intro {
    color: var(--muted);
    margin: 0 0 14px;
}
.auth-buttons {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
.auth-form-container {
    max-width: 420px;
    margin: 0 auto;
}
.auth-links {
    text-align: center;
    margin-top: 18px;
    color: var(--muted);
}
.auth-links a {
    color: var(--primary);
    text-decoration: none;
}
.auth-links a:hover {
    text-decoration: underline;
}
.auth-notice {
    background: rgba(82, 183, 136, 0.12);
    border: 1px solid rgba(82, 183, 136, 0.35);
    border-radius: 12px;
    padding: 18px;
    margin: 0 0 18px;
    color: #a7f3d0;
}
.auth-notice h3 {
    margin: 0 0 8px;
    color: var(--success);
}
.auth-notice a {
    color: var(--primary);
    text-decoration: none;
}
.auth-notice a:hover {
    text-decoration: underline;
}
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: scale(1.05);
}
@media (max-width: 780px) {
    .qr-grid {
        grid-template-columns: 1fr;
    }
}

/* Light mode variables */
[data-theme="light"] {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --primary: #059669;
    --primary-600: #047857;
    --ring: rgba(5, 150, 105, 0.35);
    --card: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
}
[data-theme="light"] body {
    background: linear-gradient(
        180deg,
        #f1f5f9,
        #f8fafc 30%,
        #f8fafc 70%,
        #f1f5f9
    );
    color: var(--text);
}
[data-theme="light"] .site-header {
    background: rgba(248, 250, 252, 0.7);
    border-bottom: 1px solid var(--border);
}
[data-theme="light"] .hero-bg {
    background:
        radial-gradient(
            50% 50% at 50% 0%,
            rgba(5, 150, 105, 0.15) 0%,
            rgba(17, 22, 32, 0) 70%
        ),
        radial-gradient(
            30% 40% at 20% 20%,
            rgba(45, 106, 79, 0.12) 0%,
            rgba(17, 22, 32, 0) 70%
        );
    filter: blur(40px);
}
[data-theme="light"] .section.alt {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0));
}
[data-theme="light"] .nav-list {
    background: rgba(248, 250, 252, 0.98);
}
[data-theme="light"] .alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #065f46;
}
[data-theme="light"] .alert-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #991b1b;
}
[data-theme="light"] .auth-notice {
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.35);
    color: #065f46;
}
.error-details {
    max-width: 600px;
    margin: 0 auto;
}
.error-code {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-top: 14px;
}
.error-code p {
    margin: 8px 0;
}
.error-code details {
    margin-top: 14px;
}
.error-code summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
}
.error-code pre {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    overflow-x: auto;
    font-size: 14px;
    color: var(--muted);
}
