:root {
    --primary: #ce5e4f;
    --primary-dark: #b04b3d;
    --primary-light: rgba(206, 94, 79, 0.15);
    --dark: #121212;
    --dark-medium: #1e1e1e;
    --dark-light: #282828;
    --light: #ffffff;
    --gray: #c2c1c1;
    --accent: #3d7eff;
    --grid-gap: clamp(1.5rem, 3vw, 3rem);

    --node-primary: rgba(206, 94, 79, 0.8);
    --node-secondary: rgba(61, 126, 255, 0.7);
    --connection-line: rgba(255, 255, 255, 0.1);
    --connection-active: rgba(206, 94, 79, 0.6);
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 6rem;
    overflow: hidden;
    z-index: 1;
    background-color: transparent;
}

.hero-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    z-index: 5;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}

@media (min-width: 992px) {
    .hero-split {
        grid-template-columns: 1.4fr 1fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    color: var(--light);
    background: radial-gradient(
            rgba(255, 255, 255, 0.07) -9rem,
            transparent 360px
    );
    width: 110%;
    margin: -1.5rem 2rem;
    height: 50%;
    align-content: center;
}

.hero-title span {
    display: block;
    color: var(--primary);
}

.hero-subtitle {
    font-size: clamp(1rem, 5vw, 1.3rem);
    width: 80%;
    font-weight: 300;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: white;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(206, 94, 79, 0.3);
    width: fit-content;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(206, 94, 79, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

.nodes-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.device-visual {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    perspective: 1000px;
}

.device-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.device-phone {
    position: relative;
    width: 280px;
    height: 580px;
    background: #0f0f0f;
    border-radius: 42px;
    border: 10px solid #2a2a2a;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 9999;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.device-phone:hover {
    transform: rotateY(-2deg) rotateX(2deg);
}

.device-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
    z-index: 9999;
}

.device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background: #0f0f0f;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 10000;
}

.device-notch-circle {
    width: 15px;
    height: 15px;
    background: #0906098f;
    border-radius: 100%;
    float: right;
    right: 15px;
    position: absolute;
    align-self: anchor-center;
    bottom: 3px;
}

.device-notch-circle-second {
    width: 5px;
    height: 5px;
    background: #100d36b8;
    border-radius: 100%;
    float: right;
    right: 20px;
    position: absolute;
    align-self: anchor-center;
    bottom: 3px;
}

.bluetooth-pulse {
    width: 180px;
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bluetooth-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #3d7effeb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(61, 126, 255, 0.4);
}

.pulse-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pulse-rings div {
    position: absolute;
    border-radius: 50%;
    border: 1px solid #3d7eff;
    animation: pulse 3s linear infinite;
    opacity: 0;
}

.pulse-rings div:nth-child(1) {
    width: 180px;
    height: 180px;
    animation-delay: 0.2s;
}

.pulse-rings div:nth-child(2) {
    width: 180px;
    height: 180px;
    animation-delay: 0.8s;
}

.pulse-rings div:nth-child(3) {
    width: 180px;
    height: 180px;
    animation-delay: 1.7s;
}

.pulse-rings div:nth-child(4) {
    width: 180px;
    height: 180px;
    animation-delay: 2.2s;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.device-app-ui {
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.device-app-title {
    font-weight: 500;
    font-size: 20px;
    color: white;
    margin-bottom: 5px;
}

.device-app-subtitle {
    color: #3d7eff;
    font-size: 14px;
    margin-bottom: 20px;
}

.device-connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(61, 126, 255, 0.15);
    font-size: 12px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3d7eff;
    box-shadow: 0 0 6px rgba(61, 126, 255, 0.6);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.device-nav-dots {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.nav-dot.active {
    background: #3d7eff;
    width: 16px;
    border-radius: 3px;
}

.connected-devices {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
}

.iot-device {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222222;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    color: white;
    z-index: 1;
    transform-style: preserve-3d;
    transition: transform 0.3s ease,
    box-shadow 0.3s ease;
}

.iot-device svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.iot-device:nth-child(1) {
    top: 150px;
    right: 40px;
    transform: rotate(5deg);
}

.iot-device:nth-child(2) {
    bottom: 130px;
    right: 30px;
    transform: rotate(-8deg);
}

.iot-device:nth-child(3) {
    bottom: 160px;
    left: 40px;
    transform: rotate(3deg);
}

.iot-device:nth-child(4) {
    top: 180px;
    left: 0;
    transform: rotate(-5deg);
}

.connection-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.connection-line svg {
    z-index: 0;
}

.content-section {
    position: relative;
    padding: 1.8rem 2rem 6rem;
    overflow: hidden;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.text-section-content {
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.5;
    font-size: 1.2rem;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: -webkit-fill-available;
    width: -moz-available;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: var(--grid-gap);
    margin-top: 3rem;
}

.service-card {
    background: var(--dark-light);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.3s ease,
    box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(206, 94, 79, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.8rem;
}

.service-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.service-description {
    color: var(--gray);
    line-height: 1.6;
}

.process-section {
    position: relative;
    padding: 4rem 2rem;
    background: var(--dark-medium);
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.process-steps {
    position: relative;
    counter-reset: step;
    margin-top: 4rem;
}

.process-card-border::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.process-card-border {
    position: relative;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .process-steps::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.process-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
    counter-increment: step;
    width: auto;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    z-index: 2;
}

@media (min-width: 768px) {
    .process-steps {
        display: flex;
        gap: 50px;
        align-items: center;
        justify-content: center;
    }

    .process-steps::before {
        left: 2.1%;
    }

    .process-step {
        width: 95%;
        padding-left: 0;
        margin-bottom: 2rem;
    }

    .process-step:nth-child(odd) {
        padding-left: 80px;
    }

    .process-step:nth-child(even) {
        padding-left: 80px;
    }
}

.step-content {
    background: var(--dark-light);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.step-description {
    color: var(--gray);
    line-height: 1.6;
}

.quote-section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.quote-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.quote-card {
    background: var(--dark-light);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.quote-mark {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 6rem;
    line-height: 1;
    color: rgba(206, 94, 79, 0.2);
    font-family: 'Georgia', serif;
    pointer-events: none;
}

.quote-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #e0e0e0;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: white;
}

.author-title {
    color: var(--gray);
    font-size: 0.9rem;
}

.cta-section {
    padding: 4rem 2rem;
    background: linear-gradient(
            135deg,
            var(--primary-dark) 0%,
            var(--primary) 100%
    );
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: white;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button-inverse {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--primary);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease,
    box-shadow 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-button-inverse:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.07;
    pointer-events: none;
    z-index: 1;
}

.contact-section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: white;
    text-align: center;
}

.contact-description {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-align: center;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr 1fr;
    }

    .form-full-width {
        grid-column: span 2;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: white;
    font-weight: 500;
}

.form-input {
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: white;
    transition: border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(206, 94, 79, 0.3);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    justify-self: center;
    background: var(--primary);
    color: white;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 3rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease,
    transform 0.3s ease;
    margin-top: 1rem;
}

.form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.form-error,
.form-success {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.form-error {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
    border: 1px solid rgba(255, 69, 58, 0.3);
}

.form-success {
    background: rgba(48, 209, 88, 0.1);
    color: #30d158;
    border: 1px solid rgba(48, 209, 88, 0.3);
}

.use-cases {
    margin-top: 2.5rem;
    background: #282828;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.use-cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ce5e4f, #ce5e4f2e);
    border-radius: 4px 4px 0 0;
}

.use-cases-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: white;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.use-cases-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-color: var(--primary);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'%3E%3C/path%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'%3E%3C/path%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.use-cases-intro {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.use-cases-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.use-case-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(39, 39, 39, 0.5);
    border-radius: 12px;
    transition: transform 0.3s ease,
    background-color 0.3s ease;
}

.use-case-item:hover {
    background: rgba(206, 94, 79, 0.1);
    transform: translateY(-3px);
}

.use-case-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--primary);
    border-radius: 8px;
    margin-right: 12px;
}

.use-case-content {
    color: var(--gray);
    line-height: 1.5;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 7rem 1.5rem 5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        background: radial-gradient(
                rgba(255, 255, 255, 0.15) 2rem,
                transparent 320px
        );
        height: 70%;
        width: 100%;
        margin-top: 4rem;
        margin-bottom: 2rem;
        padding: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .device-visual {
        height: 500px;
        margin-top: 2rem;
    }

    .iot-device {
        width: 50px;
        height: 50px;
    }

    .service-grid,
    .process-steps {
        gap: 1.5rem;
    }

    .service-card,
    .step-content,
    .quote-card {
        padding: 1.5rem;
    }

    .quote-text {
        font-size: 1.1rem;
    }

    .content-section,
    .process-section,
    .quote-section,
    .contact-section {
        padding: 4rem 1.5rem;
    }

    .use-cases {
        padding: 1.5rem;
    }

    .use-cases-list {
        grid-template-columns: 1fr;
    }
}
