/* ===== Variables ===== */
:root {
    /* Colors */
    --color-primary: #1a5fb4;
    --color-primary-dark: #134a8f;
    --color-primary-light: #3584e4;
    --color-secondary: #0d3b7a;
    --color-accent: #62a0ea;

    /* Neutrals */
    --color-white: #ffffff;
    --color-bg: #f8fafc;
    --color-bg-alt: #f1f5f9;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    --gradient-text: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 2rem;
    --fs-4xl: 2.5rem;
    --fs-5xl: 3rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    /* Layout */
    --header-height: 4.5rem;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Utilities ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section__subtitle {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.section__title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.section__description {
    font-size: var(--fs-lg);
    color: var(--color-text-light);
    max-width: 600px;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.75rem;
    font-size: var(--fs-base);
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(26, 95, 180, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 180, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--full {
    width: 100%;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-weight: 700;
}

.logo-salva {
    font-size: var(--fs-xl);
    color: var(--color-primary);
}

.logo-solucoes {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    font-weight: 500;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav__link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text-light);
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: var(--fs-xl);
    color: var(--color-text);
    cursor: pointer;
}

.nav__toggle svg,
.nav__close svg {
    width: 24px;
    height: 24px;
}

/* ===== Hero ===== */
.hero {
    padding-top: calc(var(--header-height) + var(--spacing-3xl));
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero__subtitle {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.hero__title {
    font-size: var(--fs-5xl);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.hero__description {
    font-size: var(--fs-lg);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 520px;
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Hero Image/Graphic */
.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* ===== Sol da Marca ===== */
.sun {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sun__core {
    position: relative;
    z-index: 10;
}

.sun__glow {
    position: absolute;
    width: 140px;
    height: 140px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(26, 95, 180, 0.4) 0%, rgba(26, 95, 180, 0) 70%);
    border-radius: 50%;
    animation: sunGlow 3s ease-in-out infinite;
}

.sun__center {
    position: relative;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 0 30px rgba(26, 95, 180, 0.4),
        0 0 60px rgba(26, 95, 180, 0.2),
        inset 0 -5px 20px rgba(0, 0, 0, 0.1);
    animation: sunPulse 4s ease-in-out infinite;
}

.sun__logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes sunGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.6;
    }
}

@keyframes sunPulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(26, 95, 180, 0.4), 0 0 60px rgba(26, 95, 180, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(26, 95, 180, 0.5), 0 0 80px rgba(26, 95, 180, 0.3);
    }
}

/* Raios do Sol */
.sun__rays {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sun__rays span {
    position: absolute;
    width: 3px;
    height: 40px;
    background: linear-gradient(to top, var(--color-primary), transparent);
    top: 50%;
    left: 50%;
    transform-origin: center 80px;
    opacity: 0.3;
    border-radius: 2px;
}

.sun__rays span:nth-child(1) {
    transform: rotate(0deg) translateY(-80px);
}

.sun__rays span:nth-child(2) {
    transform: rotate(45deg) translateY(-80px);
}

.sun__rays span:nth-child(3) {
    transform: rotate(90deg) translateY(-80px);
}

.sun__rays span:nth-child(4) {
    transform: rotate(135deg) translateY(-80px);
}

.sun__rays span:nth-child(5) {
    transform: rotate(180deg) translateY(-80px);
}

.sun__rays span:nth-child(6) {
    transform: rotate(225deg) translateY(-80px);
}

.sun__rays span:nth-child(7) {
    transform: rotate(270deg) translateY(-80px);
}

.sun__rays span:nth-child(8) {
    transform: rotate(315deg) translateY(-80px);
}

@keyframes sunRaysRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Anel de Órbita */
.orbit__ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 2px dashed rgba(26, 95, 180, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Órbita dos Cards */
.orbit {
    position: absolute;
    width: 320px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbitRotate 20s linear infinite;
}

.orbit__item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    animation: orbitItemCounter 20s linear infinite;
}

.orbit__item svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

/* Posições dos cards na órbita (120° entre cada) */
.orbit__item--1 {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit__item--2 {
    bottom: 20px;
    left: -30px;
}

.orbit__item--3 {
    bottom: 20px;
    right: -30px;
}

@keyframes orbitRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Contra-rotação para manter texto legível */
@keyframes orbitItemCounter {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.orbit__item--1 {
    animation: orbitItemCounter1 20s linear infinite;
}

@keyframes orbitItemCounter1 {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(-360deg);
    }
}

/* Hero Benefits */
.hero__benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-3xl);
    padding: var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.benefit__item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
}

.benefit__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 95, 180, 0.1) 0%, rgba(98, 160, 234, 0.1) 100%);
    border-radius: var(--radius-lg);
    color: var(--color-primary);
}

.benefit__icon svg {
    width: 24px;
    height: 24px;
}

.benefit__content h3 {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.benefit__content p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

/* ===== About ===== */
.about {
    background: var(--color-white);
}

.about__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about__description {
    font-size: var(--fs-lg);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.about__description strong {
    color: var(--color-primary);
}

.about__values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.value__card {
    padding: var(--spacing-md);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.value__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.value__icon svg {
    width: 20px;
    height: 20px;
}

.value__card h4 {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.value__card p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

.about__image {
    position: relative;
}

.about__stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    background: var(--gradient-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    color: var(--color-white);
}

.stat__item {
    text-align: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat__item:last-child {
    border-bottom: none;
}

.stat__number {
    display: block;
    font-size: var(--fs-3xl);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat__label {
    font-size: var(--fs-sm);
    opacity: 0.9;
}

/* ===== Services ===== */
.services {
    background: var(--color-bg);
}

.services__header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.services__header .section__description {
    margin: 0 auto;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.service__card {
    position: relative;
    padding: var(--spacing-xl);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.service__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service__card--featured {
    border-color: var(--color-primary);
    background: linear-gradient(180deg, rgba(26, 95, 180, 0.02) 0%, var(--color-white) 100%);
}

.service__badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.service__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 95, 180, 0.1) 0%, rgba(98, 160, 234, 0.1) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.service__icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.service__title {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.service__description {
    font-size: var(--fs-base);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.service__features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.service__features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.service__features svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}