/* ==========================================
   YardVerify Design System (CSS Custom Properties)
   ========================================== */
:root {
    /* Fonts */
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Theme Colors (Highly customizable by replacing these variables) */
    --bg-dark: #0b0f19;
    --bg-card: rgba(20, 28, 48, 0.6);
    --bg-card-hover: rgba(28, 38, 65, 0.8);
    --primary: #10b981;
    /* Security Green */
    --primary-glow: rgba(16, 185, 129, 0.15);
    --secondary: #3b82f6;
    /* Electric Blue */
    --secondary-glow: rgba(59, 130, 246, 0.15);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(16, 185, 129, 0.3);

    /* Layout Sizes */
    --header-height: 80px;
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   Base & Reset Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Helper Class for Highlights */
.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================
   Typography
   ========================================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* ==========================================
   Glassmorphic Header
   ========================================== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

#main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

#main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

#main-nav a:hover {
    color: var(--text-main);
}

#main-nav .lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.3rem 0.4rem;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.05);
}

#main-nav .lang-switch:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--secondary);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #059669);
    color: #0b0f19;
    box-shadow: 0 4px 20px var(--primary-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 1.1rem 2.2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.icon-whatsapp {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* ==========================================
   Hero Section
   ========================================== */
#hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: center;
    max-width: 1300px;
}

.badge-ctpat {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: var(--secondary-glow);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-image-wrapper {
    position: relative;
}

.glow-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.mockup-link {
    display: block;
    cursor: zoom-in;
}

.hero-mockup {
    width: 100%;
    max-width: 780px;
    margin-left: auto;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.6));
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {

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

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

/* ==========================================
   CTPAT Standards Section
   ========================================== */
#ctpat {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-focus);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.feature-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

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

/* ==========================================
   Device / Android Compatibility
   ========================================== */
.dark-section {
    background: #06090f;
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.compatibility-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge-android {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.compatibility-container h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.comp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.comp-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.comp-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.comp-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.device-card {
    background: rgba(20, 28, 48, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.2rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    width: 100%;
    transition: var(--transition-smooth);
}

.device-card:hover {
    transform: translateX(5px);
    border-color: var(--border-color-focus);
}

.tablet-view {
    border-left: 4px solid var(--secondary);
}

.phone-view {
    border-left: 4px solid var(--primary);
}

.device-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.device-spec {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   FAQ Section
   ========================================== */
#faq {
    padding: 6rem 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: var(--transition-fast);
    margin-right: 0.5rem;
}

.faq-question[aria-expanded="true"] .accordion-arrow {
    transform: rotate(-135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   Call to Action (CTA) Box
   ========================================== */
#demo-cta {
    padding: 4rem 0 8rem 0;
}

.cta-box-wrapper {
    max-width: 1000px;
}

.cta-box {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 28, 48, 0.9) 0%, rgba(11, 15, 25, 0.9) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    overflow: hidden;
}

.cta-box-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.cta-box h2 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.cta-box p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    position: relative;
    z-index: 2;
}

.cta-button-container {
    position: relative;
    z-index: 2;
}

/* ==========================================
   Footer
   ========================================== */
footer {
    border-top: 1px solid var(--border-color);
    background: #06090f;
    padding: 4rem 0 2rem 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-brand {
    max-width: 450px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    display: block;
    margin-bottom: 1rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(156, 163, 175, 0.6);
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        align-items: center;
    }

    .hero-mockup {
        max-width: 90%;
        margin: 0 auto;
    }

    .compatibility-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    #main-nav ul li:not(:last-child) {
        display: none;
    }

    #main-nav .lang-switch {
        padding: 0.2rem 0.3rem;
    }

    .container {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    #nav-cta-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }

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

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 2rem;
    }
}