/* ตัวแปรพื้นฐาน */
:root {
    --primary-color: #ff758c;
    --secondary-color: #ff7eb3;
    --accent-color: #36cee6;
    --accent-color-2: #4facfe;
    --light-color: #ffffff;
    --dark-color: #232323;
    --text-color: #444444;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #ced4da;
    --font-main: 'Prompt', 'Sarabun', sans-serif;
    --font-heading: 'Prompt', 'Sarabun', sans-serif;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out;
    --radius: 8px;
    --radius-lg: 16px;
}

/* รีเซ็ตพื้นฐาน */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* พื้นหลังเกรเดียนท์ */
.gradient-bg {
    background: linear-gradient(135deg, rgba(255, 117, 140, 0.05) 0%, rgba(255, 126, 179, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 117, 140, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(54, 206, 230, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

/* เฮดเดอร์ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 180px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.btn-nav {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color) !important;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2;
}

.menu-icon .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* ส่วน Hero */
.hero {
    padding: 15rem 0 8rem;
    position: relative;
    z-index: 2;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.hero-content {
    flex: 1;
}

.tag-line {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.hero-title {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.hero-image {
    flex: 1;
    position: relative;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.6rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    display: flex;
    align-items: center;
}

.features-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.features-tags span {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    color: var(--text-color);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* Telegram Mockup */
.telegram-mockup {
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-medium);
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.mockup-header {
    background-color: #229ED9;
    color: var(--light-color);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.mockup-chat {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 380px;
}

.chat-message {
    padding: 1.2rem 1.5rem;
    border-radius: 1.5rem;
    max-width: 80%;
}

.bot {
    background-color: var(--gray-light);
    align-self: flex-start;
    border-top-left-radius: 0;
}

.user {
    background-color: #E3F2FD;
    align-self: flex-end;
    border-top-right-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.result-icon {
    margin-bottom: 1rem;
}

.result-label {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* ส่วนฟีเจอร์ */
.features {
    padding: 10rem 0;
    background-color: var(--gray-light);
}

.section-title {
    text-align: center;
    font-size: 3.6rem;
    margin-bottom: 5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-card {
    background-color: var(--light-color);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(255, 117, 140, 0.05) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    transition: var(--transition);
}

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

.feature-icon {
    margin-bottom: 2rem;
}

.feature-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-card p {
    color: var(--text-color);
    font-size: 1.5rem;
    line-height: 1.6;
}

/* วิธีการใช้งาน */
.how-it-works {
    padding: 10rem 0;
    background: linear-gradient(135deg, rgba(54, 206, 230, 0.05) 0%, rgba(79, 172, 254, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at center, rgba(54, 206, 230, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.step {
    display: flex;
    gap: 2.5rem;
    position: relative;
    padding: 0 0 4rem 0;
}

.step:last-child {
    padding-bottom: 0;
}

.step::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 25px;
    width: 2px;
    height: calc(100% - 60px);
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    z-index: 0;
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.step-content {
    background-color: var(--light-color);
    padding: 2.5rem 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
}

.step-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ส่วน CTA */
.cta-section {
    padding: 10rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3.6rem;
    margin-bottom: 2rem;
}

.cta-content p {
    font-size: 1.8rem;
    margin-bottom: 4rem;
    opacity: 0.9;
}

.disclaimer {
    margin-top: 4rem;
    font-size: 1.4rem;
    opacity: 0.7;
}

/* ฟุตเตอร์ */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 8rem 0 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.footer-logo {
    flex-basis: 100%;
    max-width: 350px;
    margin-bottom: 3rem;
}

.footer-logo p {
    margin-top: 1.5rem;
    opacity: 0.7;
    font-size: 1.4rem;
}

.footer-links {
    display: flex;
    gap: 6rem;
}

.link-column h4 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.link-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.link-column ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.link-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 1.5rem;
}

.link-column ul li a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
    opacity: 0.5;
}

/* โมบายล์ responsive */
@media (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .cta-group {
        align-items: center;
    }
    
    .telegram-mockup {
        margin-top: 5rem;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: var(--light-color);
        flex-direction: column;
        justify-content: center;
        z-index: 1;
        transition: var(--transition);
    }
    
    .menu-toggle:checked ~ .nav-links {
        right: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .menu-toggle:checked ~ .menu-icon .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle:checked ~ .menu-icon .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .step {
        flex-direction: column;
    }
    
    .step::after {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        gap: 4rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 3.6rem;
    }
    
    .feature-card {
        padding: 2.5rem;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .steps {
        padding: 0 1rem;
    }
    
    .step-content {
        padding: 2rem;
    }
}
