/* =========================================
   GHOSTROUTE VPN - Syntax.fm Style
   ========================================= */

:root {
    /* Syntax.fm Colors */
    --yellow: #FFC800;
    --black: #000000;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-800: #262626;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Borders */
    --border-thick: 3px solid var(--black);
    --border-thin: 1px solid var(--gray-200);

    /* Shadows */
    --shadow-hard: 6px 6px 0px var(--black);
    --shadow-hover: 10px 10px 0px var(--black);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 900;
    /* Extra Bold */
    color: var(--black);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 100%;
    height: 8px;
    background: var(--yellow);
    margin-top: 5px;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

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

.highlight {
    background: var(--yellow);
    padding: 0 10px;
    color: var(--black);
}

/* =========================================
   HEADER
   ========================================= */

header {
    background: var(--black);
    padding: 1.5rem 0;
    border-bottom: 5px solid var(--yellow);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--yellow);
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 4px;
    background: var(--yellow);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
    background: var(--black);
    color: var(--white);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(var(--gray-800) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero h1 {
    color: var(--white);
    text-shadow: 4px 4px 0px var(--yellow);
}

.hero p {
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.5rem;
    font-weight: 500;
}

.hero .flex {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
    font-family: var(--font-display);
    text-transform: uppercase;
    border: var(--border-thick);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--yellow);
    color: var(--black);
    box-shadow: var(--shadow-hard);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    box-shadow: var(--shadow-hard);
}

.btn-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

/* =========================================
   SECTIONS & CARDS
   ========================================= */

.section {
    padding: var(--spacing-xl) 0;
    border-bottom: var(--border-thick);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.card {
    background: var(--white);
    border: var(--border-thick);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-hard);
    transition: all 0.2s;
    /* Prevent overflow */
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    border-bottom: 3px solid var(--black);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

/* Pricing Cards */
.pricing-amount {
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.pricing-amount .price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--black);
    font-family: var(--font-display);
}

.pricing-amount .pricing-method {
    margin: 0.5rem 0 0 0;
    color: var(--gray-800);
}

.pricing-features {
    list-style: none;
    margin: var(--spacing-md) 0;
    padding: 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 1rem;
}

/* =========================================
   FORMS
   ========================================= */

.form-group {
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.form-input,
.form-select {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-family: var(--font-mono);
    border: var(--border-thick);
    background: var(--gray-100);
    color: var(--black);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    background: var(--white);
    box-shadow: 4px 4px 0px var(--yellow);
}

/* Radio buttons */
label.card {
    cursor: pointer;
    display: flex;
    align-items: center;
}

label.card input {
    margin-right: 1rem;
    width: 24px;
    height: 24px;
    accent-color: var(--black);
}

/* =========================================
   GRID & UTILS
   ========================================= */

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.gap-2 {
    gap: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.text-muted {
    color: var(--gray-800);
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    border: 2px solid var(--black);
    font-size: 0.8rem;
}

.badge-info {
    background: var(--yellow);
    color: var(--black);
}

.badge-success {
    background: #10b981;
    color: var(--black);
}

/* =========================================
   ALERTS
   ========================================= */

.alert {
    padding: var(--spacing-md);
    border: 2px solid var(--black);
    border-radius: 4px;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-info {
    background-color: #dbeafe;
    border-color: #3b82f6;
}

.alert-success {
    background-color: #d1fae5;
    border-color: #10b981;
}

.alert-error {
    background-color: #fee2e2;
    border-color: #ef4444;
}

.alert strong {
    font-weight: 700;
}

/* =========================================
   LOADING SPINNER
   ========================================= */

.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--black);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   FOOTER
   ========================================= */

footer {
    background: var(--black);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

footer p {
    color: var(--gray-200);
}

footer strong {
    color: var(--yellow);
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    /* Header & Navigation */
    nav {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        border-left: 5px solid var(--yellow);
        gap: 1.5rem;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }

    .nav-links a {
        font-size: 1.5rem;
        padding: 0.5rem 0;
        display: block;
        border-bottom: 2px solid var(--gray-800);
    }

    /* Overlay when menu is open */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: -1;
    }

    /* Hero */
    .hero {
        min-height: 60vh;
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero h1 {
        text-shadow: 2px 2px 0px var(--yellow);
    }

    .hero p {
        font-size: 1.125rem;
    }

    .hero .flex {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    /* Buttons */
    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
    }

    /* Cards */
    .card {
        padding: var(--spacing-md);
        box-shadow: 4px 4px 0px var(--black);
    }

    .card:hover {
        transform: translate(-2px, -2px);
        box-shadow: 6px 6px 0px var(--black);
    }

    /* Grids - Force single column on mobile */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Feature cards */
    .feature-icon {
        font-size: 3rem;
    }

    /* Forms */
    .form-input,
    .form-select {
        padding: 0.875rem;
        font-size: 1rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    /* Radio cards */
    label.card {
        padding: var(--spacing-sm);
    }

    label.card input {
        width: 20px;
        height: 20px;
    }

    /* Features Section - Why GhostRoute */
    #features .grid-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #features .card {
        padding: 1.25rem;
        text-align: center;
    }

    #features .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    #features h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    #features p {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    /* Pricing cards - improve mobile display */
    #pricing .grid-2 {
        max-width: 100% !important;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #pricing .card {
        margin-bottom: 0;
        padding: 1.5rem;
    }

    #pricing .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    #pricing .card-title {
        font-size: 1.5rem;
    }

    #pricing .pricing-amount .price {
        font-size: 2.5rem;
    }

    #pricing .pricing-features {
        padding-left: 0;
    }

    #pricing .pricing-features li {
        font-size: 0.95rem;
        padding: 0.4rem 0;
    }

    /* How it works section */
    .section .grid-2 {
        max-width: 100% !important;
        grid-template-columns: 1fr;
    }

    /* Buy form */
    #buy .card {
        max-width: 100% !important;
        margin: 0 1rem;
        padding: 1.5rem;
    }

    #buy h2 {
        font-size: 1.75rem;
    }

    #buy .grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #buy label.card {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --spacing-sm: 0.5rem;
        --spacing-md: 0.75rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    p {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .btn {
        font-size: 0.875rem;
        padding: 0.875rem 1rem;
    }

    .card {
        padding: 1rem;
    }

    /* Features */
    #features .card {
        padding: 1rem;
    }

    #features .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    #features h3 {
        font-size: 1.125rem;
    }

    #features p {
        font-size: 0.875rem;
    }

    /* Pricing */
    #pricing .card {
        padding: 1.25rem;
    }

    #pricing .card-title {
        font-size: 1.25rem;
    }

    #pricing .pricing-amount .price {
        font-size: 2rem;
    }

    #pricing .pricing-amount .pricing-method {
        font-size: 0.875rem;
    }

    #pricing .pricing-features li {
        font-size: 0.85rem;
        padding: 0.35rem 0;
    }

    /* Buy form */
    #buy .card {
        margin: 0 0.75rem;
        padding: 1.25rem;
    }

    #buy h2 {
        font-size: 1.5rem;
    }

    #buy p {
        font-size: 0.875rem;
    }

    .form-input,
    .form-select {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.4rem;
    }

    #buy label.card {
        padding: 0.75rem;
    }

    #buy label.card strong {
        font-size: 0.95rem;
    }

    #buy label.card p {
        font-size: 0.85rem;
    }

    /* Shadows - reduce on small screens */
    .card {
        box-shadow: 3px 3px 0px var(--black);
    }

    .card:hover {
        transform: translate(-1px, -1px);
        box-shadow: 5px 5px 0px var(--black);
    }

    .btn-primary,
    .btn-secondary {
        box-shadow: 4px 4px 0px var(--black);
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        box-shadow: 6px 6px 0px var(--black);
    }
}
/* =========================================
   BOTTOM NAVIGATION (Mobile Only)
   ========================================= */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--black);
    border-top: 2px solid var(--yellow);
    padding: 10px 0;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.8rem;
    gap: 5px;
    transition: all 0.2s;
}

.nav-item .nav-icon {
    font-size: 1.5rem;
}

.nav-item.active {
    color: var(--yellow);
}

.nav-item:hover {
    transform: translateY(-2px);
    color: var(--yellow);
}

/* =========================================
   VPN KEY CARD STYLES
   ========================================= */

.key-box {
    background: var(--gray-100);
    border: 2px solid var(--black);
    border-radius: 4px;
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    position: relative;
    /* Prevent overflow outside the box */
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.key-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--black);
    /* Prevent overflow - break long strings and wrap them */
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    padding-right: 1rem;
    display: block;
    /* Allow scrolling if text is still too long */
    overflow-x: auto;
}

.copy-btn {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    padding: 0.5rem 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 0.5rem;
    width: 100%;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--white);
    color: var(--black);
    box-shadow: 3px 3px 0px var(--yellow);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* =========================================
   RESPONSIVE - MOBILE
   ========================================= */

@media (max-width: 768px) {
    /* VPN Keys - Mobile adjustments */
    .key-value {
        font-size: 0.75rem;
        padding-right: 0.5rem;
    }

    .key-box {
        padding: var(--spacing-sm);
    }

    /* Grid adjustments */
    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Card adjustments */
    .card {
        padding: var(--spacing-md);
    }

    /* Bottom Navigation */
    .bottom-nav {
        display: flex;
    }

    /* Add padding to body so content isn't hidden by bottom nav */
    body {
        padding-bottom: 80px;
    }

    /* Hide top header on mobile dashboard to save space */
    header {
        display: none;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .key-value {
        font-size: 0.7rem;
        padding-right: 0.25rem;
    }

    .key-box {
        padding: 0.5rem;
    }

    .card {
        padding: var(--spacing-sm);
    }

    .copy-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Ensure grid has no horizontal overflow */
    .grid {
        gap: var(--spacing-md);
    }
}

