/* ==========================================
   NautilusVPN — Redesign v7 (nautilus ocean theme)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #000000;
    --bg-card: #0a0a0a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);

    --white: #ffffff;
    --gray-100: #e0e0e0;
    --gray-200: #a0a0a0;
    --gray-300: #666666;
    --gray-400: #333333;

    --accent: #ffffff;
    --green: #22c55e;

    --radius: 0px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'JetBrains Mono', 'Courier New', monospace;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ==========================================
   GLOBAL NETWORK CANVAS (fixed bg)
   ========================================== */
#networkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* All content above canvas */
body>*:not(#networkCanvas) {
    position: relative;
    z-index: 1;
}

/* ==========================================
   REVEAL ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal-d1 {
    transition-delay: 0.12s;
}

.reveal-d2 {
    transition-delay: 0.24s;
}

.reveal-d3 {
    transition-delay: 0.36s;
}

/* Page load animation */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: pageLoad 1s ease-out;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 32px 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    margin-bottom: 36px;
}

.title-line {
    display: block;
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    opacity: 0;
    animation: titleSlideIn 0.9s ease-out forwards;
}

.title-line.line-1 {
    animation-delay: 0.2s;
}

.title-line.line-2 {
    animation-delay: 0.4s;
}

.title-line.line-3 {
    animation-delay: 0.6s;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.line-1 {
    font-size: clamp(3.5rem, 10vw, 8rem);
    text-align: left;
    padding-left: 0;
    padding-right: 15%;
}

.line-2 {
    font-size: clamp(3.5rem, 10vw, 8rem);
    text-align: right;
    padding-left: 15%;
    padding-right: 0;
}

.line-3 {
    font-size: clamp(3.5rem, 10vw, 8rem);
    text-align: left;
    padding-left: 5%;
    padding-right: 10%;
}

.hero-desc {
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-100);
    line-height: 1.8;
    margin-bottom: 48px;
}

.hero-desc p {
    margin: 0;
}

.hero-btn {
    display: inline-block;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--white);
    padding: 20px 72px;
    border: 1px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.hero-btn:hover {
    color: var(--bg);
}

.hero-btn:hover::before {
    left: 0;
}

/* Subtle text glow */
.hero-title .title-line {
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.04);
}

/* ==========================================
   FEATURES
   ========================================== */
.features-section {
    padding: 80px 0 60px;
}

.features-heading {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.feature-card {
    border: 1px solid var(--border);
    padding: 36px 28px;
    position: relative;
    transition: border-color 0.5s ease, background 0.5s ease, transform 0.3s ease;
    margin-top: -1px;
    margin-left: -1px;
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.02);
    z-index: 2;
}

.feature-num {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--gray-300);
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 24px;
    color: var(--white);
    opacity: 0.9;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    opacity: 1;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-200);
    line-height: 1.65;
}

.feature-card p strong {
    color: var(--white);
    font-weight: 700;
}

.tg-link {
    color: var(--white);
    border-bottom: 1px solid var(--gray-400);
    transition: border-color var(--transition);
    font-weight: 600;
}

.tg-link:hover {
    border-color: var(--white);
}

/* ==========================================
   INSTALL SECTION
   ========================================== */
.install-section {
    padding: 40px 0 20px;
}

.install-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    border: 1px solid var(--border);
    padding: 48px 40px;
    transition: border-color 0.5s ease, background 0.5s ease;
}

.install-inner:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.01);
}

.install-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.install-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-300);
    min-width: 24px;
    padding-top: 2px;
}

.install-step p {
    font-size: 0.85rem;
    color: var(--gray-200);
    line-height: 1.6;
}

.install-btn {
    display: inline-block;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    padding: 18px 40px;
    border: 1px solid var(--white);
    background: transparent;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.install-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.install-btn:hover {
    color: var(--bg);
}

.install-btn:hover::before {
    left: 0;
}

/* ==========================================
   PRICING
   ========================================== */
.pricing-section {
    padding: 40px 0 80px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.pricing-sub {
    color: var(--gray-200);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.price-card {
    border: 1px solid var(--border);
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.5s ease, background 0.5s ease;
    margin-left: -1px;
}

.price-card:first-child {
    margin-left: 0;
}

.price-card:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.02);
    z-index: 2;
}

.price-card.highlighted {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

/* Split card into top and bottom for alignment */
.card-top-block {
    flex: 1;
    padding: 40px 32px 24px;
}

.card-bottom-block {
    padding: 0 32px 32px;
    margin-top: auto;
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 32px;
    background: var(--white);
    color: var(--bg);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-tier {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-200);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.card-price {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    display: flex;
    align-items: baseline;
    line-height: 1;
    margin-bottom: 4px;
}

.card-price .sym {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-left: 8px;
}

.card-period {
    font-size: 0.78rem;
    color: var(--gray-300);
    margin-bottom: 24px;
}

.card-sep {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
}

.card-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.card-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--gray-200);
    transition: border-color var(--transition), background var(--transition);
}

.card-option:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.02);
}

.card-option .opt-price {
    font-weight: 700;
    color: var(--white);
}

.card-option.best {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.best-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--gray-100);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 6px;
}

.card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--gray-200);
}

.card-features li .ck {
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 700;
    width: 18px;
    flex-shrink: 0;
}

/* Locations block */
.card-locations {
    margin-bottom: 20px;
}

.card-locations-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-300);
    margin-bottom: 10px;
}

.card-locations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

.loc-item.available {
    color: var(--gray-200);
}

.loc-item.unavailable {
    color: var(--gray-400);
    text-decoration: line-through;
    opacity: 0.5;
}

.loc-item .loc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.loc-item.available .loc-dot {
    background: var(--green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(34, 197, 94, 0.3);
    }

    50% {
        box-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
    }
}

.loc-item.unavailable .loc-dot {
    background: var(--gray-400);
}

/* Card Buttons */
.card-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.card-btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white);
}

.card-btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.card-btn-fill {
    background: var(--white);
    color: var(--bg);
}

.card-btn-fill:hover {
    background: var(--gray-100);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 40px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-top {
    margin-bottom: 32px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-nav a {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-300);
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
    border-color: var(--border-hover);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-copy {
    color: var(--gray-400);
    font-size: 0.75rem;
}

.footer-extra a {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-300);
    padding: 8px 16px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-extra a:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--bg);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
    .hero {
        padding: 60px 24px 60px;
    }

    .line-1,
    .line-2,
    .line-3 {
        font-size: clamp(2.5rem, 9vw, 5rem);
    }

    .line-1 {
        padding-right: 10%;
    }

    .line-2 {
        padding-left: 10%;
    }

    .line-3 {
        padding-left: 3%;
        padding-right: 5%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .install-inner {
        flex-direction: column;
        text-align: left;
        padding: 36px 28px;
    }

    .install-btn {
        width: 100%;
        text-align: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .price-card {
        margin-left: 0;
        margin-top: -1px;
    }

    .price-card:first-child {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 40px 16px 40px;
        min-height: 100svh;
    }

    .hero-content {
        max-width: 100%;
    }

    .line-1,
    .line-2,
    .line-3 {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }

    .line-1 {
        padding-right: 5%;
    }

    .line-2 {
        padding-left: 5%;
    }

    .line-3 {
        padding-left: 2%;
        padding-right: 0;
    }

    .hero-desc {
        font-size: 0.68rem;
        letter-spacing: 0.04em;
        margin-bottom: 36px;
    }

    .hero-btn {
        padding: 16px 24px;
        font-size: 0.78rem;
        width: 100%;
        text-align: center;
    }

    .features-section {
        padding: 50px 0 40px;
    }

    .features-heading {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        margin-left: 0;
        padding: 28px 20px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.75rem;
    }

    .install-section {
        padding: 30px 0 20px;
    }

    .install-inner {
        padding: 24px 16px;
        gap: 24px;
    }

    .install-text h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .install-step p {
        font-size: 0.78rem;
    }

    .install-btn {
        padding: 16px 24px;
        font-size: 0.78rem;
    }

    .pricing-section {
        padding: 30px 0 60px;
    }

    .pricing-title {
        font-size: 1.8rem;
    }

    .pricing-sub {
        font-size: 0.78rem;
    }

    .card-top-block {
        padding: 28px 20px 16px;
    }

    .card-bottom-block {
        padding: 0 20px 24px;
    }

    .card-price {
        font-size: 2.2rem;
    }

    .card-btn {
        font-size: 0.75rem;
        padding: 12px;
    }

    .footer {
        padding: 30px 0 24px;
    }

    .footer-nav {
        flex-direction: column;
    }

    .footer-nav a {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-extra a {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}

@media (max-width: 380px) {

    .line-1,
    .line-2,
    .line-3 {
        font-size: clamp(1.8rem, 13vw, 3rem);
    }

    .hero-desc {
        font-size: 0.62rem;
    }

    .features-heading {
        font-size: 1.4rem;
    }

    .card-price {
        font-size: 1.8rem;
    }
}

/* ==========================================
   SMOOTH TRANSITIONS & EXTRAS
   ========================================== */

/* Section transitions */
.features-section,
.install-section,
.pricing-section,
.footer {
    transition: opacity 0.6s ease;
}

/* Smooth link underlines */
a {
    transition: color var(--transition);
}