/* Base Styles */
:root {
    --primary: #7c3aed;
    --secondary: #fbbf24;
    --dark: #27272a;
    --light: #f5f3ff;
    --gray: #94a3b8;
    --gradient: linear-gradient(135deg, #7c3aed, #fbbf24);
    --box-shadow: 0 10px 15px rgba(124, 58, 237, 0.1);
}

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

body {
    font-family: 'Prompt', 'Sarabun', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
    font-weight: 800;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    text-align: center;
    background-color: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.hexagon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(60deg, var(--primary) 0%, transparent 70%),
        linear-gradient(-60deg, var(--secondary) 0%, transparent 70%);
    opacity: 0.15;
    z-index: 0;
}

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

.hero-actions {
    margin-top: 2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
}

.primary-btn {
    background-color: var(--secondary);
    color: var(--dark);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background-color: var(--primary);
    color: white;
}

.secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

/* Features Section */
.features {
    padding: 6rem 0;
    text-align: center;
    background-color: white;
}

.features h2 {
    margin-bottom: 3rem;
}

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

.feature-card {
    background-color: white;
    border: 2px solid rgba(124, 58, 237, 0.1);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(124, 58, 237, 0.05);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.feature-card.highlight {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(251, 191, 36, 0.1));
    border-color: var(--secondary);
}

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

/* Technology Section */
.tech {
    padding: 6rem 0;
    background-color: var(--light);
    overflow: hidden;
}

.tech-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.tech-content {
    flex: 1;
}

.tech-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tech-list {
    list-style: none;
    margin: 2rem 0;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: var(--dark);
    color: white;
    text-align: center;
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
    padding-top: 10rem;
    padding-bottom: 10rem;
    margin-top: -5rem;
    margin-bottom: -5rem;
}

.cta h2 {
    color: white;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 8rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-links h4 {
    color: var(--secondary);
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .tech-grid {
        flex-direction: column;
    }
    
    .feature-card {
        clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        padding: 1.5rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        display: none;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .features,
    .tech,
    .cta {
        padding: 4rem 0;
    }
    
    .cta {
        clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
        padding-top: 6rem;
        padding-bottom: 6rem;
        margin-top: -2rem;
        margin-bottom: -2rem;
    }
    
    .feature-card {
        clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
        padding: 1.5rem;
    }
}
