/* ============================================================
   SteadyCircuit — Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg:         #080c14;
    --color-surface:    #0d1320;
    --color-surface-2:  #121929;
    --color-border:     rgba(255, 255, 255, 0.07);
    --color-text:       #e2e8f0;
    --color-muted:      #94a3b8;
    --color-accent:     #3b82f6;
    --color-accent-2:   #60a5fa;
    --color-food:       #22c55e;
    --color-finance:    #3b82f6;
    --font:             'Inter', system-ui, -apple-system, sans-serif;
    --radius:           12px;
    --radius-lg:        20px;
    --shadow:           0 4px 24px rgba(0, 0, 0, 0.4);
    --transition:       0.25s ease;
    --max-width:        1140px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

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

ul { list-style: none; }

/* ---------- Utilities ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #f1f5f9;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 60px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-muted);
    margin-top: 8px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, #818cf8 60%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn--primary:hover {
    background: var(--color-accent-2);
    border-color: var(--color-accent-2);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

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

.btn--ghost {
    background: rgba(255,255,255,0.05);
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.btn--large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ---------- Header / Nav ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all var(--transition);
}

.header--scrolled {
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f1f5f9;
}

.logo-mark {
    color: var(--color-accent);
    font-size: 1.1rem;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted);
    transition: color var(--transition);
}
.nav__links a:hover {
    color: var(--color-text);
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(129, 140, 248, 0.06) 0%, transparent 60%);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 100px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}
.hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #f1f5f9;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero__cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
}
.hero__scroll-indicator span {
    display: block;
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    position: relative;
}
.hero__scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 100px;
    animation: scroll-dot 2s infinite;
}

@keyframes scroll-dot {
    0% { opacity: 1; top: 5px; }
    100% { opacity: 0; top: 18px; }
}

/* ---------- Stats ---------- */
.stats {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 48px 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    border-right: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stat-card:last-child { border-right: none; }
.stat-card.visible { opacity: 1; transform: none; }

.stat-card__number {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-card__label {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-weight: 500;
}

/* ---------- About ---------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__text {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.about__text.visible { opacity: 1; transform: none; }

.about__text p {
    color: var(--color-muted);
    margin-bottom: 16px;
}

.about__values {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about__values li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.value-icon {
    width: 20px;
    height: 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.about__visual {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.about__visual.visible { opacity: 1; transform: none; }

.circuit-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    aspect-ratio: 1;
    max-width: 380px;
    margin: 0 auto;
    overflow: hidden;
}

.circuit-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--color-accent);
    opacity: 0.4;
}

.circuit-node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 12px var(--color-accent);
    animation: node-pulse 3s ease-in-out infinite;
}
.circuit-node:nth-child(2) { animation-delay: 0.5s; }
.circuit-node:nth-child(3) { animation-delay: 1s; }
.circuit-node:nth-child(4) { animation-delay: 1.5s; }
.circuit-node:nth-child(5) {
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    box-shadow: 0 0 24px var(--color-accent);
}

@keyframes node-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--color-accent); }
    50% { opacity: 0.5; box-shadow: 0 0 4px var(--color-accent); }
}

.circuit-label {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: 0.7;
}

/* ---------- Industries ---------- */
.industries {
    background: var(--color-surface);
}

.industries__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.industry-card {
    position: relative;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color var(--transition);
}
.industry-card.visible { opacity: 1; transform: none; }
.industry-card:nth-child(2) { transition-delay: 0.15s; }

.industry-card:hover {
    border-color: rgba(255,255,255,0.14);
}

.industry-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.industry-card__icon svg {
    width: 28px;
    height: 28px;
}

.industry-card--food .industry-card__icon {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--color-food);
}

.industry-card--finance .industry-card__icon {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--color-finance);
}

.industry-card__content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.industry-card__content p {
    color: var(--color-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.industry-card__features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.industry-card__features li {
    font-size: 0.875rem;
    color: var(--color-muted);
    font-weight: 500;
    padding-left: 16px;
    position: relative;
}

.industry-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.industry-card--food .industry-card__features li::before { background: var(--color-food); }
.industry-card--finance .industry-card__features li::before { background: var(--color-finance); }

.industry-card__accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.06;
}

.industry-card--food .industry-card__accent { background: var(--color-food); }
.industry-card--finance .industry-card__accent { background: var(--color-finance); }

/* ---------- Services ---------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color var(--transition), transform var(--transition);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s ease;
}
.service-item.visible { opacity: 1; transform: none; }

.service-item:nth-child(2) { transition-delay: 0.05s; }
.service-item:nth-child(3) { transition-delay: 0.10s; }
.service-item:nth-child(4) { transition-delay: 0.15s; }
.service-item:nth-child(5) { transition-delay: 0.20s; }
.service-item:nth-child(6) { transition-delay: 0.25s; }

.service-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px) !important;
}

.service-item__icon {
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-accent);
}
.service-item__icon svg { width: 20px; height: 20px; }

.service-item h4 {
    font-size: 1rem;
    font-weight: 650;
    color: #e2e8f0;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.service-item p {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.7;
}

/* ---------- Products ---------- */
.product-spotlight {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 680px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #818cf8);
}

.product-card__badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-accent-2);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 14px;
    margin-bottom: 16px;
}

.product-card__name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.product-card__desc {
    color: var(--color-muted);
    line-height: 1.75;
    margin-bottom: 32px;
}

.product-card__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.product-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
}

.product-card__features li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.product-card__pricing {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.pricing-highlight {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-amount {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--color-accent), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-period {
    color: var(--color-muted);
    font-size: 0.9375rem;
}

/* ---------- Contact CTA ---------- */
.contact {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.contact__inner {
    text-align: center;
    max-width: 600px;
}

.contact__inner p {
    color: var(--color-muted);
    margin-bottom: 36px;
    font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    background: var(--color-bg);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__brand p {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer__links {
    display: flex;
    gap: 28px;
}

.footer__links a {
    font-size: 0.875rem;
    color: var(--color-muted);
    font-weight: 500;
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-text); }

.footer__copy p {
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card:nth-child(2) { border-right: none; }
    .about__grid { grid-template-columns: 1fr; gap: 48px; }
    .about__visual { order: -1; }
    .industries__grid { grid-template-columns: 1fr; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .section { padding: 72px 0; }
    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 12, 20, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        padding: 20px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--color-border);
    }
    .nav__links--open { display: flex; }
    .nav__links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 1rem;
    }
    .nav__links li:last-child a { border-bottom: none; }
    .nav__hamburger { display: flex; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .services__grid { grid-template-columns: 1fr; }
    .hero__cta { flex-direction: column; align-items: center; }
    .footer__inner { flex-direction: column; align-items: flex-start; }
    .footer__links { flex-wrap: wrap; gap: 16px; }
    .industry-card { padding: 28px; }
}
