/* Aspekta Font */
@font-face {
    font-family: 'Aspekta';
    src: url('fonts/Aspekta-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aspekta';
    src: url('fonts/Aspekta-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aspekta';
    src: url('fonts/Aspekta-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aspekta';
    src: url('fonts/Aspekta-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --primary-color: #4F7C82;
    --secondary-color: #93B1B5;
    --dark-bg: #0B2E33;
    --light-bg: #B8E3E9;
    --text-primary: #f1f5f9;
    --text-secondary: #93B1B5;
    --accent: #4F7C82;
    --orange-accent: #FF7A6B;
    --gradient-1: linear-gradient(135deg, #4F7C82 0%, #0B2E33 100%);
    --gradient-2: linear-gradient(135deg, #4F7C82 0%, #93B1B5 100%);
}

body {
    font-family: 'Aspekta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Particle Network Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
    #particle-canvas {
        display: none;
    }
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(184, 227, 233, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(79, 124, 130, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-brand:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(11, 46, 51, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--dark-bg);
}

.nav-cta {
    background: linear-gradient(135deg, var(--orange-accent) 0%, #ff6b5a 100%);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    color: white !important;
    box-shadow: 0 2px 10px rgba(255, 122, 107, 0.3);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 122, 107, 0.5);
}

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

.hero-gradient {
    display: none;
}

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

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    z-index: 1;
    position: relative;
    white-space: nowrap;
}

.hero-title strong {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typewriter-static {
    display: inline;
}

.typewriter-wrapper {
    display: inline-block;
    position: relative;
    min-width: 1ch;
    padding-left: 0.3em;
}

.typewriter-text {
    display: inline;
    background: linear-gradient(135deg, #B8E3E9 0%, #4F7C82 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(184, 227, 233, 0.5));
}

.typewriter-cursor {
    display: inline;
    animation: blink 0.7s step-end infinite;
    background: linear-gradient(135deg, #B8E3E9 0%, #4F7C82 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    50.01%, 100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.hero-logo {
    margin-top: 0.5rem;
    z-index: 1;
    position: relative;
}

.hero-logo svg {
    opacity: 0.9;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.5s ease, color 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-down-arrow:hover {
    opacity: 1;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styling */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: -2.5rem;
    margin-bottom: 4rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Section Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: linear-gradient(135deg, rgba(30, 35, 50, 0.6) 0%, rgba(20, 25, 40, 0.4) 100%);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(79, 124, 130, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 124, 130, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 124, 130, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 122, 107, 0.4);
    box-shadow: 0 20px 60px rgba(255, 122, 107, 0.2);
}

.card:hover::before,
.card:hover::after {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(79, 124, 130, 0.3));
    transition: all 0.4s ease;
}

.card:hover .card-icon svg {
    stroke: var(--orange-accent);
    filter: drop-shadow(0 0 20px rgba(255, 122, 107, 0.6));
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Clients Carousel Section */
.clients-section {
    padding: 3rem 0 4rem;
    background: var(--dark-bg);
    overflow: hidden;
}

.clients-heading {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.clients-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    animation: scroll-clients 35s linear infinite;
    width: max-content;
}

.clients-track img {
    height: 32px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    /* Convert any color to teal (#4F7C82) - first make grayscale, then colorize */
    filter: brightness(0) saturate(100%) invert(44%) sepia(12%) saturate(820%) hue-rotate(131deg) brightness(94%) contrast(89%);
}

.clients-track img.logo-large {
    height: 45px;
}

.clients-track img:hover {
    opacity: 1;
}

@keyframes scroll-clients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Tech Section */
.tech-section {
    background: var(--light-bg);
}

.tech-section .section-title {
    color: var(--dark-bg);
}

.tech-section .section-subtitle {
    color: rgba(11, 46, 51, 0.8);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.tech-card {
    background: linear-gradient(135deg, rgba(11, 46, 51, 0.9) 0%, rgba(11, 46, 51, 0.7) 100%);
    backdrop-filter: blur(10px);
    padding: 1.2rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(79, 124, 130, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 120px;
    aspect-ratio: 1;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 124, 130, 0.6);
    box-shadow: 0 10px 30px rgba(79, 124, 130, 0.4);
    background: linear-gradient(135deg, rgba(11, 46, 51, 0.95) 0%, rgba(11, 46, 51, 0.8) 100%);
}

.tech-icon {
    width: 64px;
    height: 64px;
}

.tech-icon svg,
.tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

.tech-card:hover .tech-icon svg,
.tech-card:hover .tech-icon img {
    opacity: 1;
}

/* Bigger Redis logo */
.tech-card img[alt="Redis"] {
    width: 120%;
    height: 120%;
    transform: scale(1.2);
}

.tech-card span {
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.7;
    white-space: nowrap;
}

.tech-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(79, 124, 130, 0.1);
    text-align: center;
}

.tech-footer-text {
    font-size: 1.9rem;
    font-weight: 300;
    color: rgba(11, 46, 51, 0.7);
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
}

.tech-footer-text::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -1.5rem;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

/* Approach Timeline */
.approach-section {
    position: relative;
}

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

.approach-iphone {
    position: sticky;
    top: 100px;
}

.approach-timeline {
    position: relative;
}

/* Building Animation Styles */
.building-animation {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.building-animation::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(79, 124, 130, 0.15) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 20px rgba(79, 124, 130, 0.3);
    opacity: 0;
}

.building-animation.animate::before {
    animation: scanLine 2.5s ease-in-out 0.2s 1 forwards;
}

@keyframes scanLine {
    0% {
        top: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.building-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(79, 124, 130, 0.03) 19px,
            rgba(79, 124, 130, 0.03) 20px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            rgba(79, 124, 130, 0.03) 19px,
            rgba(79, 124, 130, 0.03) 20px
        );
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.building-animation.animate::after {
    animation: gridFade 2.5s ease-in-out forwards;
}

@keyframes gridFade {
    0%, 10% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.building-layer {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.building-animation.animate .building-layer {
    animation: buildIn 1s ease forwards;
}

.building-animation.animate .building-layer[data-layer="1"] {
    animation-delay: 0.3s;
}

.building-animation.animate .building-layer[data-layer="2"] {
    animation-delay: 0.9s;
}

.building-animation.animate .building-layer[data-layer="3"] {
    animation-delay: 1.5s;
}

.building-animation.animate .building-layer[data-layer="4"] {
    animation-delay: 2.1s;
}

@keyframes buildIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* UI Element Styles */
.ui-header {
    height: 50px;
    background: linear-gradient(135deg, rgba(79, 124, 130, 0.3) 0%, rgba(147, 177, 181, 0.3) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transform-origin: left center;
    width: 0%;
    opacity: 0;
}

.building-animation.animate .ui-header {
    animation: expandWidth 0.6s ease forwards;
}

@keyframes expandWidth {
    0% {
        width: 0%;
        opacity: 0;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

.ui-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%) scale(0);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0;
}

.building-animation.animate .ui-header::before {
    animation: popIn 0.4s ease 0.3s forwards;
}

@keyframes popIn {
    0% {
        transform: translateY(-50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

.ui-header::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%) scaleX(0);
    transform-origin: right center;
    width: 60px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    opacity: 0;
}

.building-animation.animate .ui-header::after {
    animation: expandBar 0.5s ease 0.4s forwards;
}

@keyframes expandBar {
    0% {
        transform: translateY(-50%) scaleX(0);
        opacity: 0;
    }
    100% {
        transform: translateY(-50%) scaleX(1);
        opacity: 1;
    }
}

.ui-card {
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
}

.building-animation.animate .ui-card {
    animation: slideInFromLeft 0.6s ease forwards;
}

@keyframes slideInFromLeft {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
        transform: translateX(-10px);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translateX(0);
    }
}

.building-animation.animate .ui-card:first-child {
    animation-delay: 0.2s;
}

.ui-card:last-child {
    margin-bottom: 0;
}

.building-animation.animate .ui-card:last-child {
    animation-delay: 0.4s;
}

.ui-card::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(79, 124, 130, 0.3);
    border-radius: 8px;
    transform: rotate(-90deg) scale(0);
    opacity: 0;
}

.building-animation.animate .ui-card::before {
    animation: spinIn 0.5s ease forwards;
    animation-delay: inherit;
}

@keyframes spinIn {
    0% {
        transform: rotate(-90deg) scale(0);
        opacity: 0;
    }
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

.ui-card::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 70px;
    right: 15px;
    height: 30px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.15) 35%,
        transparent 35%,
        transparent 65%,
        rgba(255, 255, 255, 0.1) 65%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
}

.building-animation.animate .ui-card::after {
    animation: drawText 0.5s ease forwards;
    animation-delay: calc(inherit + 0.3s);
}

@keyframes drawText {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.ui-button {
    height: 45px;
    background: linear-gradient(135deg, rgba(79, 124, 130, 0.4) 0%, rgba(11, 46, 51, 0.4) 100%);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(79, 124, 130, 0.2);
    transform: scale(0);
}

.building-animation.animate .ui-button {
    animation: buttonPulse 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes buttonPulse {
    0% {
        transform: scale(0);
        box-shadow: 0 0 0 0 rgba(79, 124, 130, 0.5);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(79, 124, 130, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(79, 124, 130, 0.2);
    }
}

.ui-footer {
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
    transform: translateY(20px);
    opacity: 0;
}

.building-animation.animate .ui-footer {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.ui-footer::before,
.ui-footer::after {
    content: '';
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transform: scale(0);
}

.building-animation.animate .ui-footer::before {
    animation: iconPop 0.4s ease 0.3s forwards;
}

.building-animation.animate .ui-footer::after {
    animation: iconPop 0.4s ease 0.5s forwards;
}

@keyframes iconPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    60% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.timeline-line {
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: rgba(79, 124, 130, 0.2);
    overflow: hidden;
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--gradient-2);
    box-shadow: 0 0 20px var(--primary-color);
    transition: height 1s ease;
}

.timeline-line.active::after {
    height: 100%;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    opacity: 0.3;
    transform: translateX(-20px);
    transition: all 0.6s ease;
    position: relative;
}

.timeline-step.active {
    opacity: 1;
    transform: translateX(0);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.timeline-step.active .step-number {
    box-shadow: 0 0 30px var(--primary-color);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
}

/* Pricing Section */
.pricing-section {
    background: var(--light-bg);
}

.pricing-section .section-title,
.pricing-section .section-subtitle {
    color: var(--dark-bg);
}

.pricing-section .section-subtitle {
    opacity: 0.9;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

.iphone-frame {
    background: #1f1f1f;
    border-radius: 2.75rem;
    padding: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 0.3s ease;
    width: 280px;
    height: 580px;
    /* iPhone aspect ratio approximately 19.5:9 (2.07:1) */
}

.iphone-frame:hover {
    transform: translateY(-10px);
}

.iphone-notch {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 22px;
    background: #1f1f1f;
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

.iphone-screen {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    border-radius: 2.25rem;
    padding: 2.2rem 1.2rem 1.2rem;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar for iPhone screen */
.iphone-screen::-webkit-scrollbar {
    width: 3px;
}

.iphone-screen::-webkit-scrollbar-track {
    background: transparent;
}

.iphone-screen::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.pricing-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pricing-icon {
    width: 100px;
    height: 100px;
    margin: 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 124, 130, 0.15) 0%, rgba(147, 177, 181, 0.1) 100%);
    border-radius: 50%;
    border: 2px solid rgba(79, 124, 130, 0.3);
    position: relative;
    overflow: hidden;
}

.pricing-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(79, 124, 130, 0.2) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

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

.pricing-icon svg {
    width: 70px;
    height: 70px;
    stroke: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(79, 124, 130, 0.4));
    position: relative;
    z-index: 1;
}

.message-notification {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    backdrop-filter: blur(40px) saturate(200%) brightness(110%);
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(110%);
    border-radius: 1.4rem;
    padding: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.2),
                inset 0 -1px 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1.5px solid rgba(255, 255, 255, 0.25);
    animation: slideIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.message-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3rem;
    font-size: 0.92rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.message-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.iphone-cta-btn {
    display: block;
    margin-top: auto;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--orange-accent) 0%, #ff6b5a 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 122, 107, 0.3);
}

.iphone-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 107, 0.5);
}

/* Contact Form */
.contact-section {
    background: var(--dark-bg);
}

.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.show-form-btn {
    display: block;
    margin: 0 auto 2rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--orange-accent) 0%, #ff6b5a 100%);
    color: white;
    border: none;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 122, 107, 0.3);
}

.show-form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(255, 122, 107, 0.5);
}

.show-form-btn.hidden {
    display: none;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.6s ease, margin-top 0.6s ease;
}

.contact-form.visible {
    max-height: 1000px;
    opacity: 1;
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--light-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 124, 130, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(11, 46, 51, 0.6);
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-2);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 124, 130, 0.4);
}

.success-message {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(79, 124, 130, 0.1) 0%, rgba(11, 46, 51, 0.05) 100%);
    border: 2px solid rgba(79, 124, 130, 0.3);
    border-radius: 1rem;
    text-align: center;
    display: none;
}

.success-message.visible {
    display: block;
    animation: slideIn 0.5s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #B8E3E9 0%, #4F7C82 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
    font-weight: bold;
}

.success-message h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--light-bg);
    padding: 2rem 0;
    text-align: center;
    color: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-logo {
    height: 24px;
    width: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

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

    .clients-section {
        padding: 2rem 0 3rem;
    }

    .clients-heading {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .clients-track {
        gap: 2rem;
    }

    .clients-track img {
        height: 24px;
    }

    .clients-track img.logo-large {
        height: 32px;
    }

    .tech-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
        padding: 0;
    }

    .tech-card {
        padding: 0.4rem;
        border-radius: 0.4rem;
        min-width: 0;
        width: auto;
        aspect-ratio: 1;
    }

    .tech-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 0.2rem;
    }

    .tech-card span {
        font-size: 0.5rem;
    }

    .tech-footer {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .tech-footer-text {
        font-size: 1.1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-top: -2rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

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

    .iphone-frame {
        width: 260px;
        height: 540px;
    }

    .approach-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .approach-iphone {
        position: relative;
        top: 0;
        max-width: 320px;
        margin: 0 auto;
    }

    .timeline-line {
        right: auto;
        left: 30px;
    }

    .timeline-step {
        padding-left: 5rem;
    }

    .step-number {
        position: absolute;
        left: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .tech-grid {
        gap: 0.3rem;
    }

    .tech-card {
        padding: 0.3rem;
        border-radius: 0.3rem;
    }

    .tech-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 0.15rem;
    }

    .tech-card span {
        font-size: 0.45rem;
    }

    .iphone-frame {
        width: 240px;
        height: 498px;
    }

    .pricing-grid {
        gap: 1.5rem;
    }
}

/* ============================================
   SCROLL PROGRESS SPINNER
   ============================================ */

.scroll-spinner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.scroll-spinner.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-spinner:hover {
    transform: scale(1.1);
}

.spinner-logo {
    width: 40px;
    height: 40px;
    transition: transform 0.15s ease-out;
}

.spinner-percent {
    font-family: 'Aspekta', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* Hero logo fade animation */
.hero-logo {
    transition: opacity 0.4s ease;
}

.hero-logo.faded {
    opacity: 0;
}