/* =================================
   Thai4us Coming Soon Landing Page
   Modern, Premium Design
================================= */

:root {
    /* Colors */
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --success: #10b981;

    /* Backgrounds */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #f59e0b 100%);
    --gradient-hero: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.8) 100%);

    /* Shadows */
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);

    /* Fonts */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 10% 60%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.float-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.float-2 {
    top: 20%;
    right: 15%;
    animation-delay: -3s;
}

.float-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: -6s;
}

.float-4 {
    top: 60%;
    right: 10%;
    animation-delay: -9s;
}

.float-5 {
    bottom: 15%;
    right: 25%;
    animation-delay: -12s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(10px) rotate(-5deg);
    }

    75% {
        transform: translateY(-10px) rotate(3deg);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Logo */
.header {
    padding: var(--spacing-md) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-text .highlight {
    color: var(--primary);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--bg-card);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 50px;
    padding: var(--spacing-xs) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(10px);
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--spacing-xl);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    width: 100%;
    max-width: 800px;
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: var(--spacing-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Subscribe Section */
.subscribe {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.subscribe-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.btn-subscribe {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-subscribe:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.btn-subscribe svg {
    transition: transform 0.3s ease;
}

.btn-subscribe:hover svg {
    transform: translateX(4px);
}

.subscribe-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
}

/* Landlord Section */
.landlord-section {
    padding: var(--spacing-xl) 0;
}

.landlord-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    padding: var(--spacing-xl);
    text-align: center;
    backdrop-filter: blur(10px);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.landlord-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: shimmer 15s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.landlord-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.landlord-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #8b5cf6 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landlord-description {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.landlord-form {
    position: relative;
    z-index: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.btn-landlord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border: none;
    border-radius: 12px;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.btn-landlord:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.btn-landlord svg {
    transition: transform 0.3s ease;
}

.btn-landlord:hover svg {
    transform: scale(1.1);
}

.landlord-benefits {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--spacing-md);
    position: relative;
    z-index: 1;
}

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

    .landlord-card {
        padding: var(--spacing-lg);
    }

    .landlord-benefits {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* Social Section */
.social {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.social-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.social-link.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-location {
    margin-top: var(--spacing-xs);
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }

    .hero-description {
        font-size: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .btn-subscribe {
        justify-content: center;
        width: 100%;
    }

    .float-item {
        font-size: 1.5rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

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

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast svg {
    flex-shrink: 0;
}

.toast span {
    font-weight: 500;
}

/* Dark mode is default, but support light preference */
@media (prefers-color-scheme: light) {
    /* Keep dark theme as it's the premium design */
}