/* Global font reset */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div {
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    padding: 0;
}

/* Hero title */
.hero-title {
    font-size: 72px;
    font-weight: 500;
    line-height: 1.2;
    color: #1f2937;
    /* default dark text */
}

/* Section title */
.section-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.3;
    color: #6366f1;
    /* purple */
    text-align: center;
}

/* H3 styling */
h3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #1f2937;
}

/* Capability title */
.capability-title {
    font-size: 24px;
    font-weight: 400;
    color: #1f2937;
}

/* Paragraph styling */
.content p {
    font-size: 18px;
    font-weight: 300;
    color: #4338ca;
    /* dark purple */
    line-height: 1.6;
    margin-bottom: 1em;
}

.content p sup {
    font-size: 12px;
    vertical-align: super;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.font-bold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.font-light {
    font-weight: 300;
}

.content ul {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px !important;
    /* force font size */
    font-weight: 300;
    color: #4338ca;
    /* dark purple text */
    line-height: 1.6;
    list-style: none;
    /* remove default bullets */
    padding-left: 0;
    /* remove default padding */
}

.content ul li {
    position: relative;
    margin-bottom: 0.7em;
    padding-left: 30px;
    /* space for tick */
}

/* Blue tick before each li */
.content ul li::before {
    content: "✓";
    /* tick symbol */
    position: absolute;
    left: 0;
    /* position tick at start */
    color: #3b82f6;
    /* blue tick */
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
    top: 0;
    /* align with text top */
}

/* Variable definitions should be at the root */
:root {
    --primary-gradient: linear-gradient(135deg, #8b5cf6, #a855f7, #c084fc);
    --secondary-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --accent-gradient: linear-gradient(135deg, #6366f1, #4f46e5);
    --light-gradient: linear-gradient(135deg, #ffffff, #f8fafc, #f1f5f9);
    --glass-bg: rgba(139, 92, 246, 0.1);
    --glass-border: rgba(139, 92, 246, 0.2);
    --primary-color: #8b5cf6;
    --secondary-color: #3b82f6;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #f8fafc;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
}

.nav-cta {
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 400px;
}

.text-column {
    flex: 1;
    min-width: 300px;
}

.image-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #1f2937;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.7;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1f2937;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.section-badge i {
    color: #fbbf24;
}

.features-section-1 {
    background: #ffffff;
}

.features-section-2 {
    background: #f9fafb;
}

.image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===== CAPABILITIES SECTIONS ===== */
.capabilities-section {
    padding: 4rem 2rem;
    background: #f9fafb;
}

.capabilities-header {
    text-align: center;
    margin-bottom: 3rem;
}

.capabilities-header .badge {
    text-transform: uppercase;
    color: #6366f1;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.capabilities-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.capabilities-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.capabilities-grid.three-col {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.capabilities-grid.four-col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.capability-card {
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.capability-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.capability-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.capability-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.capability-impact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== WHY SMARTOPS SECTION ===== */
.why-smartops {
    padding: 4rem 2rem;
    background: white;
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.why-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #1f2937;
}

.why-text p {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 1rem;
    line-height: 1.5;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: 4rem 2rem;
    background: #f9fafb;
}

.how-it-works .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.how-it-works .section-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.how-it-works h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-description {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.process-flow {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    gap: 2.5rem;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 180px;
    /* Optional, for better look */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(99, 102, 241, 0.07);
    padding: 2.5rem 1rem 1rem 1rem;
    /* Top padding for the number */
    margin-top: 2rem;
    /* Space for numbers to "float" above */
}

.step-number {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.7rem;
    margin-top: -2.5rem;
    /* Lift the number above the card */
    display: block;
    text-align: center;
    z-index: 1;
}

.step-content {
    text-align: center;
}

.process-connector {
    flex: 0 0 40px;
    border-top: 2px dashed #d1d5db;
    margin-top: 7rem;
    margin-bottom: 3rem;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
}

.process-connector {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    position: relative;
}

.result-text {
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

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

.btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #ec4899;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 2px solid #6366f1;
    color: #6366f1;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-secondary:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

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

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

@media (max-width: 1200px) {
    .process-flow {
        flex-direction: column;
        gap: 3rem;
    }

    .process-connector {
        width: 4px;
        height: 60px;
        transform: rotate(90deg);
    }

    .capabilities-grid.four-col {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .features-section-2 .section-content {
        flex-direction: column-reverse;
    }

    .section-title {
        font-size: 2rem;
    }

    .why-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* ===== START: NEW HERO SECTION CSS ===== */
.hero-v3 {
    background-color: #f8fafc;
    position: relative;
    padding: 100px 0;
    margin-top: 72px;
    overflow: hidden;
}

.hero-v3-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(238, 242, 255, 1), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(224, 231, 255, 1), transparent 50%);
    animation: rotate-bg 30s linear infinite;
    z-index: 1;
}

@keyframes rotate-bg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-v3-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 450px;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-v3-content {
    text-align: left;
}

.hero-v3-badge {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid #c7d2fe;
}

.hero-v3-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #1e293b;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-v3-title span {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-v3-subtitle {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-v3-cta-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-v3-btn-primary,
.hero-v3-btn-secondary {
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-v3-btn-primary {
    background: #4f46e5;
    color: white;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.25);
}

.hero-v3-btn-primary:hover {
    background: #4338ca;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35);
}

.hero-v3-btn-secondary {
    background: transparent;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.hero-v3-btn-secondary:hover {
    background: #eef2ff;
    border-color: #a5b4fc;
}

/* Interactive Visual Hub */
.hero-v3-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-hub {
    position: relative;
    width: 400px;
    height: 400px;
}

.central-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: linear-gradient(145deg, #4f46e5, #6366f1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
    z-index: 10;
    transition: all 0.4s ease;
    animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
    }

    50% {
        box-shadow: 0 20px 50px rgba(79, 70, 229, 0.4);
    }
}

.central-node i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.central-node span {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    transition: all 0.3s ease;
}

/* --- MODIFICATION START: REVISED NODE POSITIONING --- */
.feature-node {
    position: absolute;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    /* This transform centers the node on its calculated top/left coordinates */
    transform: translate(-50%, -50%);
}

.feature-node:hover {
    /* The transform must include the original centering translate */
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.2);
    background: white;
    border-color: #a5b4fc;
}

.feature-node i {
    font-size: 1.5rem;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.feature-node span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.2;
}

/*
  Perfect Hexagonal Positioning
  Radius from center: 180px.
*/
.node-1 { /* Top */
    top: calc(50% - 180px);
    left: 50%;
}
.node-2 { /* Top-Right */
    top: calc(50% - 90px);
    left: calc(50% + 156px);
}
.node-3 { /* Bottom-Right */
    top: calc(50% + 90px);
    left: calc(50% + 156px);
}
.node-4 { /* Bottom */
    top: calc(50% + 180px);
    left: 50%;
}
.node-5 { /* Bottom-Left */
    top: calc(50% + 90px);
    left: calc(50% - 156px);
}
.node-6 { /* Top-Left */
    top: calc(50% - 90px);
    left: calc(50% - 156px);
}
/* --- MODIFICATION END --- */


/* Responsive */
@media (max-width: 991px) {
    .hero-v3 {
        padding: 60px 0;
    }

    .hero-v3-container {
        grid-template-columns: 1fr;
    }

    .hero-v3-content {
        text-align: center;
    }

    .hero-v3-subtitle {
        margin: 1.5rem auto 2.5rem;
    }

    .hero-v3-cta-group {
        justify-content: center;
    }

    .hero-v3-visual {
        margin-top: 3rem;
    }

    .feature-hub {
        transform: scale(0.9);
    }
}

@media (max-width: 767px) {
    .hero-v3-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .feature-hub {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .feature-hub {
        transform: scale(0.7);
    }

    .hero-v3-visual {
        margin-top: 1rem;
        height: 300px;
    }
}

/* ===== END: NEW HERO SECTION CSS ===== */

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* --- START: MOBILE NAVIGATION FIX --- */
/* This block replaces your old mobile navigation CSS with the working version */
@media (max-width: 991px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        /* Adjust based on navbar height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: white;
        flex-direction: column;
        padding: 2rem 0;
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        align-items: stretch;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 1rem 2rem;
        color: #1e293b;
        font-size: 1.1rem;
        border-radius: 0;
    }

    .nav-link.has-dropdown::after {
        content: '⌄';
        font-size: 0.8rem;
        transition: transform 0.3s ease;

    }

    .nav-item.dropdown-open>.nav-link.has-dropdown::after {
        transform: rotate(180deg);
    }

    .nav-cta {
        width: auto;
        text-align: center;
        margin: 1rem 2rem;
        display: block;
    }

    /* Mobile Dropdown Styles (Accordion Style) */
    .nav-item .dropdown {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        /* Keep opacity at 1 for max-height transition */
        visibility: visible;
        transform: none;
    }
}