/* ============================================================
   HUT27 - LANDING PAGE WITH AUTH
   Professional · Modern · Mobile-First · Clean
   ============================================================ */

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

:root {
    --hut27-black: #0A0A0A;
    --hut27-dark: #1A1A2E;
    --hut27-grey: #F5F7FA;
    --hut27-white: #FFFFFF;
    --hut27-red: #E7242A;
    --hut27-red-dark: #C41A1F;
    --hut27-gold: #F59E0B;
    --hut27-green: #10B981;
    --hut27-text-primary: #0A0A0A;
    --hut27-text-secondary: #4B5563;
    --hut27-text-muted: #9CA3AF;
    --hut27-border: #E5E7EB;
    --hut27-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --hut27-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.1);
    --hut27-radius: 16px;
    --hut27-radius-sm: 10px;
    --hut27-radius-pill: 50px;
    --hut27-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--hut27-font);
    background: var(--hut27-grey);
    color: var(--hut27-text-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ============================================================
   LANDING CONTAINER
   ============================================================ */
.hut27-landing {
    max-width: 560px;
    margin: 0 auto;
    background: var(--hut27-grey);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hut27-hero-section {
    background: var(--hut27-black);
    padding: 32px 20px 40px;
    border-radius: 0 0 32px 32px;
    position: relative;
    overflow: hidden;
}

.hut27-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(231, 36, 42, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hut27-hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(231, 36, 42, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.hut27-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.hut27-brand-icon {
    font-size: 32px;
    line-height: 1;
}

.hut27-brand-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--hut27-white);
    letter-spacing: -0.5px;
}

.hut27-brand-name span {
    color: var(--hut27-red);
}

.hut27-hero-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--hut27-white);
    margin-bottom: 10px;
}

.hut27-hero-title span {
    color: var(--hut27-red);
    position: relative;
}

.hut27-hero-title span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--hut27-red);
    border-radius: 4px;
    opacity: 0.4;
}

.hut27-hero-desc {
    font-size: 15px;
    color: #B9B3D6;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
}

.hut27-hero-desc strong {
    color: var(--hut27-white);
    font-weight: 700;
}

.hut27-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 16px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 24px;
}

.hut27-hero-stat {
    text-align: center;
}

.hut27-hero-stat-number {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: var(--hut27-white);
    letter-spacing: -0.5px;
}

.hut27-hero-stat-label {
    font-size: 10px;
    color: #807A9E;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hut27-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hut27-btn-primary,
.hut27-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--hut27-radius-pill);
    font-family: var(--hut27-font);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hut27-btn-primary {
    background: linear-gradient(135deg, var(--hut27-red), var(--hut27-red-dark));
    color: var(--hut27-white);
    box-shadow: 0 4px 20px rgba(231, 36, 42, 0.3);
    flex: 1;
    justify-content: center;
}

.hut27-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(231, 36, 42, 0.4);
}

.hut27-btn-primary:active {
    transform: scale(0.97);
}

.hut27-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--hut27-white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex: 1;
    justify-content: center;
}

.hut27-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.hut27-features {
    padding: 32px 20px;
}

.hut27-section-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: var(--hut27-black);
    margin-bottom: 4px;
}

.hut27-section-title span {
    color: var(--hut27-red);
}

.hut27-section-desc {
    text-align: center;
    font-size: 14px;
    color: var(--hut27-text-secondary);
    margin-bottom: 20px;
}

.hut27-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hut27-feature-card {
    background: var(--hut27-white);
    border-radius: var(--hut27-radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--hut27-shadow);
    border: 1px solid var(--hut27-border);
    transition: all 0.3s ease;
}

.hut27-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hut27-shadow-hover);
}

.hut27-feature-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
}

.hut27-feature-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--hut27-black);
    margin-bottom: 2px;
}

.hut27-feature-card p {
    font-size: 12px;
    color: var(--hut27-text-secondary);
    line-height: 1.4;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.hut27-how-it-works {
    padding: 32px 20px;
    background: var(--hut27-white);
    margin: 0 16px;
    border-radius: var(--hut27-radius);
    box-shadow: var(--hut27-shadow);
}

.hut27-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.hut27-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    background: var(--hut27-grey);
    border-radius: var(--hut27-radius-sm);
    border-left: 4px solid var(--hut27-red);
}

.hut27-step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--hut27-red);
    color: var(--hut27-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.hut27-step h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--hut27-black);
}

.hut27-step p {
    font-size: 13px;
    color: var(--hut27-text-secondary);
}

/* ============================================================
   AUTH SECTION
   ============================================================ */
.hut27-auth-section {
    padding: 32px 16px 24px;
}

.hut27-auth-container {
    background: var(--hut27-white);
    border-radius: var(--hut27-radius);
    padding: 24px 20px 28px;
    box-shadow: var(--hut27-shadow);
    border: 1px solid var(--hut27-border);
}

.hut27-auth-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    color: var(--hut27-black);
}

.hut27-auth-title span {
    color: var(--hut27-red);
}

.hut27-auth-desc {
    text-align: center;
    font-size: 14px;
    color: var(--hut27-text-secondary);
    margin-bottom: 20px;
}

/* Auth Switcher */
.hut27-auth-switcher {
    display: flex;
    background: var(--hut27-grey);
    border-radius: var(--hut27-radius-pill);
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--hut27-border);
}

.hut27-auth-switch {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--hut27-radius-pill);
    font-family: var(--hut27-font);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--hut27-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hut27-auth-switch.active {
    background: var(--hut27-white);
    color: var(--hut27-black);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hut27-auth-switch:hover:not(.active) {
    color: var(--hut27-black);
}

/* Forms */
.hut27-auth-form {
    display: none;
}

.hut27-auth-form.active {
    display: block;
    animation: hut27FadeIn 0.3s ease;
}

@keyframes hut27FadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hut27-form-group {
    margin-bottom: 14px;
}

.hut27-form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--hut27-text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.hut27-form-label i {
    margin-right: 4px;
    color: var(--hut27-red);
    width: 16px;
}

.hut27-form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid var(--hut27-border);
    border-radius: var(--hut27-radius-sm);
    font-size: 15px;
    font-family: var(--hut27-font);
    font-weight: 500;
    color: var(--hut27-text-primary);
    background: var(--hut27-white);
    outline: none;
    transition: all 0.3s ease;
}

.hut27-form-input:focus {
    border-color: var(--hut27-red);
    box-shadow: 0 0 0 4px rgba(231, 36, 42, 0.08);
}

.hut27-form-input::placeholder {
    color: var(--hut27-text-muted);
    font-weight: 400;
    font-size: 14px;
}

.hut27-pwd-wrap {
    position: relative;
}

.hut27-pwd-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--hut27-text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.3s ease;
}

.hut27-pwd-toggle:hover {
    color: var(--hut27-black);
}

.hut27-btn-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: var(--hut27-radius-sm);
    background: linear-gradient(135deg, var(--hut27-red), var(--hut27-red-dark));
    color: var(--hut27-white);
    font-family: var(--hut27-font);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(231, 36, 42, 0.2);
    margin-top: 4px;
}

.hut27-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(231, 36, 42, 0.3);
}

.hut27-btn-submit:active {
    transform: scale(0.97);
}

.hut27-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.hut27-form-footer {
    text-align: center;
    font-size: 13px;
    color: var(--hut27-text-secondary);
    margin-top: 14px;
}

.hut27-form-footer a {
    color: var(--hut27-red);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.hut27-form-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.hut27-footer {
    padding: 24px 20px 20px;
    background: var(--hut27-black);
    color: var(--hut27-white);
    border-radius: 32px 32px 0 0;
    margin-top: 8px;
}

.hut27-footer-content {
    text-align: center;
}

.hut27-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.hut27-footer-brand .hut27-brand-icon {
    font-size: 28px;
}

.hut27-footer-brand .hut27-brand-name {
    font-size: 20px;
    color: var(--hut27-white);
}

.hut27-footer-brand .hut27-brand-name span {
    color: var(--hut27-red);
}

.hut27-footer-text {
    font-size: 14px;
    color: #B9B3D6;
    margin-bottom: 12px;
}

.hut27-footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.hut27-footer-links a {
    color: #B9B3D6;
    font-size: 20px;
    transition: all 0.3s ease;
}

.hut27-footer-links a:hover {
    color: var(--hut27-red);
    transform: translateY(-2px);
}

.hut27-footer-disclaimer {
    font-size: 12px;
    color: #807A9E;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hut27-footer-disclaimer i {
    color: var(--hut27-green);
}

.hut27-footer-copy {
    font-size: 12px;
    color: #807A9E;
    margin-top: 6px;
}

/* ============================================================
   TOAST
   ============================================================ */
.hut27-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 14px 28px;
    border-radius: var(--hut27-radius-pill);
    background: var(--hut27-black);
    color: var(--hut27-white);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 90vw;
    font-family: var(--hut27-font);
    animation: hut27ToastUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hut27-toast.success {
    background: var(--hut27-green);
}

.hut27-toast.error {
    background: var(--hut27-red);
}

.hut27-toast.warning {
    background: var(--hut27-gold);
}

@keyframes hut27ToastUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes hut27ToastDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.9);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (min-width: 600px) {
    .hut27-landing {
        max-width: 720px;
        padding: 0 16px;
    }

    .hut27-hero-section {
        padding: 40px 32px 48px;
        border-radius: 0 0 40px 40px;
    }

    .hut27-hero-title {
        font-size: 36px;
    }

    .hut27-hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .hut27-features {
        padding: 40px 32px;
    }

    .hut27-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .hut27-how-it-works {
        padding: 40px 32px;
        margin: 0 16px;
    }

    .hut27-auth-section {
        padding: 40px 32px;
    }

    .hut27-auth-container {
        padding: 32px 28px 36px;
    }

    .hut27-footer {
        padding: 32px 32px 28px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hut27-landing {
        max-width: 900px;
        padding: 0 24px;
    }

    .hut27-hero-section {
        padding: 48px 48px 56px;
        border-radius: 0 0 48px 48px;
    }

    .hut27-hero-title {
        font-size: 42px;
    }

    .hut27-hero-desc {
        font-size: 17px;
        max-width: 80%;
    }

    .hut27-hero-actions {
        gap: 16px;
    }

    .hut27-btn-primary,
    .hut27-btn-secondary {
        padding: 16px 36px;
        font-size: 16px;
    }

    .hut27-features {
        padding: 48px 32px;
    }

    .hut27-features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .hut27-how-it-works {
        padding: 48px 40px;
        margin: 0 24px;
    }

    .hut27-steps {
        flex-direction: row;
        gap: 24px;
    }

    .hut27-step {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--hut27-red);
        padding: 20px;
    }

    .hut27-auth-section {
        padding: 48px 32px;
    }

    .hut27-auth-container {
        max-width: 480px;
        margin: 0 auto;
        padding: 36px 32px 40px;
    }

    .hut27-footer {
        padding: 40px 32px 32px;
    }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    body {
        background: white !important;
        padding: 20px !important;
    }

    .hut27-landing {
        max-width: 100% !important;
        padding: 0 !important;
        background: white !important;
    }

    .hut27-hero-section {
        background: #1A1A2E !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .hut27-btn-primary,
    .hut27-btn-secondary {
        display: none !important;
    }

    .hut27-auth-section {
        display: none !important;
    }

    .hut27-footer {
        background: #1A1A2E !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}