@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #020611;
    --panel: rgba(10, 14, 27, 0.92);
    --text: #f4f7ff;
    --muted: #9ea7c4;
    --border: rgba(255, 255, 255, 0.12);
    --primary: #7c5dff;
    --secondary: #22d3ee;
    --success: #34d399;
    --danger: #f87171;
}

* {
    box-sizing: border-box;
}

body,
.app-shell {
    margin: 0;
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    filter: blur(40px);
}

body::before {
    top: -25vw;
    right: -20vw;
    background: radial-gradient(circle, rgba(124, 93, 255, 0.35) 0%, transparent 70%);
}

body::after {
    bottom: -20vw;
    left: -15vw;
    background: radial-gradient(circle, rgba(25, 190, 255, 0.25) 0%, transparent 70%);
}

/* Canvas background for network mesh */
#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.network-bg {
    position: relative;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section {
    padding: 4rem 0;
}

.hero {
    padding-top: 6rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 720px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--text);
    border-color: transparent;
    box-shadow: 0 15px 35px rgba(124, 93, 255, 0.35);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-color: transparent;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
    color: var(--text);
}

.btn:hover {
    transform: translateY(-2px);
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 30px 80px rgba(6, 8, 20, 0.5);
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card,
.industry-card,
.service-detail,
.catalog-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 15px 40px rgba(5, 6, 16, 0.4);
}

.industry-card h2,
.service-detail h2 {
    margin-top: 0;
}

.product-visual {
    display: inline-flex;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pill-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pill-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    color: var(--muted);
}

.card-list {
    padding-left: 1.25rem;
    color: var(--muted);
}

.split {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.home-card-stack {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.home-offer-card {
    background: rgba(8, 10, 22, 0.92);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-offer-media {
    width: 100%;
    max-width: 320px;
    height: 200px;
    margin: 0 auto 1.25rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-offer-media img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
}

.site-chrome {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(2, 6, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 80px;
    padding: 0 1.5rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, var(--secondary), transparent 65%), var(--primary);
    box-shadow: 0 12px 40px rgba(124, 93, 255, 0.4);
    position: relative;
}

.brand-mark::after {
    content: 'ID';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
}

.nav-links ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    transition: color 0.2s ease;
}

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

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-direction: column;
    padding: 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-toggle:hover {
    background: linear-gradient(135deg, rgba(124, 93, 255, 0.15), rgba(124, 93, 255, 0.08));
    border-color: rgba(124, 93, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 93, 255, 0.2);
}

.nav-toggle:active {
    transform: scale(0.95);
}

.nav-panel {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 17, 0.92);
    z-index: 998;
    backdrop-filter: blur(12px) saturate(150%);
    animation: fadeIn 0.3s ease;
}

.nav-panel.open {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.nav-panel__sheet {
    display: none;
    position: absolute;
    inset: 0 0 auto auto;
    width: min(420px, 92%);
    min-height: 100%;
    background: linear-gradient(160deg, rgba(13, 15, 25, 0.98) 0%, rgba(8, 12, 24, 0.96) 100%);
    border-left: 1px solid rgba(124, 93, 255, 0.2);
    padding: 2rem 1.5rem 3rem;
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5), -4px 0 12px rgba(124, 93, 255, 0.15);
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-panel.open .nav-panel__sheet {
    display: block;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.nav-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-panel__header strong {
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-close:hover {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.4);
    transform: rotate(90deg);
}

.panel-close:active {
    transform: rotate(90deg) scale(0.95);
}

.nav-panel__list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.panel-link {
    display: block;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.panel-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-link:hover {
    background: linear-gradient(135deg, rgba(124, 93, 255, 0.15), rgba(124, 93, 255, 0.08));
    border-color: rgba(124, 93, 255, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(124, 93, 255, 0.2);
}

.panel-link:hover::before {
    transform: scaleY(1);
}

.panel-link:active {
    transform: translateX(4px) scale(0.98);
}

.nav-toggle-rail {
    width: 22px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-toggle-line {
    width: 100%;
    height: 2.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(124, 93, 255, 0.9), var(--text));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle-line:first-child {
    width: 100%;
}

.nav-toggle-line:last-child {
    width: 75%;
}

.nav-toggle:hover .nav-toggle-line {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.nav-toggle-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary);
    position: absolute;
    bottom: 6px;
    right: 2px;
    box-shadow: 0 0 8px var(--secondary), 0 0 12px rgba(34, 211, 238, 0.4);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.nav-toggle:hover .nav-toggle-dot {
    animation: none;
    box-shadow: 0 0 12px var(--secondary), 0 0 20px rgba(34, 211, 238, 0.6);
}

.panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.panel-close span {
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.panel-close span:first-child {
    transform: rotate(45deg);
}

.panel-close span:last-child {
    transform: rotate(-45deg);
}

.site-footer {
    padding: 4rem 0 2rem;
}

.site-footer h4 {
    margin-top: 0;
}

.footer-bottom {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1.5rem 1rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
}

.alert {
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.alert-success {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
}

form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-highlights {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-panels {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.contact-form-panel form {
    margin-top: 1rem;
}

.settings {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
}

.settings-card {
    background: rgba(7, 10, 22, 0.92);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
}

.settings-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.settings-table {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.settings-table__head,
.settings-table__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.settings-table__head {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}

.settings-table__row span:last-child a {
    color: var(--secondary);
    text-decoration: none;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .settings-table__head,
    .settings-table__row {
        grid-template-columns: 1fr;
    }

    .settings-hero {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .home-offer-card {
        padding: 1.5rem;
    }
}
.arrow-link {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
}
.text-muted {
    color: var(--muted);
}
