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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    background: #0b0d17;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

a {
    color: #f0b429;
    text-decoration: none;
    transition: color 0.3s;
}
a:hover, a:focus {
    color: #fcd34d;
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1d2e;
}
::-webkit-scrollbar-thumb {
    background: #f0b429;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: #f0b429;
    color: #0b0d17;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 13, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(240, 180, 41, 0.15);
    transition: background 0.3s, box-shadow 0.3s;
}
header.sticky {
    background: rgba(11, 13, 23, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    display: flex;
    gap: 8px;
    align-items: center;
}
nav ul li a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: all 0.3s;
    position: relative;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #f0b429;
    transition: all 0.3s;
    transform: translateX(-50%);
    border-radius: 1px;
}
nav ul li a:hover::after,
nav ul li a.active::after {
    width: 60%;
}
nav ul li a:hover,
nav ul li a.active {
    color: #f0b429;
    background: rgba(240, 180, 41, 0.08);
}

#darkModeToggle,
#mobileMenuToggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    color: #cbd5e1;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#darkModeToggle:hover,
#mobileMenuToggle:hover {
    background: rgba(240, 180, 41, 0.15);
    color: #f0b429;
    border-color: #f0b429;
}

#mobileMenuToggle {
    display: none;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, #0b0d17 0%, #1a1d2e 50%, #0f1a2e 100%);
    position: relative;
    overflow: hidden;
}
#hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at 30% 50%, rgba(240,180,41,0.08) 0%, transparent 60%);
    pointer-events: none;
}
#hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at 70% 50%, rgba(59,130,246,0.06) 0%, transparent 50%);
    pointer-events: none;
}

#hero > div {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out;
}

#hero > div > div:first-child {
    flex: 1 1 400px;
    min-width: 280px;
}

#hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    background: linear-gradient(135deg, #f0b429, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

#hero p {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.7;
}

#hero div > div:last-child {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

#hero a[role="button"] {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
    min-width: 140px;
}
#hero a[role="button"]:first-child {
    background: linear-gradient(135deg, #f0b429, #d97706);
    color: #0b0d17;
    box-shadow: 0 4px 20px rgba(240,180,41,0.3);
}
#hero a[role="button"]:first-child:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(240,180,41,0.5);
}
#hero a[role="button"]:last-child {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(240,180,41,0.3);
    color: #f0b429;
}
#hero a[role="button"]:last-child:hover {
    background: rgba(240,180,41,0.1);
    border-color: #f0b429;
    transform: translateY(-3px);
}

#hero svg {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 100%;
    height: auto;
}

/* Section Common */
section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}
section:nth-of-type(1) { animation-delay: 0.1s; }
section:nth-of-type(2) { animation-delay: 0.2s; }
section:nth-of-type(3) { animation-delay: 0.3s; }
section:nth-of-type(4) { animation-delay: 0.4s; }
section:nth-of-type(5) { animation-delay: 0.5s; }
section:nth-of-type(6) { animation-delay: 0.6s; }
section:nth-of-type(7) { animation-delay: 0.7s; }
section:nth-of-type(8) { animation-delay: 0.8s; }
section:nth-of-type(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 16px;
    color: #f0b429;
    letter-spacing: -0.01em;
}
section h2 + p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    color: #94a3b8;
    font-size: 1.05rem;
}

/* About Section */
#about {
    background: linear-gradient(180deg, transparent, rgba(240,180,41,0.02));
    border-radius: 24px;
    padding: 80px 32px;
}
#about > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.8;
}
#about > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
#about > div > div {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 32px 24px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
#about > div > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0b429, #d97706);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}
#about > div > div:hover::before {
    transform: scaleX(1);
}
#about > div > div:hover {
    transform: translateY(-8px);
    border-color: rgba(240,180,41,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
#about > div > div h3 {
    color: #f0b429;
    margin-bottom: 12px;
    font-size: 1.2rem;
}
#about > div > div p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Products & Services */
#products, #services {
    background: linear-gradient(135deg, rgba(240,180,41,0.02), transparent);
    border-radius: 24px;
    padding: 80px 32px;
}
#products > div, #services > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
#products > div > div, #services > div > div {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 32px 24px;
    transition: all 0.4s;
    text-align: center;
}
#products > div > div:hover, #services > div > div:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(240,180,41,0.3);
    box-shadow: 0 12px 40px rgba(240,180,41,0.1);
    background: rgba(240,180,41,0.04);
}
#products > div > div h3, #services > div > div h3 {
    color: #f0b429;
    margin-bottom: 12px;
    font-size: 1.25rem;
}
#products > div > div p, #services > div > div p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Features */
#features > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
#features > div > div {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}
#features > div > div::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, transparent, rgba(240,180,41,0.03));
    opacity: 0;
    transition: opacity 0.3s;
}
#features > div > div:hover {
    transform: translateY(-5px);
    border-color: rgba(240,180,41,0.15);
}
#features > div > div:hover::after {
    opacity: 1;
}
#features > div > div h3 {
    color: #f0b429;
    margin-bottom: 8px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}
#features > div > div p {
    color: #94a3b8;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* HowTo */
#howto {
    background: linear-gradient(135deg, rgba(240,180,41,0.02), transparent);
    border-radius: 24px;
    padding: 80px 32px;
}
#howto ol {
    max-width: 700px;
    margin: 0 auto;
    counter-reset: step;
}
#howto ol li {
    counter-increment: step;
    padding: 16px 20px 16px 56px;
    position: relative;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s;
    font-size: 0.98rem;
    color: #cbd5e1;
}
#howto ol li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #f0b429, #d97706);
    color: #0b0d17;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
#howto ol li:hover {
    border-color: rgba(240,180,41,0.2);
    background: rgba(240,180,41,0.03);
    transform: translateX(4px);
}
#howto ol li strong {
    color: #f0b429;
}

/* FAQ */
#faq {
    padding: 80px 24px;
}
#faq > div {
    max-width: 720px;
    margin: 0 auto;
}
#faq > div > div {
    margin-bottom: 8px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s;
}
#faq > div > div:hover {
    border-color: rgba(240,180,41,0.15);
}
#faq button {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    position: relative;
}
#faq button::after {
    content: '+';
    font-size: 1.4rem;
    color: #f0b429;
    transition: transform 0.3s;
    font-weight: 300;
}
#faq button[aria-expanded="true"]::after {
    transform: rotate(45deg);
}
#faq button:hover {
    background: rgba(240,180,41,0.04);
    color: #f0b429;
}
#faq div[hidden] {
    display: none;
}
#faq div:not([hidden]) {
    padding: 0 24px 20px;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

/* Resources */
#resources {
    background: linear-gradient(180deg, transparent, rgba(240,180,41,0.02));
    border-radius: 24px;
    padding: 80px 32px;
}
#resources > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
#resources article {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 20px;
    padding: 28px 24px;
    transition: all 0.4s;
}
#resources article:hover {
    transform: translateY(-6px);
    border-color: rgba(240,180,41,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    background: rgba(240,180,41,0.03);
}
#resources article h3 {
    color: #f0b429;
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}
#resources article p {
    color: #94a3b8;
    font-size: 0.92rem;
    margin-bottom: 16px;
    line-height: 1.7;
}
#resources article a {
    color: #f0b429;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
#resources article a::after {
    content: '→';
    transition: transform 0.3s;
}
#resources article a:hover::after {
    transform: translateX(4px);
}

/* Contact */
#contact {
    text-align: center;
    padding: 80px 24px;
}
#contact address {
    font-style: normal;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 24px;
    padding: 36px 32px;
    transition: all 0.3s;
}
#contact address:hover {
    border-color: rgba(240,180,41,0.15);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
#contact address p {
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 1rem;
}
#contact address p:last-child {
    margin-bottom: 0;
}
#contact address p:first-child {
    color: #f0b429;
    font-weight: 600;
}

/* Footer */
footer {
    background: rgba(11, 13, 23, 0.95);
    border-top: 1px solid rgba(240,180,41,0.1);
    padding: 48px 24px 24px;
}
footer > div:first-child {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}
footer h3 {
    color: #f0b429;
    font-size: 1.2rem;
    margin-bottom: 12px;
}
footer h4 {
    color: #f0b429;
    font-size: 1rem;
    margin-bottom: 12px;
}
footer p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}
footer ul li {
    margin-bottom: 8px;
}
footer ul li a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: all 0.3s;
}
footer ul li a:hover {
    color: #f0b429;
    padding-left: 4px;
}
footer > div:last-child {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    max-width: 1200px;
    margin: 0 auto;
}
footer > div:last-child p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0b429, #d97706);
    color: #0b0d17;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(240,180,41,0.3);
    transition: all 0.3s;
    z-index: 999;
}
#backToTop:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(240,180,41,0.5);
}

/* Dark Mode */
.dark-mode {
    background: #ffffff;
    color: #1e293b;
}
.dark-mode header {
    background: rgba(255,255,255,0.85);
    border-bottom-color: rgba(0,0,0,0.08);
}
.dark-mode header.sticky {
    background: rgba(255,255,255,0.95);
}
.dark-mode nav ul li a {
    color: #475569;
}
.dark-mode nav ul li a:hover,
.dark-mode nav ul li a.active {
    color: #d97706;
    background: rgba(217,119,6,0.06);
}
.dark-mode #darkModeToggle,
.dark-mode #mobileMenuToggle {
    color: #475569;
    border-color: rgba(0,0,0,0.1);
}
.dark-mode #hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}
.dark-mode #hero h1 {
    background: linear-gradient(135deg, #d97706, #f59e0b, #b45309);
    -webkit-background-clip: text;
    background-clip: text;
}
.dark-mode #hero p {
    color: #64748b;
}
.dark-mode a[role="button"]:last-child {
    border-color: rgba(217,119,6,0.3);
    color: #d97706;
}
.dark-mode a[role="button"]:last-child:hover {
    background: rgba(217,119,6,0.06);
}
.dark-mode section h2 {
    color: #d97706;
}
.dark-mode section h2 + p,
.dark-mode #about > p,
.dark-mode #about > div > div p,
.dark-mode #products > div > div p,
.dark-mode #services > div > div p,
.dark-mode #features > div > div p,
.dark-mode #faq div:not([hidden]),
.dark-mode #resources article p,
.dark-mode footer p,
.dark-mode footer ul li a {
    color: #64748b;
}
.dark-mode #about > div > div,
.dark-mode #products > div > div,
.dark-mode #services > div > div,
.dark-mode #features > div > div,
.dark-mode #faq > div > div,
.dark-mode #resources article,
.dark-mode #contact address {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
}
.dark-mode #about > div > div h3,
.dark-mode #products > div > div h3,
.dark-mode #services > div > div h3,
.dark-mode #features > div > div h3,
.dark-mode #resources article h3,
.dark-mode footer h3,
.dark-mode footer h4 {
    color: #d97706;
}
.dark-mode #howto ol li {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.04);
    color: #475569;
}
.dark-mode #howto ol li strong {
    color: #d97706;
}
.dark-mode #faq button {
    color: #1e293b;
}
.dark-mode #faq button:hover {
    color: #d97706;
    background: rgba(217,119,6,0.04);
}
.dark-mode #contact address p {
    color: #475569;
}
.dark-mode #contact address p:first-child {
    color: #d97706;
}
.dark-mode footer {
    background: rgba(255,255,255,0.95);
    border-top-color: rgba(0,0,0,0.06);
}
.dark-mode footer ul li a:hover {
    color: #d97706;
}
.dark-mode footer > div:last-child {
    border-top-color: rgba(0,0,0,0.05);
}
.dark-mode footer > div:last-child p {
    color: #94a3b8;
}
.dark-mode #backToTop {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(11,13,23,0.98);
        backdrop-filter: blur(20px);
        padding: 16px;
        border-bottom: 1px solid rgba(240,180,41,0.1);
        gap: 4px;
    }
    .dark-mode nav ul {
        background: rgba(255,255,255,0.98);
        border-bottom-color: rgba(0,0,0,0.06);
    }
    nav.mobile-menu-open ul {
        display: flex;
    }
    #mobileMenuToggle {
        display: flex;
    }
    #hero > div {
        flex-direction: column;
        text-align: center;
    }
    #hero p {
        margin-left: auto;
        margin-right: auto;
    }
    #hero div > div:last-child {
        justify-content: center;
    }
    #hero svg {
        max-width: 100%;
        height: auto;
    }
    section {
        padding: 60px 16px;
    }
    #about {
        padding: 60px 16px;
    }
    #products, #services {
        padding: 60px 16px;
    }
    #howto {
        padding: 60px 16px;
    }
    #resources {
        padding: 60px 16px;
    }
    footer > div:first-child {
        gap: 24px;
        text-align: center;
    }
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 10px 16px;
    }
    #hero {
        padding: 100px 16px 60px;
    }
    #hero a[role="button"] {
        padding: 12px 28px;
        min-width: 120px;
        font-size: 0.9rem;
    }
    #about > div > div,
    #products > div > div,
    #services > div > div,
    #features > div > div,
    #resources article {
        padding: 24px 16px;
    }
    #contact address {
        padding: 24px 16px;
    }
    #faq button {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}