@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-primary: #0284c7;
    --accent-secondary: #d97706;
    --accent-success: #059669;
    --accent-danger: #dc2626;
    --border-color: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -4px rgba(0,0,0,0.05);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent-primary);
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.2s ease;
}

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

/* Hamburger Checkbox Hack */
.nav-toggle-chk {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    font-size: 28px;
    z-index: 1100;
    position: relative;
    color: var(--text-primary);
    user-select: none;
}

.nav-toggle-label .close-icon {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 24px;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid var(--accent-primary);
    padding: 6px 16px;
    border-radius: 100px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 48px;
    line-height: 1.15;
    color: white;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--accent-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
    background: #0274ae;
}

.cta-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    margin-left: 16px;
}

.cta-outline:hover {
    background: white;
    color: var(--text-primary);
}

/* Container */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
    width: 100%;
}

.section-title {
    font-size: 32px;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 16px;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

/* Cards & Components */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16 / 10;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.market-ticker {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    overflow: hidden;
}

.ticker-wrap {
    display: flex;
    justify-content: space-around;
    max-width: 1280px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 16px;
}

.ticker-item {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-val {
    font-family: monospace;
}

.up {
    color: var(--accent-success);
}

.down {
    color: var(--accent-danger);
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: #f1f5f9;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: #faf5ff;
}

.chart-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    padding-top: 20px;
    border-bottom: 2px solid var(--border-color);
    border-left: 2px solid var(--border-color);
    margin-top: 20px;
    margin-bottom: 12px;
}

.chart-bar {
    width: 40px;
    background: var(--accent-primary);
    border-radius: 4px 4px 0 0;
    position: relative;
    display: flex;
    justify-content: center;
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -24px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.chart-label {
    text-align: center;
    font-size: 11px;
    margin-top: 8px;
    color: var(--text-muted);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--accent-primary);
    background: white;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Success Modal Alert */
.alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
}

.alert-modal:target {
    opacity: 1;
    pointer-events: auto;
}

.alert-modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-modal:target .alert-modal-content {
    transform: scale(1);
}

.alert-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(5, 150, 105, 0.15);
    color: var(--accent-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px auto;
}

.alert-modal-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.alert-modal-content p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 28px;
}

.alert-close-btn {
    background: var(--text-primary);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.alert-close-btn:hover {
    background: var(--accent-primary);
}

.price-card {
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.price-card.featured {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.1);
}

.price-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent-secondary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 36px;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    margin: 20px 0;
}

.price-value span {
    font-size: 16px;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin: 28px 0;
    text-align: left;
    display: inline-block;
}

.price-features li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-features li::before {
    content: '✓';
    color: var(--accent-success);
    font-weight: bold;
}

footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 60px 24px 30px 24px;
    margin-top: auto;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #334155;
}

.footer-brand h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-links h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 16px;
    color: white;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle-label {
        display: block;
    }

    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }

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

    /* Mobile Drawer */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -50vw; 
        width: 50vw; 
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 25px rgba(15, 23, 42, 0.15);
        z-index: 1000;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        align-items: center; 
        justify-content: flex-start; 
        padding-top: 100px; 
        gap: 24px;
    }

    .mobile-menu-link {
        font-family: var(--font-heading);
        font-size: 20px;
        font-weight: 600;
        color: var(--text-primary);
        text-align: center;
    }

    .mobile-menu-link:hover {
        color: var(--accent-primary);
    }

    .nav-toggle-chk:checked ~ .mobile-menu {
        right: 0; 
    }

    .nav-toggle-chk:checked ~ .nav-toggle-label .hamburger {
        display: none;
    }

    .nav-toggle-chk:checked ~ .nav-toggle-label .close-icon {
        display: block;
        font-weight: 800;
    }

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

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

    .cta-outline {
        margin-left: 0;
        margin-top: 12px;
        display: block;
    }

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