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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0f172a;
    color: #ffffff;
    line-height: 1.6;
}

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

.container {
    width: 88%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
.site-header {
    background: rgba(2, 6, 23, 0.94);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.header-inner {
    height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: #38bdf8;
}

.main-nav a {
    margin-left: 28px;
    font-size: 15px;
    color: #cbd5e1;
}

.main-nav a:hover {
    color: #38bdf8;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
}

.btn-primary {
    background: #38bdf8;
    color: #020617;
}

.btn-primary:hover {
    background: #7dd3fc;
}

.btn-secondary {
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

.btn-secondary:hover {
    background: rgba(56,189,248,0.12);
}

/* Hero */
.hero-modern {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(56,189,248,0.22), transparent 34%),
        radial-gradient(circle at bottom left, rgba(59,130,246,0.16), transparent 34%),
        linear-gradient(135deg, #020617, #0f172a 45%, #1e293b);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 50px;
    background: rgba(56,189,248,0.12);
    border: 1px solid rgba(56,189,248,0.35);
    color: #38bdf8;
    font-size: 14px;
    margin-bottom: 25px;
}

.hero-text h1 {
    font-size: 62px;
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero-text h1 span {
    color: #38bdf8;
}

.hero-text p {
    font-size: 20px;
    color: #cbd5e1;
    max-width: 760px;
    margin-bottom: 35px;
}

.hero-buttons a {
    margin-right: 12px;
}

/* Hero dashboard panel */
.hero-panel {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(56,189,248,0.25);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    overflow: hidden;
}

.panel-top {
    height: 44px;
    background: #020617;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.panel-top span {
    width: 11px;
    height: 11px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.75;
}

.panel-content {
    padding: 32px;
}

.panel-content h3 {
    color: #38bdf8;
    margin-bottom: 25px;
}

.dashboard-line {
    margin-bottom: 18px;
}

.dashboard-line label {
    display: block;
    color: #cbd5e1;
    margin-bottom: 7px;
    font-size: 14px;
}

.dashboard-line div {
    height: 10px;
    background: #334155;
    border-radius: 20px;
    overflow: hidden;
}

.dashboard-line span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    border-radius: 20px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 28px;
}

.mini-grid div {
    background: #020617;
    border: 1px solid rgba(56,189,248,0.25);
    padding: 16px 8px;
    text-align: center;
    border-radius: 12px;
    color: #38bdf8;
    font-weight: 700;
}

/* Tech strip */
.tech-strip {
    background: #020617;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 26px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    text-align: center;
}

.tech-grid span {
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Sections */
.section {
    padding: 85px 0;
}

.section-dark {
    background: #020617;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 40px;
    margin-bottom: 12px;
}

.section-title p {
    color: #94a3b8;
    max-width: 700px;
    margin: auto;
}

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

.card {
    background: #1e293b;
    padding: 30px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(56,189,248,0.35);
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

.card-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.card h3 {
    color: #38bdf8;
    font-size: 22px;
    margin-bottom: 12px;
}

.card p {
    color: #cbd5e1;
    font-size: 15px;
}

.service-card {
    min-height: 270px;
}

.learn-link {
    display: inline-block;
    margin-top: 18px;
    color: #38bdf8;
    font-weight: 700;
}

/* Featured Solutions */
.feature-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
    margin-bottom: 70px;
}

.feature-solution.reverse .feature-visual {
    order: 2;
}

.feature-visual {
    background:
        radial-gradient(circle at top right, rgba(56,189,248,0.18), transparent 35%),
        #0f172a;
    padding: 38px;
    border-radius: 24px;
    border: 1px solid rgba(56,189,248,0.20);
}

.screen-card {
    background: #020617;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 30px;
}

.screen-card h4 {
    color: #38bdf8;
    font-size: 28px;
    margin-bottom: 8px;
}

.screen-card p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.screen-card ul {
    list-style: none;
}

.screen-card li {
    background: #1e293b;
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #cbd5e1;
}

.feature-text h3 {
    color: #38bdf8;
    font-size: 38px;
    margin-bottom: 16px;
}

.feature-text p {
    color: #cbd5e1;
    font-size: 17px;
    margin-bottom: 22px;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.feature-list span {
    background: rgba(56,189,248,0.10);
    border: 1px solid rgba(56,189,248,0.22);
    color: #cbd5e1;
    padding: 9px 12px;
    border-radius: 30px;
    font-size: 14px;
}

/* AI Section */
.ai-section {
    background:
        radial-gradient(circle at center right, rgba(56,189,248,0.16), transparent 35%),
        #0f172a;
}

.ai-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 55px;
    align-items: center;
}

.ai-grid h2 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.ai-grid p {
    color: #cbd5e1;
    font-size: 17px;
}

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

.ai-cards div {
    background: #1e293b;
    padding: 22px;
    border-radius: 14px;
    border: 1px solid rgba(56,189,248,0.18);
    color: #cbd5e1;
    font-weight: 700;
}

/* Industries */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.industry-grid div {
    background: #1e293b;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    color: #cbd5e1;
    font-weight: 700;
}

/* Philosophy */
.philosophy {
    text-align: center;
}

.philosophy h2 {
    font-size: 42px;
    max-width: 900px;
    margin: 0 auto 18px;
}

.philosophy p {
    max-width: 820px;
    margin: auto;
    color: #cbd5e1;
    font-size: 18px;
}

/* CTA */
.cta-section {
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 35%),
        #020617;
}

.cta-box {
    text-align: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(56,189,248,0.25);
    padding: 55px 35px;
    border-radius: 24px;
}

.cta-box h2 {
    font-size: 42px;
    margin-bottom: 14px;
}

.cta-box p {
    color: #cbd5e1;
    margin-bottom: 26px;
    font-size: 18px;
}

/* Contact old box support */
.contact-box {
    max-width: 750px;
    margin: auto;
    background: #1e293b;
    padding: 45px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.contact-box h2 {
    font-size: 34px;
    margin-bottom: 15px;
}

.contact-box p {
    color: #cbd5e1;
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background: #020617;
    padding: 55px 0 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 35px;
    margin-bottom: 35px;
}

.footer-column h3 {
    color: #38bdf8;
    margin-bottom: 14px;
}

.footer-column p,
.footer-column li {
    color: #94a3b8;
    font-size: 14px;
    list-style: none;
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: #38bdf8;
}

.copyright {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Responsive */
@media (max-width: 950px) {
    .header-inner {
        height: auto;
        padding: 18px 0;
        flex-direction: column;
        gap: 15px;
    }

    .main-nav a {
        margin: 0 8px;
    }

    .hero-modern {
        min-height: auto;
        padding: 75px 0;
    }

    .hero-grid,
    .feature-solution,
    .ai-grid {
        grid-template-columns: 1fr;
    }

    .feature-solution.reverse .feature-visual {
        order: 0;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-text p,
    .cta-box p {
        font-size: 17px;
    }

    .grid-3,
    .tech-grid,
    .industry-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2,
    .ai-grid h2,
    .philosophy h2,
    .cta-box h2 {
        font-size: 32px;
    }

    .ai-cards {
        grid-template-columns: 1fr;
    }
}

/* IronCode logo and banner integration */
.logo-img img {
    height: 52px;
    width: auto;
    display: block;
    border-radius: 4px;
}

.hero-modern {
    background:
        linear-gradient(90deg, rgba(2,6,23,0.95), rgba(2,6,23,0.72), rgba(2,6,23,0.35)),
        url('../images/ironcode-hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 950px) {
    .logo-img img {
        height: 44px;
    }
}
