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

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --secondary: #22c55e;
    --secondary-dark: #16a34a;
    --accent: #eab308;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.12);
    --shadow-md: 0 4px 20px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 50px rgba(0,0,0,.15);
    --shadow-xl: 0 20px 70px rgba(0,0,0,.2);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }

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

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

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(249, 115, 22, .12);
    color: var(--primary);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight {
    color: var(--primary);
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(249, 115, 22, .35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, .45);
}

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

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

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

/* ====== HEADER ====== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.header.scrolled .logo,
.header.scrolled .navbar a {
    color: var(--dark);
}

.header.scrolled .navbar a:hover,
.header.scrolled .navbar a.active {
    color: var(--primary);
}

.header.scrolled .btn-outline {
    color: var(--primary);
    border-color: var(--primary);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    z-index: 1001;
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary);
}

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

.navbar {
    display: flex;
    gap: 32px;
}

.navbar a {
    color: rgba(255,255,255,.85);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
    padding: 4px 0;
}

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

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

.navbar a:hover,
.navbar a.active {
    color: var(--white);
}

.header.scrolled .navbar a {
    color: var(--gray-600);
}

.header.scrolled .navbar a:hover,
.header.scrolled .navbar a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions .btn {
    padding: 10px 24px;
    font-size: .9rem;
}

/* ====== MENU TOGGLE ====== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.header.scrolled .menu-toggle span {
    background: var(--dark);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ====== HERO ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
    padding: 120px 0 100px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: .6;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 36px;
    line-height: 1.8;
}

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

/* Hero Image Grid */
.hero-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.grid-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.grid-item:hover {
    transform: scale(1.03);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item.item1 { grid-row: span 2; }
.grid-item.item4 { grid-row: span 2; }

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 24px 16px;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: .95rem;
    color: rgba(255,255,255,.7);
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-card {
    background: var(--gray-100);
    padding: 28px 24px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.about-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.about-card p {
    font-size: .9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.about-image-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: .9rem;
}

.about-image-badge i {
    color: var(--accent);
    font-size: 1.3rem;
}

/* ====== PRODUCTS ====== */
.products {
    background: var(--gray-100);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.product-img {
    height: 220px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.product-info > p {
    color: var(--gray-500);
    font-size: .9rem;
    margin-bottom: 16px;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-meta span {
    font-size: .82rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-meta i {
    color: var(--primary);
    width: 16px;
}

/* ====== FEATURES ====== */
.features {
    background: var(--white);
}

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

.feature-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius);
    background: var(--gray-100);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(249, 115, 22, .3);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-500);
    font-size: .95rem;
    line-height: 1.7;
}

/* ====== CONTACT ====== */
.contact {
    background: var(--gray-100);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary);
    background: rgba(249, 115, 22, .12);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--gray-500);
    font-size: .9rem;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.contact-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

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

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--gray-100);
    color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
    background: var(--white);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364758b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    padding-left: 40px;
}

/* ====== NEWSLETTER ====== */
.newsletter {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 80px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 550px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.newsletter-content p {
    color: rgba(255,255,255,.85);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-size: 1rem;
    font-family: var(--font);
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    padding: 16px 36px;
    background: var(--dark);
    color: var(--white);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--dark-2);
}

/* ====== FOOTER ====== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.8);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-about p {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,.6);
    padding: 6px 0;
    font-size: .9rem;
    transition: var(--transition);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    margin-bottom: 12px;
}

.footer-contact i {
    color: var(--primary);
    width: 18px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: .85rem;
    color: rgba(255,255,255,.4);
}

.footer-bottom a {
    color: var(--primary);
}

/* ====== SCROLL TO TOP ====== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

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

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

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .hero-image-grid {
        max-width: 400px;
        margin: 0 auto;
    }

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

    .about-image {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

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

    .header .btn-primary {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transform: translateY(-100%);
        transition: var(--transition);
        opacity: 0;
        pointer-events: none;
    }

    .header.scrolled .navbar {
        background: rgba(255,255,255,.98);
    }

    .navbar.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar a {
        font-size: 1.3rem;
        color: var(--white);
    }

    .header.scrolled .navbar a {
        color: var(--dark);
    }

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

    .hero-content h1 {
        font-size: 2rem;
    }

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

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

    .about-text {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: var(--radius-sm);
    }

    .newsletter-form input {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

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

    .contact-form {
        padding: 20px;
    }
}
