/* ============================================
   VERSA - Design System
   Clean, professional B2B SaaS aesthetic
   ============================================ */

:root {
    --bg-primary: #0a0f1a;
    --bg-secondary: #111827;
    --bg-card: #1a2332;
    --bg-card-hover: #1f2937;
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --accent: #4f8fff;
    --accent-hover: #6ba3ff;
    --accent-coral: #ff6b4a;
    --accent-coral-hover: #ff8566;
    --border: #1e293b;
    --border-hover: #334155;
    --header-height: 72px;
}

/* ---- Base ---- */

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

html {
    background-color: var(--bg-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-secondary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Satoshi', 'DM Sans', sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

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

/* ---- Scrollbar ---- */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    z-index: 100;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    background: rgba(10, 15, 26, 0.95);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    z-index: 101;
}

.site-logo svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

/* Desktop nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
}

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

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

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

/* CTA button in header */
.nav-cta {
    margin-left: 1rem;
}

/* ---- Hamburger (mobile only) ---- */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-line + .hamburger-line {
    margin-top: 5px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Menu ---- */

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2rem;
}

.mobile-nav-link {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--text-primary);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-coral);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-coral-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 74, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    border-color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.section {
    padding: 6rem 0;
}

.section--alt {
    background: var(--bg-secondary);
}

.page-offset {
    padding-top: var(--header-height);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(79, 143, 255, 0.1);
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

.hero {
    padding: calc(var(--header-height) + 5rem) 0 5rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(79, 143, 255, 0.1);
    border: 1px solid rgba(79, 143, 255, 0.2);
    padding: 0.375rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   PAGE HEADER (About, Blog pages)
   ============================================ */

.page-hero {
    padding: calc(var(--header-height) + 4rem) 0 3rem;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.page-hero > .container > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* ============================================
   FEATURES GRID
   ============================================ */

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

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

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-email {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.cta-email:hover {
    color: var(--accent-hover);
}

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

.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.footer-logo svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-link {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-secondary);
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ============================================
   BLOG PAGE
   ============================================ */

/* Blog header */
.blog-header {
    padding: calc(var(--header-height) + 4rem) 0 2.5rem;
}

.blog-header-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.blog-header-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
}

/* Blog card grid */
.blog-grid-section {
    padding: 2rem 0 6rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-coral));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(79, 143, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-inner {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(79, 143, 255, 0.08);
    border: 1px solid rgba(79, 143, 255, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 1.25rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--accent-hover);
}

.blog-card-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.blog-card-date {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.blog-card-read {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.25s ease, color 0.2s ease;
}

.blog-card-read svg {
    transition: transform 0.25s ease;
}

.blog-card:hover .blog-card-read {
    color: var(--accent-hover);
}

.blog-card:hover .blog-card-read svg {
    transform: translateX(3px);
}

/* ============================================
   BLOG POST
   ============================================ */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
    margin-bottom: 2.5rem;
}

.back-link:hover {
    color: var(--accent);
}

.post-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(79, 143, 255, 0.1);
    border: 1px solid rgba(79, 143, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.post-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.post-meta-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

/* Post article wrapper */
.post-article {
    max-width: 960px;
}

/* Post content typography */
.post-content {
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.post-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(79, 143, 255, 0.3);
    transition: text-decoration-color 0.2s ease;
}

.post-content a:hover {
    text-decoration-color: var(--accent);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content ul {
    list-style: none;
}

.post-content ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.625rem;
}

.post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.post-content ol li {
    margin-bottom: 0.625rem;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: rgba(79, 143, 255, 0.04);
    border-radius: 0 8px 8px 0;
    color: var(--text-primary);
    font-style: italic;
}

.post-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: rgba(79, 143, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    color: var(--accent);
}

.post-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.callout {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.callout p {
    margin-bottom: 0 !important;
    color: var(--text-primary);
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.form-input {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 143, 255, 0.1);
}

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

.form-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-submit {
    padding: 0.75rem 2rem;
    min-width: 160px;
    align-self: flex-start;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

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

.form-status {
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.form-status--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.form-status--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

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

/* Tablet and below */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

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

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

    .blog-card-inner {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-submit {
        width: 100%;
    }

    .blog-header {
        padding: calc(var(--header-height) + 3rem) 0 2rem;
    }

    .hero {
        padding: calc(var(--header-height) + 3rem) 0 3rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .section {
        padding: 4rem 0;
    }

    .card {
        padding: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }

    .post-content {
        font-size: 1.0625rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content pre {
        font-size: 0.75rem;
        max-width: calc(100vw - 3rem);
    }

    .page-hero {
        padding: calc(var(--header-height) + 2.5rem) 0 2rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .post-content {
        font-size: 1rem;
    }

    .post-content pre {
        max-width: calc(100vw - 2rem);
        padding: 1rem;
    }
}

/* ============================================
   CONTACT PAGE - Enhanced Design
   ============================================ */

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

/* Cyber Grid Background */
.contact-page {
    position: relative;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(to right, rgba(79, 143, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(79, 143, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: gridPan 120s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

@keyframes gridPan {
    from { background-position: 0 0; }
    to { background-position: 60px 60px; }
}

/* Geometric Data Shards */
.data-shard {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

.data-shard--1 {
    width: 60vw;
    height: 80vh;
    top: -20%;
    left: -15%;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
    transform: rotate(-8deg);
    animation: shardDrift 30s ease-in-out infinite alternate;
}

.data-shard--2 {
    width: 45vw;
    height: 60vh;
    bottom: -10%;
    right: -10%;
    background: linear-gradient(-45deg, var(--accent-coral) 0%, transparent 60%);
    clip-path: polygon(0% 0%, 80% 0%, 100% 100%, 20% 100%);
    transform: rotate(12deg);
    animation: shardDrift 25s ease-in-out infinite alternate-reverse;
}

.data-shard--3 {
    width: 30vw;
    height: 40vh;
    top: 30%;
    right: 5%;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 80%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(45deg);
    animation: shardPulse 20s ease-in-out infinite;
}

@keyframes shardDrift {
    0% { transform: rotate(-8deg) translate(0, 0); }
    100% { transform: rotate(-6deg) translate(2%, 3%); }
}

@keyframes shardPulse {
    0%, 100% { opacity: 0.04; transform: rotate(45deg) scale(1); }
    50% { opacity: 0.06; transform: rotate(45deg) scale(1.05); }
}

/* Contact Hero */
.contact-hero {
    position: relative;
    padding: calc(var(--header-height) + 6rem) 0 4rem;
    z-index: 1;
}

.contact-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(79, 143, 255, 0.15);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(79, 143, 255, 0.3));
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Contact Section - Asymmetric Layout */
.contact-section {
    padding: 1rem 0 5rem;
    position: relative;
    z-index: 1;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    max-width: 820px;
    margin: 0 auto;
}

/* Main Email Card - Enhanced with Animated Border */
.contact-email-card {
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Animated Gradient Border */
.card-border-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 25%,
        var(--accent) 35%,
        var(--accent-coral) 50%,
        var(--accent) 65%,
        transparent 75%,
        transparent 100%
    );
    border-radius: 22px;
    z-index: -1;
    animation: borderRotate 8s linear infinite;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.contact-email-card:hover .card-border-glow {
    opacity: 1;
}

@keyframes borderRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Inner background to mask the rotating gradient */
.contact-email-card::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: var(--bg-card);
    border-radius: 19px;
    z-index: 0;
}

.contact-email-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-coral));
}

/* Scanline Effect */
.card-scanline {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(79, 143, 255, 0.2) 45%,
        rgba(255, 107, 74, 0.2) 55%,
        transparent 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.contact-email-card:hover .card-scanline {
    animation: scanline 0.8s ease-out forwards;
    opacity: 1;
}

@keyframes scanline {
    from { left: -150%; }
    to { left: 150%; }
}

.contact-email-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(79, 143, 255, 0.15),
        0 0 100px rgba(79, 143, 255, 0.05);
}

.contact-email-inner {
    padding: 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.contact-email-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 143, 255, 0.15) 0%, rgba(79, 143, 255, 0.05) 100%);
    border: 1px solid rgba(79, 143, 255, 0.2);
    color: var(--accent);
    margin: 0 auto 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-email-card:hover .contact-email-icon {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(79, 143, 255, 0.5);
    background: linear-gradient(135deg, rgba(79, 143, 255, 0.25) 0%, rgba(79, 143, 255, 0.1) 100%);
}

.contact-email-icon svg {
    width: 26px;
    height: 26px;
    transition: filter 0.3s ease;
}

.contact-email-card:hover .contact-email-icon svg {
    filter: drop-shadow(0 0 6px rgba(79, 143, 255, 0.9));
}

.contact-email-inner h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.contact-email-inner p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Satoshi', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(79, 143, 255, 0.12) 0%, rgba(255, 107, 74, 0.08) 100%);
    border: 1px solid rgba(79, 143, 255, 0.25);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.email-text {
    position: relative;
    z-index: 1;
}

.email-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(79, 143, 255, 0.15);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.email-arrow svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.contact-email-link:hover {
    background: linear-gradient(135deg, rgba(79, 143, 255, 0.2) 0%, rgba(255, 107, 74, 0.12) 100%);
    border-color: rgba(79, 143, 255, 0.5);
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(79, 143, 255, 0.2),
        0 0 40px rgba(79, 143, 255, 0.15),
        inset 0 0 20px rgba(79, 143, 255, 0.05);
}

.contact-email-link:hover .email-text {
    text-shadow: 0 0 10px rgba(79, 143, 255, 0.5);
}

.contact-email-link:hover .email-arrow {
    background: var(--accent);
}

.contact-email-link:hover .email-arrow svg {
    color: white;
    transform: translateX(3px);
}

/* Info Cards Stack */
.contact-info-stack {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    height: 100%;
}

.contact-mini-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.contact-mini-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    background: var(--bg-card-hover);
}

.mini-card-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-coral));
    opacity: 0;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.contact-mini-card:hover .mini-card-indicator {
    opacity: 1;
    box-shadow: 0 0 12px rgba(79, 143, 255, 0.6), 0 0 24px rgba(79, 143, 255, 0.3);
}

.contact-mini-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(79, 143, 255, 0.1);
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-mini-card:hover .contact-mini-icon {
    background: rgba(79, 143, 255, 0.2);
    box-shadow: 0 0 20px rgba(79, 143, 255, 0.4);
    transform: scale(1.1);
}

.contact-mini-icon svg {
    width: 18px;
    height: 18px;
    transition: filter 0.3s ease;
}

.contact-mini-card:hover .contact-mini-icon svg {
    filter: drop-shadow(0 0 4px rgba(79, 143, 255, 0.8));
}

.contact-mini-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    color: var(--text-primary);
    transition: text-shadow 0.3s ease;
}

.contact-mini-card:hover .contact-mini-content h3 {
    text-shadow: 0 0 10px rgba(79, 143, 255, 0.4);
}

.contact-mini-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Contact Form on Contact Page */
.contact-form-section {
    padding: 3rem 0 5rem;
    position: relative;
    z-index: 1;
}

/* Contact Page Responsive */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 480px;
    }

    .contact-info-stack {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .contact-mini-card:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: calc(var(--header-height) + 3rem) 0 2rem;
    }

    .contact-hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .contact-email-inner {
        padding: 1.5rem;
    }

    .contact-info-stack {
        grid-template-columns: 1fr;
    }

    .data-shard--1,
    .data-shard--2,
    .data-shard--3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 1.75rem;
    }

    .contact-email-inner {
        padding: 1.25rem;
    }

    .contact-email-icon {
        width: 48px;
        height: 48px;
    }

    .contact-email-icon svg {
        width: 22px;
        height: 22px;
    }

    .contact-email-link {
        font-size: 0.9375rem;
        padding: 0.625rem 1rem;
    }
}
