/* --- Font Setup --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Roboto:wght@400;500;700&display=swap');

/* --- Reset & Base --- */
:root {
    --primary-blue: #0180E5;
    --deep-dark: #000B3D;
    --dark-accent: #001A6B;
    --text-main: #4A5568;
    --text-light: #A0AEC0;
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --border-light: rgba(226, 232, 240, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tenant Overrides */
[data-tenant="durand"] {
    --primary-color: #0180E5;
    --hero-gradient: linear-gradient(135deg, #000B3D 0%, #001A6B 100%);
}

[data-tenant="tavola"] {
    --primary-color: #7E3AF2;
    --hero-gradient: linear-gradient(135deg, #4C1D95 0%, #7E3AF2 100%);
}

[data-tenant="virtualcloud"] {
    --primary-color: #1D4ED8;
    --hero-gradient: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.selector-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    padding: 10px;
    z-index: 100;
    min-width: 120px;
    display: flex;
    flex-direction: column;
}

.selector-dropdown a {
    padding: 8px 12px;
    color: var(--text-main);
    font-size: 14px;
    border-radius: 4px;
}

.selector-dropdown a:hover {
    background: var(--off-white);
    color: var(--primary-color);
}

.selectors {
    display: flex;
    gap: 10px;
    position: relative;
}

.selector-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.selector-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--deep-dark);
    line-height: 1.2;
}

ul {
    list-style: none;
}

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

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

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(1, 128, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 128, 229, 0.4);
}

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

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

.section-padding {
    padding: 100px 0;
}

/* --- Header --- */
header {
    background: var(--deep-dark);
    /* Fallback */
    background: rgba(0, 11, 61, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

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

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.client-area-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.client-area-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* --- Hero --- */
.hero {
    background: var(--hero-gradient);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://www.durand.com.br/wp-content/uploads/2023/05/bg-lines.png') center/cover no-repeat;
    opacity: 0.1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(1, 128, 229, 0.2);
    color: #4DB5FF;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(1, 128, 229, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

/* --- Domain Search --- */
.domain-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 60px;
}

.domain-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-light);
}

.domain-card h3 {
    margin-bottom: 25px;
    color: var(--deep-dark);
}

.domain-form {
    display: flex;
    width: 100%;
    max-width: 800px;
    background: var(--off-white);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    transition: var(--transition);
}

.domain-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(1, 128, 229, 0.1);
}

.domain-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 18px 25px;
    font-size: 16px;
    outline: none;
}

.domain-form .extension-selector {
    background: transparent;
    border: none;
    padding: 0 15px;
    color: var(--text-main);
    font-weight: 500;
    border-left: 1px solid var(--border-light);
    outline: none;
}

.domain-form button {
    border-radius: 0 6px 6px 0;
    padding: 0 35px;
    margin: 4px;
    border-radius: 4px;
}

/* --- Services Grid --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-pill {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(1, 128, 229, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 25px;
    min-height: 80px;
}

.price-tag {
    display: block;
    margin-bottom: 25px;
}

.price-tag .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-dark);
}

.price-tag .period {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- Footer --- */
footer {
    background: var(--deep-dark);
    color: #A0AEC0;
    padding: 80px 0 30px;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #A0AEC0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .domain-form {
        flex-direction: column;
    }

    .domain-form input {
        border-bottom: 1px solid var(--border-light);
    }

    .domain-form button {
        margin: 10px;
        width: auto;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .header-right {
        display: none;
    }

    /* Mobile menu placeholder */
    .hero {
        padding-top: 120px;
    }

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