/* ============================================
   RANKMYAPP REDESIGN - PREMIUM LIGHT THEME
   ============================================ */

/* --- CUSTOM PROPERTIES --- */
:root {
    --color-bg: #fafafe;
    --color-bg-alt: #f1f0f8;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #f8f7ff;
    --color-surface: rgba(124, 58, 237, 0.03);
    --color-border: rgba(0, 0, 0, 0.07);
    --color-border-hover: rgba(0, 0, 0, 0.14);
    --color-text: #1a1a2e;
    --color-text-muted: #5a5a7a;
    --color-text-dim: #9090a8;
    --color-primary: #7c3aed;
    --color-primary-light: #7c3aed;
    --color-primary-deep: #6d28d9;
    --color-accent: #0891b2;
    --color-accent-warm: #e040a0;
    --gradient-primary: linear-gradient(135deg, #7c3aed, #06b6d4);
    --gradient-warm: linear-gradient(135deg, #7c3aed, #ec4899);
    --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #a855f7 25%, #06b6d4 50%, #7c3aed 100%);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glow: 0 8px 40px rgba(124, 58, 237, 0.12);
    --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 12px 40px rgba(124, 58, 237, 0.1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

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

.section {
    padding: 120px 0;
    position: relative;
}

/* --- TYPOGRAPHY --- */
.section__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.section__desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 560px;
    line-height: 1.7;
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__header .section__desc {
    margin: 0 auto;
}

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

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-hover);
}

.btn--ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(124, 58, 237, 0.04);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all var(--transition-smooth);
    background: transparent;
}

.navbar--scrolled {
    background: rgba(250, 250, 254, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

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

.navbar__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-rank {
    color: var(--color-text);
}

.logo-my {
    color: var(--color-primary);
}

.logo-app {
    color: var(--color-accent);
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar__menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
}

.navbar__menu a:hover {
    color: var(--color-text);
}

.navbar__menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition-smooth);
}

.navbar__menu a:hover::after {
    width: 100%;
}

.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: -16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-smooth);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.dropdown li a:hover {
    background: rgba(124, 58, 237, 0.06);
    color: var(--color-primary);
}

.dropdown li a::after {
    display: none;
}

.navbar__cta {
    font-size: 0.85rem;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(180deg, #f4f0ff 0%, var(--color-bg) 100%);
}

.hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
    z-index: 0;
}

.hero__glow--1 {
    width: 600px;
    height: 600px;
    background: #a78bfa;
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero__glow--2 {
    width: 400px;
    height: 400px;
    background: #67e8f9;
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.hero__glow--3 {
    width: 300px;
    height: 300px;
    background: #f0abfc;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
    animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -40px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.08; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.15; transform: translate(-50%, -50%) scale(1.2); }
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.15);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 32px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(124, 58, 237, 0); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6.5vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding-top: 48px;
    border-top: 1px solid var(--color-border);
    max-width: 600px;
    margin: 0 auto;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero__stat-plus {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 8px;
    font-weight: 500;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.hero__scroll span {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-dim);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- ABOUT --- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about__highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.about__highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.about__highlight:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: var(--shadow-card-hover);
    transform: translateX(4px);
}

.about__highlight-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.08);
    color: var(--color-primary);
}

.about__highlight strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--color-text);
}

.about__highlight p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.about__visual {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__orbit {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px dashed rgba(124, 58, 237, 0.15);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about__card {
    position: absolute;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
    z-index: 1;
}

.about__card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: var(--shadow-card-hover);
}

.about__card-icon {
    color: var(--color-primary);
    margin-bottom: 12px;
}

.about__card-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.about__card-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.about__card--1 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.about__card--1:hover {
    transform: translateX(-50%) translateY(-8px);
}

.about__card--2 {
    bottom: 40px;
    left: 20px;
}

.about__card--3 {
    bottom: 40px;
    right: 20px;
}

/* --- PRODUCTS --- */
.products {
    background: var(--color-bg-alt);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.product-card:hover {
    border-color: rgba(124, 58, 237, 0.25);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

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

.product-card--featured {
    grid-row: span 2;
    background: linear-gradient(160deg, #ffffff, #f8f5ff);
    border-color: rgba(124, 58, 237, 0.12);
}

.product-card__glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: var(--color-primary);
    filter: blur(120px);
    opacity: 0.04;
}

.product-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(124, 58, 237, 0.08);
    color: var(--color-primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.product-card__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    color: var(--color-text);
}

.product-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.product-card__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.product-card__features li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding-left: 20px;
    position: relative;
}

.product-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
    transition: gap var(--transition-smooth);
}

.product-card__link:hover {
    gap: 14px;
}

/* --- CASES --- */
.cases__carousel {
    overflow: hidden;
    margin: 0 -12px;
    padding: 0 12px;
}

.cases__track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
}

.cases__track:active {
    cursor: grabbing;
}

.case-card {
    flex: 0 0 calc(33.333% - 16px);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.case-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.case-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.case-card:hover::after {
    opacity: 1;
}

.case-card__metric {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.case-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.case-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.case-card__desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.cases__controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}

.cases__btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.cases__btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(124, 58, 237, 0.04);
    box-shadow: var(--shadow-card-hover);
}

/* --- TESTIMONIALS --- */
.testimonials {
    background: var(--color-bg-alt);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.testimonial-card:hover {
    border-color: rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.testimonial-card__stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.testimonial-card__quote {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid rgba(124, 58, 237, 0.25);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.testimonial-card__author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-text);
}

.testimonial-card__author span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --- CTA / CONTACT --- */
.cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-bg) 0%, #f0ebff 100%);
}

.cta__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
}

.cta__glow--1 {
    width: 500px;
    height: 500px;
    background: #c4b5fd;
    opacity: 0.15;
    top: -200px;
    left: -100px;
}

.cta__glow--2 {
    width: 400px;
    height: 400px;
    background: #67e8f9;
    opacity: 0.1;
    bottom: -150px;
    right: -100px;
}

.cta__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cta__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-text-dim);
}

.form-input:focus {
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.cta__form .btn {
    grid-column: 1 / -1;
    margin-top: 8px;
}

/* --- FOOTER --- */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    border-top: none;
    padding: 80px 0 40px;
}

.footer .navbar__logo .logo-rank {
    color: #fff;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
    line-height: 1.7;
    max-width: 280px;
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-smooth);
}

.footer__social-link:hover {
    border-color: var(--color-primary);
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.15);
}

.footer__links h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__links li a:hover {
    color: #a78bfa;
}

.footer__links li svg {
    flex-shrink: 0;
    color: #a78bfa;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* --- ANIMATIONS --- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card--featured {
        grid-row: span 1;
    }

    .case-card {
        flex: 0 0 calc(50% - 12px);
    }

    .about__grid {
        gap: 48px;
    }

    .cta__content {
        gap: 48px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg-card);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right var(--transition-smooth);
        border-left: 1px solid var(--color-border);
        z-index: 999;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
    }

    .navbar__menu.is-open {
        right: 0;
    }

    .navbar__cta {
        display: none;
    }

    .navbar__toggle {
        display: flex;
        z-index: 1001;
    }

    .navbar__toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar__toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .navbar__toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
        border: none;
        box-shadow: none;
        padding: 8px 0 0 16px;
    }

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

    .about__visual {
        height: 300px;
    }

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

    .case-card {
        flex: 0 0 calc(100% - 16px);
    }

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

    .cta__content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .hero__stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero__stat-divider {
        width: 40px;
        height: 1px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero__scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2.2rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- SELECTION --- */
::selection {
    background: rgba(124, 58, 237, 0.15);
    color: var(--color-text);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.35);
}
