/* ============================================
   SIPNexa — style.css
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: #1A1A2E;
    background: #FFFFFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}


/* ============================================
   Navigation
   ============================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0B1D2C;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.nav-transparent {
    background: transparent;
}

.site-nav.nav-transparent.nav-solid {
    background: #0B1D2C;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

/* Logo */
.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-sip {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #FFFFFF;
    display: inline;
}

.logo-nexa {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #1D9E75;
    display: inline;
}

.logo-subtitle {
    font-size: 9px;
    font-weight: 500;
    color: #6B7280;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2px;
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: #FFFFFF;
}

.nav-link.nav-active {
    color: #1D9E75;
}

.nav-link.nav-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1D9E75;
    border-radius: 1px;
}

.nav-cta {
    display: inline-block;
    padding: 10px 24px;
    background: #1D9E75;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.nav-cta:hover {
    background: #178a65;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: #1D9E75;
    color: #FFFFFF;
    border-color: #1D9E75;
}

.btn-primary:hover {
    background: #178a65;
    border-color: #178a65;
}

.btn-outline {
    background: transparent;
    color: #5DCAA5;
    border-color: #5DCAA5;
}

.btn-outline:hover {
    background: rgba(93, 202, 165, 0.1);
    color: #FFFFFF;
    border-color: #FFFFFF;
}


/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    background: #0B1D2C;
    padding: 160px 24px 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(93, 202, 165, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 202, 165, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: center;
}

.hero-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #1D9E75;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-sub {
    font-size: 18px;
    color: #6B7280;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 40px;
}

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


/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
    background: #0E2538;
    padding: 48px 24px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 40px;
    color: #1D9E75;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ============================================
   Shared section styles
   ============================================ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 16px;
}

.section-title-light {
    color: #FFFFFF;
}

.section-intro {
    font-size: 18px;
    color: #6B7280;
    max-width: 560px;
    margin: 0 auto;
}


/* ============================================
   Why SIPNexa
   ============================================ */
.why-sipnexa {
    background: #F4F5F7;
    padding: 80px 24px;
}

.why-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.why-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.7;
}


/* ============================================
   Features Overview
   ============================================ */
.features-overview {
    background: #0B1D2C;
    padding: 80px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.feature-card {
    display: block;
    background: #132F46;
    border-radius: 12px;
    padding: 32px 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(29, 158, 117, 0.3);
}

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

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

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

.features-more {
    text-align: center;
}

.link-arrow {
    font-size: 16px;
    font-weight: 600;
    color: #1D9E75;
    transition: color 0.2s ease;
}

.link-arrow:hover {
    color: #5DCAA5;
}


/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
    background: #132F46;
    padding: 80px 24px;
    text-align: center;
}

.cta-heading {
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}


/* ============================================
   Page Hero (sub-pages)
   ============================================ */
.page-hero {
    background: #0B1D2C;
    padding: 140px 24px 64px;
    text-align: center;
}

.page-hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 44px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 18px;
    color: #6B7280;
    line-height: 1.6;
}


/* ============================================
   Features Detail
   ============================================ */
.features-detail {
    background: #F4F5F7;
    padding: 80px 24px;
}

.feature-detail-block {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 36px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-detail-block:last-child {
    margin-bottom: 0;
}

.feature-detail-block h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 12px;
}

.feature-detail-block p {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.7;
    max-width: 800px;
}


/* ============================================
   Infrastructure
   ============================================ */
.infra-points {
    background: #F4F5F7;
    padding: 80px 24px;
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.infra-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 36px 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.infra-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.infra-icon {
    margin-bottom: 16px;
}

.infra-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 10px;
}

.infra-card p {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.7;
}

.infra-why {
    background: #FFFFFF;
    padding: 80px 24px;
}

.infra-why-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.infra-why-content h2 {
    font-size: 30px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 20px;
}

.infra-why-content p {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.8;
}


/* ============================================
   Pricing
   ============================================ */
.pricing-section {
    background: #F4F5F7;
    padding: 80px 24px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
}

.pricing-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pricing-card-featured {
    border-color: #1D9E75;
    border-width: 2px;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1D9E75;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 14px;
    font-weight: 600;
    color: #1D9E75;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.pricing-channels {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 500;
    color: #1A1A2E;
    margin-bottom: 8px;
}

.pricing-price {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-contact {
    font-size: 16px;
    font-weight: 500;
    color: #6B7280;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
}

.pricing-features li {
    font-size: 15px;
    color: #6B7280;
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.6;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: #1D9E75;
    border-radius: 50%;
}

.pricing-note {
    text-align: center;
    font-size: 15px;
    color: #6B7280;
    font-style: italic;
}


/* ============================================
   Compliance
   ============================================ */
.compliance-sections {
    background: #F4F5F7;
    padding: 80px 24px;
}

.compliance-block {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 36px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.compliance-block:last-child {
    margin-bottom: 0;
}

.compliance-block h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 16px;
}

.compliance-block ul {
    list-style: none;
    padding: 0;
}

.compliance-block li {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.7;
    padding: 6px 0 6px 24px;
    position: relative;
}

.compliance-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: #1D9E75;
    border-radius: 50%;
}


/* ============================================
   Contact
   ============================================ */
.contact-section {
    background: #F4F5F7;
    padding: 80px 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-pitch h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 16px;
}

.contact-pitch p {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.7;
}

.contact-form-wrap {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 36px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.form-errors {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.form-errors p {
    font-size: 14px;
    color: #DC2626;
    margin-bottom: 4px;
}

.form-errors p:last-child {
    margin-bottom: 0;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: #1A1A2E;
    background: #F4F5F7;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1D9E75;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}


/* ============================================
   Thank You
   ============================================ */
.thankyou {
    background: #0B1D2C;
    padding: 200px 24px 160px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thankyou-content {
    max-width: 500px;
    margin: 0 auto;
}

.thankyou-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.thankyou-content p {
    font-size: 18px;
    color: #6B7280;
    margin-bottom: 32px;
}


/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #0B1D2C;
    padding: 64px 24px 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-links a,
.footer-contact a {
    display: block;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #1D9E75;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}


/* ============================================
   Fade-in animation
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   Responsive
   ============================================ */

/* --- Tablet (768px) --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 44px;
    }

    .stat-value {
        font-size: 32px;
    }

    .why-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

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

    .cta-heading {
        font-size: 32px;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .infra-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* Nav mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #0B1D2C;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-link {
        font-size: 16px;
        padding: 8px 0;
    }

    .nav-cta {
        text-align: center;
        width: 100%;
    }

    /* Hero mobile */
    .hero {
        padding: 120px 24px 64px;
        min-height: auto;
    }

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

    .hero-sub {
        font-size: 16px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Stats mobile */
    .stats-bar {
        padding: 32px 24px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-value {
        font-size: 28px;
    }

    /* Why SIPNexa mobile */
    .why-sipnexa {
        padding: 48px 24px;
    }

    /* Features mobile */
    .features-overview {
        padding: 48px 24px;
    }

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

    /* Page hero mobile */
    .page-hero {
        padding: 110px 24px 40px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    /* Sub-page sections mobile */
    .pricing-section {
        padding: 48px 24px;
    }

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

    .features-detail,
    .infra-points,
    .infra-why,
    .compliance-sections,
    .contact-section {
        padding: 48px 24px;
    }

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

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

    .contact-pitch h2 {
        font-size: 28px;
    }

    /* CTA mobile */
    .cta-banner {
        padding: 48px 24px;
    }

    .cta-heading {
        font-size: 28px;
    }

    /* Footer mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: auto;
    }
}
