/* ===== CSS Variables ===== */
:root {
    --black: #000000;
    --white: #ffffff;
    --red: #c8102e;
    --red-hover: #a50d24;
    --gray-bg: #f5f5f5;
    --gray-100: #e8e8e8;
    --gray-200: #d0d0d0;
    --gray-300: #999999;
    --gray-400: #666666;
    --gray-500: #333333;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-500);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

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

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

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 12px;
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

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

.nav__logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--transition), height var(--transition);
}

.nav.scrolled .nav__logo img {
    height: 30px;
    filter: none;
}

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

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
}

.nav.scrolled .nav__link {
    color: var(--gray-500);
}

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

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

.nav__link--cta {
    font-weight: 600;
}

.nav__link--cta:hover {
    color: var(--red) !important;
}

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

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.nav.scrolled .nav__toggle span {
    background: var(--black);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #16213e 60%, #0f0f0f 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200, 16, 46, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(200, 16, 46, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(200, 16, 46, 0.15);
    border: 1px solid rgba(200, 16, 46, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero__title {
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero__title span {
    color: var(--red);
}

.hero__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

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

.btn--primary:hover {
    background: var(--red-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

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

.btn--dark {
    background: var(--black);
    color: var(--white);
}

.btn--dark:hover {
    background: var(--gray-500);
}

.hero__stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.hero__stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.about__text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

.about__text p {
    color: var(--gray-400);
    margin-bottom: 16px;
    line-height: 1.8;
}

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

.about__feature {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.about__feature:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.about__feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(200, 16, 46, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--red);
}

.about__feature h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.about__feature p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ===== Products ===== */
.products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    cursor: default;
}

.product-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--gray-bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.product-card:hover .product-card__icon {
    background: rgba(200, 16, 46, 0.08);
}

.product-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--gray-400);
    transition: color var(--transition);
}

.product-card:hover .product-card__icon svg {
    color: var(--red);
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.product-card p {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* ===== Shops ===== */
.shops__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.shop-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.shop-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.shop-card__flag {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
}

.shop-card__info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
}

.shop-card__info p {
    font-size: 0.8rem;
    color: var(--gray-300);
    margin-top: 2px;
}

.shop-card__arrow {
    margin-left: auto;
    color: var(--gray-200);
    transition: all var(--transition);
    flex-shrink: 0;
}

.shop-card:hover .shop-card__arrow {
    color: var(--red);
    transform: translateX(3px);
}

/* ===== B2B ===== */
.b2b {
    position: relative;
    background: var(--black);
    color: var(--white);
    overflow: hidden;
}

.b2b::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(200, 16, 46, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.b2b .section-header h2 {
    color: var(--white);
}

.b2b .section-header p {
    color: rgba(255, 255, 255, 0.5);
}

.b2b .section-label {
    color: var(--red);
}

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

.b2b__benefits {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.b2b__benefit {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.b2b__benefit-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(200, 16, 46, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}

.b2b__benefit h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.b2b__benefit p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.b2b__cta {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.b2b__cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.b2b__cta p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ===== Tools ===== */
.tools__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.tool-card--placeholder {
    border-style: dashed;
    opacity: 0.6;
}

.tool-card--placeholder:hover {
    opacity: 0.8;
    transform: none;
    border-color: var(--gray-200);
    box-shadow: none;
}

.tool-card__icon {
    width: 52px;
    height: 52px;
    background: rgba(200, 16, 46, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--red);
}

.tool-card--placeholder .tool-card__icon {
    background: var(--gray-bg);
    color: var(--gray-300);
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--red);
}

.tool-card__link:hover {
    gap: 10px;
}

.tool-card__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--gray-bg);
    color: var(--gray-300);
}

/* ===== Contact ===== */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact__info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

.contact__info > p {
    color: var(--gray-400);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact__detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.contact__detail-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(200, 16, 46, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}

.contact__detail h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
}

.contact__detail p {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.contact__form {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--gray-500);
    background: var(--gray-bg);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.form-submit:hover {
    background: var(--red-hover);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
}

.form-message--success {
    display: block;
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message--error {
    display: block;
    background: rgba(200, 16, 46, 0.08);
    color: var(--red);
    border: 1px solid rgba(200, 16, 46, 0.2);
}

/* ===== Footer ===== */
.footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.5);
    padding: 64px 0 32px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}

.footer__brand img {
    height: 32px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer__brand p {
    font-size: 0.875rem;
    max-width: 300px;
    line-height: 1.6;
}

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

.footer__col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.footer__col a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer__bottom a {
    color: rgba(255, 255, 255, 0.4);
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 3rem;
    }

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

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

    .about__grid {
        gap: 48px;
    }

    .b2b__grid {
        gap: 48px;
    }
}

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

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .nav.scrolled,
    .nav {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(12px);
    }

    .nav.scrolled {
        background: rgba(255, 255, 255, 0.97);
    }

    .nav__links {
        display: none;
    }

    .nav__links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #000000;
        padding: 120px 32px 32px;
        gap: 0;
        z-index: 999;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .nav__links .nav__link {
        color: #ffffff !important;
        padding: 20px 0;
        width: 100%;
        text-align: center;
        border-bottom: none;
        font-size: 1.2rem;
        font-weight: 500;
    }

    .nav.scrolled .nav__links .nav__link {
        color: #ffffff !important;
    }

    .nav__links .nav__link:hover,
    .nav__links .nav__link:active {
        color: var(--red) !important;
    }

    .nav__links .nav__link::after {
        display: none;
    }

    .nav__links .nav__link--cta {
        padding: 20px 0;
        text-align: center;
        border-bottom: none;
        border-radius: 0;
        width: 100%;
        background: transparent !important;
        color: #ffffff !important;
        font-size: 1.2rem;
        margin-top: 0;
    }

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

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__stats {
        gap: 28px;
        flex-wrap: wrap;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

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

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

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

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

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

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .hero__stats {
        gap: 20px;
    }

    .hero__stat-value {
        font-size: 1.35rem;
    }

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

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

    .b2b__cta {
        padding: 28px;
    }

    .contact__form {
        padding: 24px;
    }
}
