* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

/* Allow layout containers to be full-width without the max-width restriction */
header, nav, footer, main, section,
.header-content, .home-hero, .home-tech-section, .home-final-cta,
.home-showcase, .premium-section, .home-section, .home-metrics,
.template-section, .hero, .cta-section {
    max-width: none;
}

/* Images and media always stay within container */
img, video, iframe, embed, object, svg {
    max-width: 100%;
    height: auto;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #d4a574;
    --accent-color: #34a853;
    --dark-bg: #0f1419;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --text-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #34a853;
    --warning-color: #fbbc04;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--text-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: auto;
    height: 48px;
    max-width: 240px;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

.mobile-cta-item {
    display: none;
}

/* Dropdown sub-menus */
nav li {
    position: relative;
}

nav li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    margin-left: 0.45rem;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
}

nav .sub-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    background: var(--text-white);
    border: 1px solid rgba(26, 115, 232, 0.12);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 20, 25, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 200;
}

/* Invisible bridge so hover survives the gap between link and dropdown */
nav .sub-menu::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
}

nav li:hover > .sub-menu,
nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav .sub-menu a {
    display: block;
    padding: 0.65rem 0.9rem;
    border-radius: 6px;
    white-space: nowrap;
}

nav .sub-menu a:hover {
    background: #f2f7ff;
}

/* Third-level menus fly out to the side */
nav .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

nav .sub-menu .sub-menu::before {
    top: 0;
    left: -0.75rem;
    right: auto;
    width: 0.75rem;
    height: 100%;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(26, 115, 232, 0.18);
    border-radius: 6px;
    background: #f8fbff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-dark);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle {
    flex-direction: column;
    gap: 5px;
}

header.menu-open .menu-toggle::before {
    transform: translateY(7px) rotate(45deg);
}

header.menu-open .menu-toggle span {
    opacity: 0;
}

header.menu-open .menu-toggle::after {
    transform: translateY(-7px) rotate(-45deg);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), #1557b0);
    color: var(--text-white);
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

.cta-button-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #c19455);
    color: var(--text-white);
}

.cta-button-pro {
    background: linear-gradient(135deg, #f5a623, #e8850a);
    color: #fff;
    box-shadow: 0 2px 10px rgba(245, 166, 35, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.02em;
}

.cta-button-pro:hover {
    background: linear-gradient(135deg, #ffb84d, #f09000);
    box-shadow: 0 8px 22px rgba(245, 166, 35, 0.55);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a2332 100%);
    color: var(--text-white);
    padding: 8rem 2rem 5rem;
    margin-top: 4.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.08;
}

.hero::after {
    content: '';
    position: absolute;
    right: -10%;
    top: 20%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(212,165,116,0.18) 0%, transparent 65%);
    filter: blur(20px);
    pointer-events: none;
}

.website-banner {
    background: linear-gradient(180deg, rgba(26, 41, 74, 0.12), rgba(255, 255, 255, 0));
    max-width: 1200px;
    margin: 6rem auto 0;
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
}

.website-banner img {
    display: block;
    width: 100%;
    max-width: 1140px;
    max-height: 680px;
    height: auto;
    margin: 0 auto;
    border-radius: 28px;
    object-fit: contain;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #0f172a;
}

.template-showcase {
    background: linear-gradient(135deg, #111827, #162239);
    color: #f5f7fb;
    padding: 2rem 2rem 1.5rem;
}

.template-showcase .showcase-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.showcase-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.showcase-header h2 {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.showcase-header p {
    color: #cbd5e1;
    max-width: 650px;
    margin-bottom: 0;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.template-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.template-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 165, 116, 0.4);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.template-card img {
    width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
    height: 170px;
    background: rgba(255, 255, 255, 0.04);
}

.template-card span {
    display: block;
    padding: 1rem;
    color: #e2e8f0;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 3rem;
    align-items: center;
}

.hero-copy {
    text-align: left;
    padding-right: 1rem;
}

.hero-copy h1 {
    max-width: 720px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    display: block;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.32);
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    line-height: 1.05;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--secondary-color), #d4a574);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #c5d0dd;
    max-width: 680px;
    margin-left: 0;
    margin-right: 0;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.button-primary {
    background: linear-gradient(135deg, var(--secondary-color), #c19455);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.4);
}

.button-secondary {
    background: transparent;
    color: var(--text-white);
    padding: 1rem 2.5rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.button-secondary:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

.hero-stats {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-items: center;
    text-align: center;
    max-width: 780px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.stat-label {
    color: #b0b8c1;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Section Styles */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26, 115, 232, 0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Free vs Premium Section */
.pricing-section {
    background: var(--light-bg);
}

.comparison-table {
    overflow-x: auto;
    margin-top: 3rem;
}

.comparison-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.pricing-card {
    background: var(--text-white);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    max-width: 320px;
    text-align: center;
}

.pricing-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.pricing-card p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.65;
}

.pricing-card a {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--secondary-color), #c19455);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 165, 116, 0.25);
}

.service-list,
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 960px;
    display: grid;
    gap: 1rem;
}

.service-list li,
.feature-list li {
    background: var(--text-white);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.service-list strong,
.feature-list strong {
    color: var(--primary-color);
}

.feature-list li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
    align-items: flex-start;
}

.feature-list .feature-icon {
    font-size: 1.7rem;
    line-height: 1;
    margin-top: 0.15rem;
}

.feature-list .feature-text {
    margin: 0;
    line-height: 1.7;
}

.external-services {
    padding-top: 2rem;
}

.free-features {
    padding-top: 3rem;
}

section.free-features .section-title {
    margin-bottom: 1rem;
}

section.external-services .section-subtitle,
section.free-features .section-subtitle {
    max-width: 800px;
    margin: 0 auto 1.75rem;
}

.comparison-table, .table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
    background: var(--text-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

th {
    background: linear-gradient(135deg, var(--dark-bg), #1a2332);
    color: var(--text-white);
    padding: 1.5rem;
    text-align: left;
    font-weight: 700;
}

td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

tr:last-child td {
    border-bottom: none;
}

.feature-name {
    font-weight: 600;
    width: 40%;
}

.check-mark {
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.3rem;
}

.cross-mark {
    color: #999;
    font-size: 1.3rem;
}

/* Premium Benefits Section */
.premium-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a2332 100%);
    color: var(--text-white);
    text-align: center;
    padding: 5rem 2rem;
}

.premium-section .section-title {
    color: var(--text-white);
}

.premium-section .section-subtitle {
    color: #b0b8c1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    transition: all 0.3s;
}

.benefit-card:hover {
    background: rgba(212, 165, 116, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-8px);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin: 1rem 0;
    color: var(--secondary-color);
}

.benefit-card p {
    color: #b0b8c1;
    line-height: 1.7;
}

/* Use Cases Section */
.use-cases {
    background: var(--light-bg);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.use-case-card {
    background: var(--text-white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.use-case-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.use-case-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.use-case-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1557b0 100%);
    color: var(--text-white);
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links ul,
.footer-links li {
    display: contents;
    list-style: none;
}

.footer-links a {
    color: #b0b8c1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    header {
        padding: 0.75rem 0;
    }

    .header-content {
        position: relative;
        padding: 0 1.25rem;
        gap: 1rem;
    }

    .logo {
        max-width: calc(100% - 60px);
    }

    .logo img {
        height: 42px;
        max-width: min(220px, 100%);
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1.25rem;
        right: 1.25rem;
        background: var(--text-white);
        border: 1px solid rgba(26, 115, 232, 0.12);
        border-radius: 8px;
        box-shadow: 0 18px 45px rgba(15, 20, 25, 0.16);
        padding: 0.75rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    header.menu-open nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav a {
        display: block;
        padding: 0.85rem 0.9rem;
        border-radius: 6px;
    }

    nav a:hover {
        background: #f2f7ff;
    }

    nav .sub-menu,
    nav .sub-menu .sub-menu {
        position: static;
        min-width: 0;
        padding: 0 0 0 0.9rem;
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    nav .sub-menu::before {
        display: none;
    }

    nav .sub-menu a {
        white-space: normal;
    }

    .header-content > .cta-button {
        display: none;
    }

    .mobile-cta-item {
        display: block;
    }

    nav .mobile-cta {
        display: block;
        margin-top: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }

    .header-content {
        padding: 0 1rem;
    }

    .logo img {
        height: 38px;
        max-width: min(190px, 100%);
    }

    nav {
        left: 1rem;
        right: 1rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
        margin-top: 5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
        margin: 0 auto 1.8rem;
    }

    .hero-content {
        display: block;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-copy,
    .showcase-header {
        text-align: center;
        align-items: center;
    }

    .hero-copy {
        padding-right: 0;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-image img {
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .website-banner {
        padding: 1.5rem 1rem 1rem;
        margin: 5rem auto 0;
    }

    .website-banner img {
        max-height: 520px;
    }

    .showcase-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    section {
        padding: 3rem 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .template-showcase {
        padding: 1.5rem 1.25rem 1.5rem;
    }

    .features-grid,
    .benefits-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        margin-top: 2rem;
    }

    table {
        font-size: 0.95rem;
    }

    th,
    td {
        padding: 1rem;
    }

    .feature-name {
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-section {
        padding: 3rem 1.5rem;
    }
}

/* DigiPlugs Company Homepage */
.home-page {
    background: #f6f8fb;
}

.home-page header {
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.94);
}

.home-hero {
    background:
        linear-gradient(135deg, rgba(15, 20, 25, 0.96), rgba(19, 35, 58, 0.98)),
        linear-gradient(90deg, rgba(26, 115, 232, 0.18), rgba(212, 165, 116, 0.16));
    color: var(--text-white);
    
    padding: 7rem 2rem 5rem;
    overflow: hidden;
    position: relative;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.45;
}

.home-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-width: 0;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.home-eyebrow {
    color: var(--secondary-color);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}

.home-hero h1 {
    font-size: clamp(3rem, 6vw, 5.9rem);
    line-height: 0.95;
    margin-bottom: 1.5rem;
    max-width: 850px;
}

.home-hero-text {
    color: #d5deea;
    font-size: 1.16rem;
    max-width: 680px;
    margin-bottom: 2rem;
}

.home-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.home-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-trust-row span {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #e7edf6;
    font-size: 0.92rem;
    padding: 0.6rem 0.9rem;
}

.home-hero-visual {
    display: flex;
    justify-content: center;
}

.home-browser-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);
    max-width: 520px;
    overflow: hidden;
    width: 100%;
}

.home-browser-top {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    gap: 0.45rem;
    padding: 1rem;
}

.home-browser-top span {
    background: var(--secondary-color);
    border-radius: 50%;
    display: block;
    height: 10px;
    width: 10px;
}

.home-preview-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
}

.home-preview-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    min-height: 150px;
    padding: 1.25rem;
}

.home-preview-panel-large {
    background:
        linear-gradient(135deg, rgba(26, 115, 232, 0.32), rgba(212, 165, 116, 0.24)),
        rgba(255, 255, 255, 0.12);
    grid-column: 1 / -1;
    min-height: 230px;
}

.home-preview-panel strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.home-preview-panel p {
    color: #d6deea;
    font-size: 0.95rem;
}

.home-metrics {
    background: var(--text-white);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: 1200px;
    transform: translateY(-2rem);
    box-shadow: 0 20px 50px rgba(15, 20, 25, 0.1);
}

.home-metric {
    padding: 2rem;
    text-align: center;
}

.home-metric strong {
    color: var(--primary-color);
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.55rem;
}

.home-metric span {
    color: var(--text-light);
}

.home-section,
.home-tech-section,
.home-engineers,
.home-showcase,
.home-final-cta {
    padding: 5rem 2rem;
}

.home-section-heading {
    margin: 0 auto 2.5rem;
    max-width: 760px;
    text-align: center;
}

.home-section-heading h2,
.home-engineer-copy h2,
.home-showcase-copy h2,
.home-final-cta h2 {
    color: var(--text-dark);
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.home-section-heading p,
.home-engineer-copy p,
.home-showcase-copy p,
.home-final-cta p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.home-service-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: 1200px;
}

.home-service-card {
    background: var(--text-white);
    border: 1px solid rgba(26, 115, 232, 0.1);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 20, 25, 0.08);
    padding: 1.6rem;
}

.home-service-card span {
    color: var(--secondary-color);
    display: block;
    font-weight: 800;
    margin-bottom: 1.4rem;
}

.home-service-card h3 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 0.85rem;
}

.home-service-card p {
    color: var(--text-light);
}

.home-tech-section {
    background: #0f1419;
    color: var(--text-white);
}

.home-tech-section .home-section-heading h2 {
    color: var(--text-white);
}

.home-tech-section .home-section-heading p {
    color: #cbd5e1;
}

.home-tech-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto;
    max-width: 1000px;
}

.home-tech-grid div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f5f7fb;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1.4rem;
    text-align: center;
}

.home-engineers {
    align-items: center;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    min-width: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.home-check-list {
    display: grid;
    gap: 0.9rem;
    list-style: none;
    margin-top: 1.5rem;
}

.home-check-list li {
    background: var(--text-white);
    border-left: 4px solid var(--secondary-color);
    border-radius: 6px;
    box-shadow: 0 12px 35px rgba(15, 20, 25, 0.07);
    color: var(--text-dark);
    padding: 1rem 1.1rem;
}

.home-engineer-card {
    background: #111827;
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(15, 20, 25, 0.22);
    padding: 1.25rem;
}

.home-code-window {
    background: #050816;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #dbeafe;
    display: grid;
    font-family: Consolas, Monaco, monospace;
    gap: 1rem;
    line-height: 1.6;
    padding: 1.5rem;
}

.home-code-window div:nth-child(2) {
    color: #f4c27a;
}

.home-code-window div:nth-child(3) {
    color: #86efac;
}

.home-process-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: 1100px;
}

.home-process-grid div {
    background: var(--text-white);
    border-radius: 8px;
    padding: 1.6rem;
    position: relative;
}

.home-process-grid span {
    color: var(--primary-color);
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.home-process-grid p {
    color: var(--text-light);
}

.home-showcase {
    align-items: center;
    background: linear-gradient(135deg, #eaf2ff, #fff8ef);
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    min-width: 0;
}

.home-showcase-copy {
    justify-self: end;
    max-width: 480px;
}

.home-showcase img {
    border-radius: 8px;
    box-shadow: 0 25px 70px rgba(15, 20, 25, 0.18);
    display: block;
    max-width: 760px;
    width: 100%;
}

.home-final-cta {
    background: #0f1419;
    color: var(--text-white);
    text-align: center;
}

.home-final-cta h2 {
    color: var(--text-white);
}

.home-final-cta p {
    color: #cbd5e1;
    margin: 0 auto 2rem;
    max-width: 680px;
}

@media (max-width: 1024px) {
    .home-hero-inner,
    .home-engineers,
    .home-showcase {
        grid-template-columns: 1fr;
    }

    .home-hero-copy,
    .home-showcase-copy {
        justify-self: center;
        text-align: center;
    }

    .home-actions,
    .home-trust-row {
        justify-content: center;
    }

    .home-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 5.5rem 1.25rem 4rem;
    }

    .home-hero h1 {
        font-size: 2.7rem;
    }

    .home-actions .button-primary,
    .home-actions .button-secondary,
    .home-final-cta .button-primary {
        width: 100%;
    }

    .home-preview-grid,
    .home-metrics,
    .home-service-grid,
    .home-tech-grid,
    .home-process-grid {
        grid-template-columns: 1fr;
    }

    .home-metrics {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .home-section,
    .home-tech-section,
    .home-engineers,
    .home-showcase,
    .home-final-cta {
        padding: 3.5rem 1.25rem;
    }
}
