/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a12;
    color: #e8e8f0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
.gradient-text {
    background: linear-gradient(135deg, #6c5ce7, #00b4d8, #6c5ce7);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.highlight {
    color: #6c5ce7;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 18, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6c5ce7, #00b4d8);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 18, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #6c5ce7, #4a3db8);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #6c5ce7;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* ===== HERO ===== */
.hero {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(0, 180, 216, 0.05) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #a78bfa;
    width: fit-content;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.stat-number.animate {
    animation: countUp 2s ease forwards;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.project-top-title {
    padding: 40px;
    font-size: 82px;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -3px;
    text-align: center;
    /* color: #6c5ce7; */
    background: linear-gradient(135deg, #6c5ce7, #00b4d8, #6c5ce7);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 8px;
    backdrop-filter: blur(8px);
}

.sql-preview {
    background: #14141f;
    border-radius: 14px;
    overflow: hidden;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.preview-title {
    margin-left: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.preview-body {
    padding: 20px 20px 16px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 2;
}

.preview-line .keyword {
    color: #c678dd;
}

.preview-line .field {
    color: #61afef;
}

.preview-line .table {
    color: #e5c07b;
}

.preview-line .operator {
    color: #abb2bf;
}

.preview-line .value {
    color: #98c379;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #a78bfa;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    max-width: 600px;
    margin: 16px auto 0;
}

/* ===== PRODUCT ===== */
.product {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.01);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.4s ease;
    cursor: default;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(108, 92, 231, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    line-height: 1.6;
}

/* Screenshots */
.screenshots { text-align: center; }
.screenshots-title { font-size: 32px; font-weight: 600; color: #fff; }
.screenshots-description { margin: 12px auto 32px; max-width: 600px; color: #a4a4b8; }
.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #6c5ce7 #14141f;
    border-radius: 20px;
}
.carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    background: #14141f;
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: 20px;
    overflow: hidden;
    text-align: left;
}
.screenshot-link { display: block; background: #e2e8f0; }
.screenshot-link img { display: block; width: 100%; height: auto; aspect-ratio: 3024 / 1592; object-fit: contain; }
.screenshot-caption { padding: 24px 32px 28px; }
.screenshot-step { color: #b5a4ff; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; }
.screenshot-caption h4 { margin: 6px 0 8px; font-size: 23px; color: #fff; line-height: 1.3; }
.screenshot-caption p { max-width: 780px; color: #a4a4b8; font-size: 15px; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 24px; }
.carousel-controls[hidden] { display: none; }
.carousel-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(108, 92, 231, 0.4);
    border-radius: 50%;
    background: #191726;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-arrow:hover { background: #6c5ce7; }
.carousel-dots { display: flex; align-items: center; gap: 4px; }
.carousel-dot { width: 28px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.carousel-dot::before { content: ''; width: 8px; height: 8px; border-radius: 8px; background: #575568; transition: width 0.2s, background 0.2s; }
.carousel-dot[aria-current="true"]::before { width: 24px; background: #a78bfa; }
.carousel-counter { font-size: 13px; color: #b5a4ff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.screenshots :focus-visible { outline: 2px solid #a78bfa; outline-offset: -3px; }
.screenshots-hint { margin-top: 16px; color: #9696ab; font-size: 13px; }
@media (max-width: 600px) {
    .screenshots-title { font-size: 26px; }
    .screenshot-caption { padding: 20px; }
    .screenshot-caption h4 { font-size: 20px; }
    .carousel-controls { gap: 10px; }
    .carousel-dots { gap: 2px; }
    .carousel-dot { width: 18px; padding: 0; }
    .carousel-dot[aria-current="true"]::before { width: 18px; }
    .carousel-arrow { flex-shrink: 0; width: 44px; height: 44px; }
    .carousel-counter { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .carousel-dot::before, .carousel-arrow { transition: none; }
}

/* ===== PRICING ===== */
.pricing {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.01);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.08);
}

.pricing-card.popular {
    border-color: rgba(108, 92, 231, 0.3);
    background: rgba(108, 92, 231, 0.04);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6c5ce7, #4a3db8);
    padding: 4px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.price {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
}

.period {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex: 1;
}

.pricing-features li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    text-align: center;
    justify-content: center;
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 2px;
}

.contact-item a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #6c5ce7;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.social-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #a78bfa;
}

.contact-project {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(0, 180, 216, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.project-badge {
    display: inline-block;
    padding: 2px 12px;
    background: rgba(108, 92, 231, 0.15);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: #a78bfa;
    margin-bottom: 8px;
}

.contact-project p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    max-width: 80%;
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 40px;
}

.contact-form h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    background: rgba(108, 92, 231, 0.02);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(39, 201, 63, 0.1);
    border: 1px solid rgba(39, 201, 63, 0.2);
    color: #27c93f;
}

.form-message.error {
    display: block;
    background: rgba(255, 95, 86, 0.1);
    border: 1px solid rgba(255, 95, 86, 0.2);
    color: #ff5f56;
}

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

    .contact-form-wrapper {
        padding: 24px;
    }

    .section-title {
        font-size: 30px;
    }
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .logo-text {
    font-size: 18px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.2);
    margin-left: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #a78bfa;
}

.footer-owner {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.footer-owner h2 {
    margin-bottom: 8px;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.footer-owner-details {
    margin-top: 12px;
}

.footer-owner-details > div {
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
}

.footer-owner-details dt::after {
    content: ':';
}

.footer-owner-details dd {
    margin: 0;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand p {
        margin-left: 0;
    }
}
