/* ===================================================
   MARUNG TELECOMMS — Design System & Styles
   Mobile-first | Brand: Red + Navy + White
   =================================================== */

/* ---------- Custom Properties ---------- */
:root {
    /* Brand */
    --red: #C41E2A;
    --red-dark: #9A1820;
    --red-light: #E83A45;
    --red-glow: rgba(196, 30, 42, 0.45);

    /* Navy */
    --navy-900: #060D1F;
    --navy-800: #0A1428;
    --navy-700: #0F1D3D;
    --navy-600: #162852;
    --navy-500: #1E3567;

    /* Neutrals */
    --white: #FFFFFF;
    --grey-50: #F7F8FA;
    --grey-100: #EEF0F4;
    --grey-200: #D8DCE5;
    --grey-400: #8A90A2;
    --grey-600: #5A6178;
    --grey-800: #2A3048;

    /* Accent */
    --gold: #D4A843;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-py: clamp(3.5rem, 8vw, 7rem);
    --container-px: clamp(1.25rem, 4vw, 2rem);
    --container-max: 1200px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 0.35s;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--grey-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* ---------- Typography ---------- */
.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.section-tag-light {
    color: var(--red-light);
}

.section-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--navy-700);
}

.section-title-light {
    color: var(--white);
}

.section-desc {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--grey-600);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-desc-light {
    color: var(--grey-400);
}

.text-accent {
    color: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-light));
    color: var(--white);
    box-shadow: 0 4px 20px var(--red-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--red-glow);
    filter: brightness(1.08);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.btn-plan {
    width: 100%;
    border: 2px solid var(--red);
    color: var(--white);
    background: transparent;
    padding: 0.65rem 1rem;
}

.btn-plan:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--red-glow);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: 10px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    border-radius: 10px;
    position: relative;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    opacity: 1;
}

.btn-loader {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    opacity: 0;
    transition: opacity 0.2s;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--dur) var(--ease);
}

.header.scrolled {
    background: rgba(10, 20, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 1001;
}

.logo-icon {
    width: 36px;
    height: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.08em;
}

.logo-sub {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--grey-400);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.nav {
    display: none;
}

.header-cta {
    display: none;
}

/* Nav Toggle (hamburger) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(6, 13, 31, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease);
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease);
}

.mobile-nav.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.open .mobile-nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav.open .mobile-nav-link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-nav.open .mobile-nav-link:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-nav.open .mobile-nav-link:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-nav.open .mobile-nav-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.mobile-nav-cta {
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 110%, rgba(196, 30, 42, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(212, 168, 67, 0.1) 0%, transparent 40%),
        linear-gradient(180deg,
            var(--navy-900) 0%,
            var(--navy-800) 20%,
            hsl(230, 50%, 12%) 35%,
            hsl(280, 30%, 15%) 50%,
            hsl(350, 50%, 18%) 65%,
            hsl(10, 55%, 25%) 78%,
            hsl(25, 65%, 30%) 90%,
            hsl(35, 70%, 35%) 100%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Stars */
.hero-stars {
    position: absolute;
    inset: 0;
}

.hero-stars::before,
.hero-stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: white;
}

.hero-stars::before {
    box-shadow:
        80px 40px 0 0 rgba(255, 255, 255, 0.6),
        200px 80px 0 0 rgba(255, 255, 255, 0.3),
        350px 30px 0 0 rgba(255, 255, 255, 0.5),
        500px 120px 0 0 rgba(255, 255, 255, 0.4),
        650px 50px 0 0 rgba(255, 255, 255, 0.6),
        800px 90px 0 0 rgba(255, 255, 255, 0.3),
        120px 150px 0 0 rgba(255, 255, 255, 0.4),
        420px 180px 0 0 rgba(255, 255, 255, 0.5),
        700px 160px 0 0 rgba(255, 255, 255, 0.3),
        950px 70px 0 0 rgba(255, 255, 255, 0.5),
        1100px 40px 0 0 rgba(255, 255, 255, 0.4),
        1250px 130px 0 0 rgba(255, 255, 255, 0.6),
        300px 200px 0 0 rgba(255, 255, 255, 0.2),
        550px 220px 0 0 rgba(255, 255, 255, 0.35),
        900px 190px 0 0 rgba(255, 255, 255, 0.45);
    animation: twinkle 5s ease-in-out infinite alternate;
}

.hero-stars::after {
    box-shadow:
        150px 60px 0 0 rgba(255, 255, 255, 0.35),
        280px 110px 0 0 rgba(255, 255, 255, 0.5),
        470px 70px 0 0 rgba(255, 255, 255, 0.4),
        620px 140px 0 0 rgba(255, 255, 255, 0.55),
        780px 30px 0 0 rgba(255, 255, 255, 0.3),
        1050px 100px 0 0 rgba(255, 255, 255, 0.5),
        380px 250px 0 0 rgba(255, 255, 255, 0.25),
        730px 230px 0 0 rgba(255, 255, 255, 0.4),
        1180px 80px 0 0 rgba(255, 255, 255, 0.35);
    animation: twinkle 7s ease-in-out 1s infinite alternate;
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}

.hero-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--red);
    top: 20%;
    right: -5%;
    animation: float 18s ease-in-out infinite;
}

.hero-orb-2 {
    width: 200px;
    height: 200px;
    background: var(--navy-500);
    bottom: 10%;
    left: 5%;
    animation: float 22s ease-in-out 3s infinite reverse;
}

.hero-orb-3 {
    width: 150px;
    height: 150px;
    background: var(--gold);
    top: 40%;
    left: 30%;
    animation: float 15s ease-in-out 6s infinite;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.2rem, 7vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--red-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
}

.hero-desc {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-desc strong {
    color: var(--gold);
    font-weight: 700;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.hero-scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--red-light);
    animation: scrollDot 2s ease-in-out infinite;
}

/* ---------- STATS ---------- */
.stats {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    padding: 2.5rem 0;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 900;
    line-height: 1;
}

.stat-suffix {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 800;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-top: 0.25rem;
}

/* ---------- FEATURES ---------- */
.features {
    padding: var(--section-py) 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: var(--grey-50);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all var(--dur) var(--ease);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--grey-100);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-700);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--grey-600);
    line-height: 1.6;
}

/* ---------- HOW IT WORKS ---------- */
.how-it-works {
    padding: var(--section-py) 0;
    background: var(--grey-50);
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.step-card {
    text-align: center;
    max-width: 340px;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--red);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-700);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--grey-600);
}

.step-connector {
    display: none;
}

/* ---------- PRICING ---------- */
.pricing {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    position: relative;
}

.plan-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--dur) var(--ease);
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0;
    transition: opacity var(--dur);
}

.plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.plan-card:hover::before {
    opacity: 1;
}

/* Popular card */
.plan-card-popular {
    border-color: var(--red);
    background: rgba(196, 30, 42, 0.08);
    transform: scale(1.02);
}

.plan-card-popular::before {
    opacity: 1;
    height: 4px;
}

.plan-card-popular:hover {
    transform: scale(1.02) translateY(-6px);
}

.plan-popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 1.25rem;
    border-radius: 0 0 10px 10px;
}

.plan-header {
    margin-bottom: 1rem;
}

.plan-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.plan-speed {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.plan-speed small {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--grey-400);
}

.plan-price {
    margin-bottom: 0.5rem;
}

.plan-currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red-light);
    vertical-align: super;
}

.plan-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
}

.plan-period {
    font-size: 0.9rem;
    color: var(--grey-400);
}

.plan-best-for {
    font-size: 0.8rem;
    color: var(--grey-400);
    margin-bottom: 1.25rem;
    font-style: italic;
}

.plan-features {
    text-align: left;
    margin-bottom: 1.5rem;
}

.plan-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red-light);
    font-weight: 700;
}

.plan-card-popular .btn-plan {
    background: linear-gradient(135deg, var(--red), var(--red-light));
    border-color: transparent;
    box-shadow: 0 4px 20px var(--red-glow);
}

.pricing-note {
    text-align: center;
    color: var(--grey-400);
    font-size: 0.9rem;
    margin-top: 2rem;
    position: relative;
}

.pricing-note strong {
    color: var(--white);
}

/* ---------- SERVICES ---------- */
.services {
    padding: var(--section-py) 0;
    background: var(--grey-50);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--grey-100);
    transition: all var(--dur) var(--ease);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--red-light));
    border-radius: 20px 20px 0 0;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--grey-200);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px var(--red-glow);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy-700);
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--grey-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-features li {
    padding: 0.45rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--grey-600);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 700;
}

.btn-service {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
}

.services-note {
    text-align: center;
    color: var(--grey-600);
    font-size: 0.95rem;
    margin-top: 2.5rem;
}

.services-note strong {
    color: var(--red);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    padding: var(--section-py) 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--grey-50);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all var(--dur) var(--ease);
    border: 1px solid var(--grey-100);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--grey-600);
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.95rem;
    color: var(--navy-700);
    display: block;
}

.testimonial-location {
    font-size: 0.8rem;
    color: var(--grey-400);
}

/* ---------- CONTACT / FORM ---------- */
.contact {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
}

.contact-desc {
    color: var(--grey-400);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: color var(--dur);
}

.contact-detail-item:hover {
    color: var(--red-light);
}

.contact-detail-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Form */
.contact-form {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    padding-top: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--white);
    font-size: 0.95rem;
    transition: all 0.25s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.form-group select {
    cursor: pointer;
    appearance: none;
}

.form-group select option {
    background: var(--navy-700);
    color: var(--white);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.95rem;
    color: var(--grey-400);
    pointer-events: none;
    transition: all 0.25s var(--ease);
}

.form-group select~.select-label {
    top: 0.45rem;
    font-size: 0.72rem;
    color: var(--grey-400);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: 0.45rem;
    font-size: 0.72rem;
    color: var(--red-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--red);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px var(--red-glow);
}

/* Validation */
.form-group.error input,
.form-group.error select {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.form-error {
    display: block;
    font-size: 0.78rem;
    color: #e74c3c;
    margin-top: 0.35rem;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.form-group.error .form-error {
    opacity: 1;
}

.form-status {
    margin-top: 1rem;
    padding: 0;
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s;
    overflow: hidden;
    max-height: 0;
}

.form-status.show {
    padding: 1rem;
    max-height: 100px;
}

.form-status.success {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
}

.form-status.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--navy-900);
    padding-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-footer .logo-icon {
    width: 30px;
}

.footer-tagline {
    color: var(--grey-400);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    font-style: italic;
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
    display: block;
    font-size: 0.9rem;
    color: var(--grey-400);
    padding: 0.3rem 0;
    transition: color var(--dur);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--red-light);
}

.footer-bottom {
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--grey-400);
}

.footer-icasa {
    opacity: 0.6;
}

/* ---------- ANIMATIONS ---------- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes twinkle {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(15px, -25px);
    }

    50% {
        transform: translate(-10px, 15px);
    }

    75% {
        transform: translate(20px, 10px);
    }
}

@keyframes scrollDot {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 22px;
        opacity: 0;
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- MEDIA QUERIES ---------- */
@media (min-width: 480px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        align-items: center;
        gap: 1.75rem;
    }

    .nav-link {
        font-size: 0.9rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.75);
        transition: color var(--dur);
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--red);
        transition: width var(--dur) var(--ease);
    }

    .nav-link:hover {
        color: var(--white);
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .header-cta {
        display: inline-flex;
    }

    .nav-toggle {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-grid {
        flex-direction: row;
        justify-content: center;
    }

    .step-connector {
        display: block;
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg, var(--grey-200), var(--red), var(--grey-200));
        flex-shrink: 0;
        align-self: center;
    }

    .step-card {
        flex: 1;
        max-width: 280px;
    }

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

    .contact-form {
        padding: 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .plan-card-popular {
        transform: scale(1.06);
    }

    .plan-card-popular:hover {
        transform: scale(1.06) translateY(-6px);
    }
}

@media (min-width: 1280px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}