/* =============================================
   STYS Corporate Website - Light Theme V3
============================================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #0ea5e9;
    --success: #10b981;

    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;
    --bg-section-alt: #eef2f7;

    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Utilities */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }

/* Typography */
h1, h2, h3, h4 { color: var(--text-dark); line-height: 1.25; font-weight: 700; }
.highlight { color: var(--primary); }
.section-badge {
    display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: var(--primary); background: var(--primary-light); padding: 0.35rem 1rem; border-radius: 99px; margin-bottom: 0.75rem;
}
.section-title { font-size: 2.25rem; margin-bottom: 0.75rem; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.section-header { margin-bottom: 3rem; }

@media(min-width:768px) { .section-title { font-size: 2.75rem; } }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.7rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
    transition: var(--transition); cursor: pointer; border: none; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Input */
.input-field {
    width: 100%; padding: 0.85rem 1.25rem; border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.95rem; font-family: inherit; background: var(--bg-white); color: var(--text-dark);
    transition: var(--transition); margin-bottom: 0.75rem; resize: vertical;
}
.input-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* =============================================
   NAVBAR
============================================= */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1rem 0; transition: var(--transition); background: rgba(248,250,252,0.6); backdrop-filter: blur(12px);
}
.navbar.scrolled { padding: 0.6rem 0; background: rgba(255,255,255,0.95); box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border); }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; gap: 0.6rem; }
.logo { height: 75px; width: auto; object-fit: contain; transition: var(--transition); }
.navbar.scrolled .logo { height: 60px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { color: var(--text-body); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--primary); }
.nav-cta { font-size: 0.9rem !important; padding: 0.6rem 1.25rem !important; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px;}
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: var(--transition); }

@media(max-width:768px) {
    .logo { height: 55px; }
    .navbar.scrolled .logo { height: 45px; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); flex-direction: column; padding: 1.5rem; gap: 1rem; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .mobile-menu-btn { display: flex; }
}

/* =============================================
   HERO
============================================= */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 130px; background: linear-gradient(180deg, #eef4ff 0%, var(--bg-body) 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%); top: -100px; right: -100px; }
.hero-container { display: grid; grid-template-columns: 4fr 6.5fr; gap: 3rem; align-items: center; max-width: 1400px; margin: 0 auto; width: 100%; padding: 0 2rem; }
.hero-visual { width: 100%; }
.badge { display: inline-block; padding: 0.3rem 0.9rem; border-radius: 99px; background: var(--primary-light); color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 1.25rem; }
.badge.dark { background: rgba(15,23,42,0.85); color: #fff; }
.hero-title { font-size: 3rem; font-weight: 800; margin-bottom: 1.25rem; color: var(--text-dark); }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 480px; }
.hero-cta { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-trust span { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

.hero-screenshot-wrapper { position: relative; }
.hero-screenshot { border-radius: var(--radius); box-shadow: var(--shadow-xl); border: 1px solid var(--border); transition: transform 0.5s ease; }
.hero-screenshot:hover { transform: scale(1.02); }
.screenshot-glow { position: absolute; bottom: -20px; left: 10%; right: 10%; height: 40px; background: rgba(37,99,235,0.15); filter: blur(30px); border-radius: 50%; }

@media(max-width:992px) { .hero-container { grid-template-columns: 1fr; text-align: center; } .hero-content { text-align: center; } .hero-subtitle { margin: 0 auto 2rem; } .hero-cta { justify-content: center; } .hero-trust { justify-content: center; } .hero-title { font-size: 2.25rem; } }

/* =============================================
   FEATURES
============================================= */
.features { background: var(--bg-white); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
    background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem;
    transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.25rem; }
.feature-icon.blue { background: #dbeafe; } .feature-icon.green { background: #d1fae5; } .feature-icon.orange { background: #ffedd5; }
.feature-icon.purple { background: #ede9fe; } .feature-icon.red { background: #ffe4e6; } .feature-icon.teal { background: #ccfbf1; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.premium-feature {
    margin-top: 2.5rem; display: flex; align-items: center; gap: 3rem; padding: 2.5rem;
    background: linear-gradient(135deg, #1e293b, #0f172a); border-radius: var(--radius); color: #fff;
}
.premium-content { flex: 1.2; }
.premium-content h3 { color: #fff; font-size: 1.5rem; margin: 0.75rem 0; }
.premium-content p { color: #94a3b8; font-size: 0.95rem; }
.premium-visual { flex: 0.8; }
.premium-img { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); max-height: 220px; object-fit: cover; width: 100%; }

@media(max-width:992px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:600px) { .features-grid { grid-template-columns: 1fr; } .premium-feature { flex-direction: column; text-align: center; } }

/* =============================================
   SCREENSHOTS CAROUSEL
============================================= */
.screenshots { background: var(--bg-section-alt); }
.screenshots-carousel { max-width: 900px; margin: 0 auto; }
.carousel-nav { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.carousel-btn {
    padding: 0.5rem 1.2rem; border-radius: 99px; border: 2px solid var(--border); background: var(--bg-white);
    font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--text-muted); font-family: inherit;
}
.carousel-btn.active, .carousel-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: #0f172a; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-slide { min-width: 100%; }
.carousel-slide img { width: 100%; display: block; }

/* =============================================
   ADVANTAGES
============================================= */
.advantages { background: var(--bg-white); }
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.advantage-card {
    padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--bg-body); transition: var(--transition);
}
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.adv-number { font-size: 2.5rem; font-weight: 900; color: var(--primary-light); margin-bottom: 0.75rem; line-height: 1; }
.advantage-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.advantage-card p { font-size: 0.9rem; color: var(--text-muted); }

@media(max-width:992px) { .advantages-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:600px) { .advantages-grid { grid-template-columns: 1fr; } }

/* =============================================
   ARCHITECTURE
============================================= */
.architecture { background: var(--bg-section-alt); }
.arch-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.arch-list { list-style: none; margin-top: 1.5rem; }
.arch-list li { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.arch-check { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: #d1fae5; color: var(--success); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.85rem; margin-top: 2px; }
.arch-list h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.arch-list p { font-size: 0.9rem; color: var(--text-muted); }

.network-card {
    background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem;
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem; box-shadow: var(--shadow-md);
}
.server-box { background: linear-gradient(135deg, var(--primary), var(--accent)); padding: 1.5rem 2rem; border-radius: var(--radius-sm); text-align: center; color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.server-icon { font-size: 2rem; margin-bottom: 0.3rem; }
.server-box small { display: block; font-weight: 400; font-size: 0.8rem; opacity: 0.8; }
.connection-lines { display: flex; gap: 3rem; height: 50px; }
.conn-line { width: 2px; height: 100%; background: var(--border); position: relative; }
.conn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); position: absolute; left: -2px; animation: travel 2s infinite ease-in-out; }
.clients { display: flex; gap: 1rem; }
.client-box { background: var(--bg-body); border: 1px solid var(--border); padding: 0.8rem 1.2rem; border-radius: var(--radius-sm); text-align: center; font-size: 0.85rem; font-weight: 600; }
.client-icon { display: block; font-size: 1.3rem; margin-bottom: 0.2rem; }
.client-box.accent { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

@keyframes travel { 0% { top: 0; opacity: 0; } 50% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media(max-width:992px) { .arch-layout { grid-template-columns: 1fr; } }

/* =============================================
   CONTACT
============================================= */
.contact { background: var(--bg-white); }
.contact-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
    background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius); padding: 3rem;
    box-shadow: var(--shadow-md);
}
.contact-text h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.contact-text p { color: var(--text-muted); }
.contact-form { display: flex; flex-direction: column; }

@media(max-width:768px) { .contact-card { grid-template-columns: 1fr; } }

/* =============================================
   FOOTER
============================================= */
.footer { background: #0f172a; color: #94a3b8; padding-top: 3rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #1e293b; }
.footer-brand { }
.footer-logo { height: 70px; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-links-group h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer-links-group a { display: block; font-size: 0.85rem; color: #94a3b8; padding: 0.2rem 0; transition: color 0.2s; }
.footer-links-group a:hover { color: #fff; }
.footer-bottom-bar { padding: 1.25rem 0; text-align: center; }
.footer-bottom-bar p { font-size: 0.8rem; }

@media(max-width:768px) { .footer-content { grid-template-columns: 1fr; text-align: center; } .footer-brand p { margin: 0 auto; } .footer-logo { margin: 0 auto 0.75rem; } }

/* =============================================
   MOBILE SCREENSHOTS
============================================= */
.mobile-screenshots { background: #fdfdfd; }
.bg-dark { background: #0f172a; color: #f8fafc; }
.bg-dark .section-title { color: #fff; }
.bg-dark .section-desc { color: #94a3b8; }
.section-badge.modern { background: rgba(37,99,235,0.2); color: #60a5fa; }

.mobile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; justify-items: center; margin-top: 1.5rem; }
.mobile-frame { transition: transform 0.4s; max-width: 280px; width: 100%; border: none; box-shadow: none; background: transparent; }
.mobile-frame:hover { transform: translateY(-10px) scale(1.02); }

/* =============================================
   MOCKUP FRAMES
============================================= */
.browser-mockup { background: #1e293b; padding: 4px; padding-bottom: 24px; border-radius: 8px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); border: 2px solid #334155; position: relative; width: 100%; }
.browser-header { display: none; }
.browser-mockup::after { content: ''; position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; background: rgba(255,255,255,0.2); border-radius: 50%; }

.carousel-mockup .carousel-viewport { border-radius: 0; box-shadow: none; border: none; padding: 0; }
.carousel-mockup .carousel-slide img, .browser-mockup img { border-radius: 4px; border: 1px solid #000; width: 100%; height: auto; display: block; }

.mobile-mockup { position: relative; background: #111; border-radius: 36px; padding: 45px 12px 45px 12px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); border: 4px solid #334155; overflow: hidden; margin: 0 auto; }
.mobile-mockup::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 60px; height: 6px; background: #333; border-radius: 3px; z-index: 2; }
.mobile-notch { display: none; }
.mobile-mockup img { border-radius: 8px; position: relative; z-index: 1; display: block; width: 100%; height: auto; object-fit: contain; border: 1px solid #444; }


/* =============================================
   ANIMATIONS
============================================= */
.fade-in-up { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }

/* =============================================
   LIGHTBOX
============================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}
.lightbox.active .lightbox-img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    user-select: none;
}
.lightbox-close:hover {
    color: var(--primary);
}
