:root {
    --primary: #2d5de6;
    --primary-glow: #5d8afe;
    --primary-foreground: #fdfdfd;
    --accent-green: #34d399;
    --accent-green-foreground: #0f2940;
    --accent-green-bg: rgba(52, 211, 153, 0.1);
    --background: #ffffff;
    --foreground: #333333;
    --card: #ffffff;
    --card-foreground: #333333;
    --secondary: #f5f5f6;
    --secondary-foreground: #404040;
    --muted: #f5f5f6;
    --muted-foreground: #808080;
    --gradient-hero: linear-gradient(135deg, #1e40fa 0%, #4d7fff 50%, #34d399 100%);
    --gradient-brand: linear-gradient(90deg, #2d5de6, #34d399);
    --gradient-subtle: linear-gradient(180deg, #fcfcfc, #f5f5f6);
    --shadow-elegant: 0 20px 50px -20px rgba(45, 93, 230, 0.35);
    --shadow-glow: 0 0 60px rgba(93, 138, 254, 0.4);
    --border: #e5e5e5;
    --input: #e5e5e5;
    --ring: #2d5de6;
    --radius: 0.625rem;
}

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

body {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

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

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

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-header .logo,
.logo-img {
    height: 40px;
    width: auto;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-header nav a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(51, 51, 51, 0.75);
    transition: color 0.2s;
}

.site-header nav a:hover {
    color: var(--primary);
}

.site-header nav a.active {
    color: var(--primary);
    font-weight: 600;
}

.site-header .btn-quote {
    background: var(--gradient-brand);
    color: var(--primary-foreground);
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-elegant);
    transition: transform 0.2s;
}

.site-header .btn-quote:hover {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    padding: 16px 24px;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(51, 51, 51, 0.8);
}

/* Hero sections */
.hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2));
}

.hero .hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero .hero-content .container {
    width: 100%;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-green);
    border: 1px solid rgba(52, 211, 153, 0.4);
    background: var(--accent-green-bg);
    padding: 6px 16px;
    border-radius: 9999px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-top: 12px;
    line-height: 1.1;
}

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

.hero p.hero-desc {
    font-size: 18px;
    color: rgba(51, 51, 51, 0.7);
    margin-top: 16px;
    max-width: 500px;
}

/* Hero home */
.hero-home {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-home img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-home .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--background),
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.3)
    );
}

.hero-home .hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-home h1 {
    font-size: 56px;
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slides-container {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.slides-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slides-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.slide-dot.active {
    background: white;
    transform: scale(1.2);
}

.slides-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
    pointer-events: none;
}

.slide-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s;
    color: white;
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: white;
}

@media (max-width: 768px) {
    .hero-slideshow {
        height: auto;
    }
    .slide {
        height: 250px;
    }
    .slide img {
        object-fit: contain;
        object-position: center center;
    }
    .slides-nav {
        bottom: 16px;
    }
    .slide-dot {
        width: 10px;
        height: 10px;
    }
    .slides-arrows {
        display: none;
    }
    .hero {
        height: 250px;
        background: #f5f5f6;
    }
    .hero img {
        object-fit: contain;
        object-position: center;
    }
}

.slides-container {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

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

.slides-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.7) 30%,
        rgba(255, 255, 255, 0.3) 100%
    );
}

.hero-slideshow .hero-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-slideshow h1 {
    font-size: 56px;
    line-height: 1.1;
}

.slides-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.slide-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.slides-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
    pointer-events: none;
}

.slide-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s;
}

.slide-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .hero-slideshow {
        height: 500px;
    }
    .hero-slideshow h1 {
        font-size: 36px;
    }
    .slides-arrows {
        display: none;
    }
}

.hero-home img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-home .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--background),
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.3)
    );
}

.hero-home .hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-home h1 {
    font-size: 56px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    transition:
        transform 0.2s,
        border-color 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-elegant);
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Features grid */
.features-section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 18px;
    color: rgba(51, 51, 51, 0.7);
    margin-top: 16px;
}

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

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: var(--shadow-elegant);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    border-radius: 12px;
    color: var(--primary-foreground);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
}

.feature-card p {
    font-size: 14px;
    color: rgba(51, 51, 51, 0.7);
    margin-top: 8px;
    line-height: 1.7;
}

/* Section with bg */
.section-subtle {
    background: var(--gradient-subtle);
    padding: 100px 0;
}

.section-subtle .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.section-subtle img {
    border-radius: 16px;
    box-shadow: var(--shadow-elegant);
}

.section-subtle .badge {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-green);
}

.section-subtle h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-top: 12px;
}

.section-subtle p {
    font-size: 18px;
    color: rgba(51, 51, 51, 0.7);
    margin-top: 20px;
    line-height: 1.7;
}

.section-subtle .link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.section-subtle .link:hover {
    color: var(--accent-green);
}

/* CTA section */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: var(--gradient-hero);
    border-radius: 24px;
    padding: 64px 40px;
    text-align: center;
    box-shadow: var(--shadow-elegant);
}

.cta-box h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-foreground);
}

.cta-box p {
    font-size: 18px;
    color: rgba(253, 253, 253, 0.85);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn {
    margin-top: 32px;
    background: var(--background);
    color: var(--primary);
}

/* Products section */
.products-section {
    padding: 80px 0;
}

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

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elegant);
}

.product-number {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-green);
}

.product-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;
}

.product-card p {
    font-size: 14px;
    color: rgba(51, 51, 51, 0.7);
    margin-top: 12px;
    line-height: 1.7;
}

/* Services list */
.services-section {
    padding: 80px 0;
}

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

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: var(--shadow-elegant);
}

/* About content */
.about-content {
    padding: 80px 0;
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(51, 51, 51, 0.85);
}

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

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.value-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    border-radius: 12px;
    color: var(--primary-foreground);
}

.value-icon svg {
    width: 24px;
    height: 24px;
}

.value-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
}

.value-card p {
    font-size: 14px;
    color: rgba(51, 51, 51, 0.7);
    margin-top: 8px;
    line-height: 1.7;
}

/* Contact */
.contact-hero {
    background: var(--gradient-hero);
    padding: 80px 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-foreground);
}

.contact-hero p {
    font-size: 18px;
    color: rgba(253, 253, 253, 0.85);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.contact-item .icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    border-radius: 12px;
    color: var(--primary-foreground);
}

.contact-item .icon svg {
    width: 20px;
    height: 20px;
}

.contact-item .label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(51, 51, 51, 0.7);
}

.contact-item .value {
    font-size: 16px;
    font-weight: 500;
    margin-top: 4px;
}

/* Contact form */
.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

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

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--background);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

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

/* Footer */
.site-footer {
    background: var(--secondary);
    border-top: 1px solid var(--border);
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(51, 51, 51, 0.7);
    margin-top: 16px;
    max-width: 300px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    margin-top: 16px;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(51, 51, 51, 0.7);
}

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

.footer-col .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-col .contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-green);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: rgba(51, 51, 51, 0.7);
}

/* Admin styles */
.admin-body {
    background: #f5f5f6;
    min-height: 100vh;
}

.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.admin-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.admin-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

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

.admin-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.admin-form input:focus,
.admin-form textarea:focus {
    border-color: var(--primary);
}

.admin-btn {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-btn:hover {
    background: #1e40fa;
}

.admin-btn-secondary {
    background: var(--secondary);
    color: var(--foreground);
}

.admin-btn-secondary:hover {
    background: #e5e5e5;
}

/* Login form */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.login-container h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Data sections editor */
.data-section {
    margin-bottom: 32px;
}

.data-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary);
}

.data-item {
    background: var(--secondary);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.data-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.data-item-header span {
    font-weight: 500;
}

.data-item-actions {
    display: flex;
    gap: 8px;
}

.data-item-actions button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .site-header nav {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }

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

    .features-grid,
    .products-grid,
    .services-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .section-subtle .grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .cta-box {
        padding: 48px 24px;
    }
}
