/* ========================================
   Azteca International - Global Styles
   Dark, minimal, modern design
   ======================================== */

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

:root {
    --black: #000000;
    --bg-primary: #0a0a0a;
    --bg-secondary: #050505;
    --bg-card: #111111;
    --bg-card-hover: #181818;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.35);
    --accent: rgba(255, 255, 255, 0.9);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

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

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

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
    background: transparent;
}

.nav--scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 2px;
}

.nav__logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--text-primary);
}

.nav__logo-sub {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 4.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__link {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

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

.nav__link--cta {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.nav__link--cta:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

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

.nav__toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 32px;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 100px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero__title {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

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

.hero__subtitle {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease) 0.8s forwards;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s var(--ease) 1.2s forwards;
}

.hero__scroll span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

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

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn--primary:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
}

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

.btn--outline:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

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

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 120px 0;
}

.section--dark {
    background: var(--bg-secondary);
}

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

.section__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.section__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section__desc {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.about__text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.about__text p:last-child {
    margin-bottom: 0;
}

.about__stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.stat:hover {
    border-color: var(--border-hover);
}

.stat__number {
    display: block;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -2px;
    margin-bottom: 4px;
}

.stat__label {
    font-size: 13px;
    color: var(--text-tertiary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========================================
   Trading Cards
   ======================================== */
.trading__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.4s var(--ease);
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.card__icon svg {
    width: 100%;
    height: 100%;
}

.card__title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.card__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* ========================================
   Services
   ======================================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service {
    padding: 0;
}

.service__number {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.service__title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
}

.service__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* ========================================
   Global Reach
   ======================================== */
.global__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.global__map {
    opacity: 0.8;
}

.map-svg {
    width: 100%;
    height: auto;
}

.global__locations {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.location {
    padding: 24px;
    border-left: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.location:hover {
    border-color: var(--text-secondary);
}

.location__title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
}

.location__role {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.location__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* ========================================
   Management
   ======================================== */
.management__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.member {
    text-align: center;
    padding: 48px 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.member:hover {
    border-color: var(--border-hover);
}

.member__avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.member__avatar svg {
    width: 100%;
    height: 100%;
}

.member__name {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 4px;
}

.member__role {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.member__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* ========================================
   Contact
   ======================================== */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.contact__item-title {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.contact__item p {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 300;
}

.contact__item a {
    transition: color 0.3s ease;
}

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

/* Form */
.form__group {
    margin-bottom: 16px;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 300;
    transition: border-color 0.3s ease;
    outline: none;
}

.form__input::placeholder {
    color: var(--text-tertiary);
}

.form__input:focus {
    border-color: var(--border-hover);
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
}

.footer__tagline {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 12px;
    font-weight: 300;
}

.footer__links {
    display: flex;
    gap: 28px;
}

.footer__links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer__bottom p {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 300;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

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

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

/* Pulse animation for map markers */
.pulse-ring {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { r: 6; opacity: 0.2; }
    50% { r: 12; opacity: 0; }
}

/* Connection lines animation */
.connection-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 3s var(--ease) forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 968px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__stats {
        flex-direction: row;
        gap: 16px;
    }

    .stat {
        flex: 1;
        padding: 24px;
    }

    .stat__number {
        font-size: 36px;
    }

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

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

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

    .management__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

@media (max-width: 768px) {
    .nav__menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 999;
    }

    .nav__menu--open {
        display: flex;
    }

    .nav__menu--open .nav__link {
        font-size: 18px;
    }

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

    .nav__toggle--open span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav__toggle--open span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle--open span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .section {
        padding: 80px 0;
    }

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

    .about__stats {
        flex-direction: column;
    }

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

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

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

    .footer__links {
        flex-wrap: wrap;
        gap: 16px;
    }
}
