/* ========================================
   NOW2CODE — Section Layouts
   DARK PREMIUM THEME (Stripe / Linear vibe)
   ======================================== */

/* === Preloader === */
.preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    background: var(--color-bg-primary);
    display: grid;
    place-items: center;
}

.preloader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.preloader__logo-text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
}

.preloader__logo-text span {
    background: var(--gradient-accent-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preloader__progress {
    width: 200px;
    height: 2px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.preloader__bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: width 0.1s linear;
}

.preloader__counter {
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-text-tertiary);
    font-variant-numeric: tabular-nums;
}


/* === Navbar (Light Glass) === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    height: 72px;
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all var(--duration-normal) var(--ease-out);
}

.navbar--scrolled {
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.06);
}

.navbar__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.navbar__logo {
    flex-shrink: 0;
}

.navbar__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.navbar__link {
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
    padding: var(--space-2) 0;
    transition: color var(--duration-fast) var(--ease-out);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out);
}

.navbar__link:hover,
.navbar__link--active {
    color: var(--color-text-primary);
}

.navbar__link:hover::after,
.navbar__link--active::after {
    transform: scaleX(1);
}

.navbar__cta {
    flex-shrink: 0;
}

/* Hamburger */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: calc(var(--z-overlay) + 1);
}

.navbar__hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    transform-origin: center;
}

.navbar__hamburger.is-active .navbar__hamburger-line {
    background: var(--color-text-primary) !important;
}

.navbar__hamburger.is-active .navbar__hamburger-line:first-child {
    transform: translateY(4px) rotate(45deg);
}

.navbar__hamburger.is-active .navbar__hamburger-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
}


/* === Mobile Menu === */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-slow) var(--ease-out);
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__nav {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.mobile-menu__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.mobile-menu__link {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    color: var(--color-text-primary);
    transition: color var(--duration-fast);
    display: inline-block;
    letter-spacing: -0.02em;
}

.mobile-menu__link:hover {
    background: var(--gradient-accent-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu__footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.mobile-menu__footer a {
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
    transition: color var(--duration-fast);
}

.mobile-menu__footer a:hover {
    color: var(--color-accent-light);
}


/* ============================================
   HERO — Mind-Blowing Animation Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: calc(72px + var(--space-16));
    padding-bottom: var(--space-16);
    background: var(--color-bg-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Floating gradient orbs — indigo/cyan for dark theme */
.hero__orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}

.hero__orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
    top: -10%;
    left: -5%;
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
    bottom: -15%;
    right: -5%;
}

.hero__orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
    top: 30%;
    right: 25%;
}

/* Grid dot pattern */
.hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}

/* Hero layout */
.hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-5);
    background: var(--color-accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--color-accent-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: var(--space-6);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    position: relative;
}

.hero__badge-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.4;
    animation: pulse 2s ease-in-out infinite;
}

/* Hero title with scramble effect */
.hero__title {
    font-size: var(--text-display);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: var(--space-6);
    letter-spacing: -0.03em;
    color: var(--color-text-primary);
}

.hero__title-line {
    display: block;
    position: relative;
    overflow: hidden;
}

.hero__title-line--accent {
    background: var(--gradient-accent-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    max-width: 480px;
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

/* Hero metrics (stats in hero) */
.hero__metrics {
    display: flex;
    gap: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.hero__metric {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.hero__metric-number {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hero__metric-suffix {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: 700;
    background: var(--gradient-accent-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__metric-label {
    font-size: var(--text-caption);
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero visual (image + floating badges) */
.hero__visual {
    position: relative;
    perspective: 1000px;
}

.hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    display: block;
}

.hero__image-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.2), transparent 60%);
    z-index: -1;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

/* Floating tech badges — light glass */
.hero__float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.06);
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
    z-index: 5;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    will-change: transform;
}

.hero__float-badge svg {
    color: var(--color-accent-light);
    flex-shrink: 0;
}

.hero__float-badge--1 {
    top: 8%;
    left: -8%;
    animation: floatBadge1 6s ease-in-out infinite;
}

.hero__float-badge--2 {
    bottom: 15%;
    right: -6%;
    animation: floatBadge2 7s ease-in-out infinite;
}

.hero__float-badge--3 {
    top: 55%;
    left: -12%;
    animation: floatBadge3 8s ease-in-out infinite;
}


/* ============================================
   TRUSTED BY (Logo Bar)
   ============================================ */
.trusted {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trusted__label {
    text-align: center;
    font-family: var(--font-body);
    font-size: var(--text-caption);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-8);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.trusted__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-10);
    flex-wrap: wrap;
}

.trusted__logos img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    opacity: 0.3;
    filter: brightness(0) invert(1);
    transition: opacity var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out),
                filter var(--duration-normal) var(--ease-out);
}

.trusted__logos img:hover {
    opacity: 0.8;
    filter: brightness(0) invert(1);
    transform: scale(1.15);
}


/* === About Us (Image + Text) === */
.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

.about__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.about__text {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.about__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.about__list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-body);
    color: var(--color-text-primary);
    font-weight: 500;
}

.about__list li svg {
    flex-shrink: 0;
    color: var(--color-accent-light);
}


/* === Services (Card Grid with Images) === */
.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.08);
    border-color: var(--color-border-hover);
}

.service-card__image {
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__body {
    padding: var(--space-6);
}

.service-card__title {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.service-card__text {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-accent-light);
    transition: gap var(--duration-fast) var(--ease-out);
}

.service-card__link:hover {
    gap: var(--space-3);
}

.service-card__link svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.service-card__link:hover svg {
    transform: translateX(3px);
}


/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.why-us__card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}

.why-us__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

.why-us__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: var(--color-accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
    color: var(--color-accent-light);
    margin-bottom: var(--space-5);
}

.why-us__title {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.why-us__text {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}


/* === Work / Portfolio === */
.work__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

.work-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.08);
    border-color: var(--color-border-hover);
}

.work-card__image {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out);
}

.work-card:hover .work-card__image img {
    transform: scale(1.05);
}

.work-card__body {
    padding: var(--space-6);
}

.work-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.work-card__title {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.work-card__desc {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}


/* === Process Steps === */
.process__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.process-step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}

.process-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-hover);
}

.process-step__icon {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.process-step__number {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    background: var(--gradient-accent-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    line-height: 1;
}

.process-step__icon svg {
    color: var(--color-accent-light);
}

.process-step__title {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.process-step__text {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
}

.process-step__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.process-step__tags span {
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--color-text-tertiary);
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    white-space: nowrap;
}


/* === Testimonials === */
.testimonials__slider {
    padding-bottom: var(--space-12);
}

.testimonials__slider .swiper-pagination {
    bottom: 0;
}

.testimonials__slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--color-text-tertiary);
    opacity: 0.3;
    transition: all var(--duration-fast);
}

.testimonials__slider .swiper-pagination-bullet-active {
    background: var(--color-accent);
    opacity: 1;
    width: 24px;
    border-radius: var(--radius-full);
}


/* === CTA Section === */
.cta-section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

/* Subtle gradient glow behind CTA */
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08), transparent 60%);
    pointer-events: none;
}

.cta-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

.cta-section__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.cta-section__title {
    font-size: var(--text-h1);
    font-weight: 700;
    margin-bottom: var(--space-5);
    max-width: 500px;
    color: var(--color-text-primary);
    line-height: var(--leading-tight);
}

.cta-section__subtitle {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    max-width: 440px;
    line-height: var(--leading-relaxed);
}

.cta-section__contact-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
}

.cta-section__contact-info a {
    transition: color var(--duration-fast);
}

.cta-section__contact-info a:hover {
    color: var(--color-accent-light);
}

.cta-section__divider {
    opacity: 0.3;
}

.cta-section__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.cta-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}


/* === Footer === */
.footer {
    padding: var(--space-20) 0 var(--space-8);
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-16);
}

.footer__logo {
    margin-bottom: var(--space-5);
}

.footer__tagline {
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-6);
    max-width: 280px;
    line-height: var(--leading-relaxed);
}

.footer__social {
    display: flex;
    gap: var(--space-4);
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    color: var(--color-text-tertiary);
    border: 1px solid var(--color-border);
    transition: all var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
    color: var(--color-accent-light);
    border-color: rgba(99, 102, 241, 0.3);
    background: var(--color-accent-glow);
}

.footer__heading {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--space-5);
    color: var(--color-text-primary);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__links a {
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
    transition: all var(--duration-fast) var(--ease-out);
    display: inline-block;
}

.footer__links a:hover {
    color: var(--color-accent-light);
    padding-left: var(--space-2);
}

.footer__contact address {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__contact address p,
.footer__contact address a {
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
}

.footer__contact address a:hover {
    color: var(--color-accent-light);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.footer__bottom p {
    font-size: var(--text-caption);
    color: var(--color-text-tertiary);
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

.footer__legal a {
    font-size: var(--text-caption);
    color: var(--color-text-tertiary);
    transition: color var(--duration-fast);
}

.footer__legal a:hover {
    color: var(--color-accent-light);
}


/* ============================================
   MANIFESTO — Editorial centred statement
   ============================================ */
.manifesto {
    position: relative;
    overflow: hidden;
    padding-top: clamp(5rem, 9vw, 8rem);
    padding-bottom: clamp(5rem, 9vw, 8rem);
}

.manifesto::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    aspect-ratio: 1;
    background: radial-gradient(circle, var(--color-accent-glow-strong), transparent 60%);
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.manifesto__inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.manifesto .section-label {
    margin-bottom: var(--space-8);
}

.manifesto .section-label::before {
    display: none;
}

.manifesto__statement {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.75rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin-bottom: var(--space-10);
}

.manifesto__statement .text-gradient {
    font-weight: 700;
}

.manifesto__attribution {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-caption);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
}


/* ============================================
   CAPABILITIES — Numbered matrix grid
   ============================================ */
.capabilities__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--color-border);
}

.capability {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--space-5);
    align-items: start;
    padding: var(--space-8) var(--space-2);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--duration-normal) var(--ease-out);
}

.capability::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--duration-normal) var(--ease-out);
}

.capability:hover {
    background: rgba(99, 102, 241, 0.025);
}

.capability:hover::before {
    transform: scaleY(1);
}

.capability__num {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: 700;
    background: var(--gradient-accent-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.capability__title {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.capability__text {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 540px;
}


/* ============================================
   PRODUCTS — OfEngine showcase
   ============================================ */
.products__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

.products__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.products__title {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-5);
    color: var(--color-text-primary);
    max-width: 520px;
}

.products__lead {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    max-width: 520px;
}

.products__features {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.products__features li {
    position: relative;
    padding-left: var(--space-6);
    font-size: var(--text-body);
    color: var(--color-text-primary);
    font-weight: 500;
    line-height: var(--leading-normal);
}

.products__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 14px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

/* Product card — browser-window frame holding a real screenshot */
.product-card {
    position: relative;
    background: var(--color-bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
}

/* Soft accent glow behind the frame */
.product-card::before {
    content: '';
    position: absolute;
    top: -8%;
    right: -8%;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(circle, var(--color-accent-glow-strong), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

/* Top chrome bar — faux browser */
.product-card__chrome {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-5);
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.product-card__chrome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
}

.product-card__dots {
    display: inline-flex;
    gap: 6px;
    flex-shrink: 0;
}

.product-card__dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--color-border-hover);
}

.product-card__dots span:nth-child(1) { background: #ff5f56; }
.product-card__dots span:nth-child(2) { background: #ffbd2e; }
.product-card__dots span:nth-child(3) { background: #27c93f; }

.product-card__url {
    flex: 1;
    text-align: center;
    font-family: var(--font-body);
    font-size: var(--text-caption);
    font-weight: 500;
    color: var(--color-text-tertiary);
    letter-spacing: 0.3px;
    padding-right: 50px; /* offset for visual symmetry with dots */
}

/* Media (image) area */
.product-card__media {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-secondary);
    aspect-ratio: 16 / 11;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}

.product-card__status {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    font-size: var(--text-caption);
    font-weight: 700;
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.product-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    animation: pulse 2s ease-in-out infinite;
}

.product-card__chip {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: 5px 12px;
    font-family: var(--font-heading);
    font-size: var(--text-caption);
    font-weight: 700;
    color: #fff;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    letter-spacing: 0.4px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Footer link */
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-accent-light);
    transition: gap var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.product-card__footer:hover {
    gap: var(--space-4);
    background: var(--color-accent-glow);
}


/* ============================================
   RESPONSIVE — new sections (md+)
   ============================================ */
@media (min-width: 768px) {
    .capabilities__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .capability {
        padding: var(--space-10) var(--space-8);
        border-right: 1px solid var(--color-border);
    }

    .capability:nth-child(2n) {
        border-right: 0;
    }

    .capability:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}

@media (min-width: 900px) {
    .products__grid {
        grid-template-columns: 1.05fr 1fr;
        gap: var(--space-16);
    }
}
