/* ============================================
   SafeControl v5.0 — Professional Clean Design
   ============================================ */

:root {
    --brand: #3D5A80;
    --brand-light: #6B9AC4;
    --brand-dark: #2C4466;
    --brand-glow: rgba(107, 154, 196, 0.25);

    --bg-dark: #1A1E28;
    --bg-surface: #21262F;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --text-white: #F1F5F9;
    --text-light: #B0B8C8;
    --text-muted: #717D93;

    --green: #34d399;

    --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

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

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

/* Accent line at top */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-light), transparent);
    z-index: 9999;
    opacity: 0.6;
}

::selection { background: var(--brand); color: white; }
a { color: inherit; text-decoration: none; }

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   SUBTLE BACKGROUND
   ============================================ */
.scene-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(120px);
}

.bg-shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(107, 154, 196, 0.12), transparent);
    animation: bgFloat 25s ease-in-out infinite;
}

.bg-shape-2 {
    width: 400px;
    height: 400px;
    bottom: 20%;
    left: -100px;
    background: radial-gradient(circle, rgba(107, 154, 196, 0.08), transparent);
    animation: bgFloat 20s ease-in-out infinite reverse;
}

.bg-shape-3 {
    width: 350px;
    height: 350px;
    top: 50%;
    right: 15%;
    background: radial-gradient(circle, rgba(107, 154, 196, 0.06), transparent);
    animation: bgFloat 18s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}

.nav.scrolled {
    background: rgba(26, 30, 40, 0.9);
    backdrop-filter: blur(20px);
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    z-index: 10;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--brand);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon svg { width: 18px; height: 18px; }
.logo-icon.small { width: 28px; height: 28px; }
.logo-icon.small svg { width: 15px; height: 15px; }

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s;
}

.nav-link:hover { color: var(--text-white); }

.nav-cta {
    padding: 0.5rem 1.125rem;
    background: var(--brand);
    border-radius: var(--radius-sm);
    color: white !important;
    transition: background 0.3s, transform 0.3s;
}

.nav-cta:hover {
    background: var(--brand-light);
    transform: translateY(-1px);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    transition: border-color 0.3s;
    color: var(--text-light);
}

.lang-toggle:hover { border-color: var(--brand-light); }
.lang-active { color: var(--brand-light); }
.lang-divider { color: var(--text-muted); }
.lang-inactive { color: var(--text-muted); }
.lang-toggle-mobile { margin-top: 2rem; font-size: 1rem; padding: 0.5rem 1rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 10;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-light);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.nav-toggle.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s;
}

.mobile-link:hover { color: var(--brand-light); }

/* ============================================
   HERO — TWO COLUMN
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
    overflow: hidden;
    padding: 7rem 0 4rem;
}

.hero-depth-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform-style: preserve-3d;
}

.hero-layer-back { z-index: 1; }
.hero-layer-mid { z-index: 2; }
.hero-layer-front { z-index: 4; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(107, 154, 196, 0.08);
    border: 1px solid rgba(107, 154, 196, 0.15);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--brand-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.hero-line { display: block; overflow: hidden; }
.line-inner { display: block; transform: translateY(110%); }
.line-accent { color: var(--brand-light); }

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.3s; }

.btn-primary {
    background: var(--brand);
    color: white;
    box-shadow: 0 4px 20px rgba(61, 90, 128, 0.3);
}

.btn-primary:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(107, 154, 196, 0.35);
}

.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-large { padding: 0.875rem 2rem; font-size: 1rem; }

/* Trust */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.trust-number {
    font-size: 1.375rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.trust-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-divider {
    width: 1px;
    height: 28px;
    background: var(--border-hover);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
}

.hero-mockup {
    max-width: 560px;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}

.hero-glow {
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 80%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(107, 154, 196, 0.15), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

/* 3D Hero Elements */
.hero-geo {
    position: absolute;
    transform-style: preserve-3d;
    opacity: 0;
    transform: scale(0);
}

.geo-shield { top: 12%; right: 8%; width: 100px; height: 130px; }

.shield {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateShield 20s linear infinite;
}

.shield::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107, 154, 196, 0.2), rgba(61, 90, 128, 0.06));
    border: 1.5px solid rgba(107, 154, 196, 0.35);
    clip-path: polygon(50% 0%, 100% 22%, 100% 60%, 50% 100%, 0% 60%, 0% 22%);
}

@keyframes rotateShield {
    from { transform: rotateY(0) rotateX(15deg); }
    to { transform: rotateY(360deg) rotateX(15deg); }
}

.geo-ring { bottom: 25%; left: 6%; width: 130px; height: 130px; }

.ring {
    width: 100%;
    height: 100%;
    border: 1.5px solid rgba(107, 154, 196, 0.3);
    border-radius: 50%;
    animation: rotateRing 15s linear infinite;
    transform-style: preserve-3d;
}

@keyframes rotateRing {
    from { transform: rotateX(70deg) rotateZ(0); }
    to { transform: rotateX(70deg) rotateZ(360deg); }
}

.geo-sphere { bottom: 18%; right: 18%; width: 50px; height: 50px; }

.sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(107, 154, 196, 0.4), rgba(61, 90, 128, 0.1));
    box-shadow: 0 0 40px rgba(107, 154, 196, 0.15);
    animation: floatSphere 8s ease-in-out infinite;
}

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

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(107, 154, 196, 0.12), transparent);
    top: -100px;
    right: -150px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(61, 90, 128, 0.1), transparent);
    bottom: -50px;
    left: -80px;
}

/* Particles */
.floating-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--brand-light);
    border-radius: 50%;
    opacity: 0.4;
}

.p-1 { top: 25%; left: 15%; animation: particleFloat 7s ease-in-out infinite; }
.p-2 { top: 50%; right: 20%; animation: particleFloat 9s ease-in-out infinite; animation-delay: -3s; }
.p-3 { bottom: 30%; left: 35%; animation: particleFloat 6s ease-in-out infinite; animation-delay: -5s; }

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -20px); }
    66% { transform: translate(-10px, 15px); }
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    z-index: 5;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--border-hover);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    position: absolute;
    top: 0;
    left: -1px;
    width: 3px;
    height: 10px;
    background: var(--brand-light);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    50% { top: 30px; opacity: 0.3; }
    100% { top: 0; opacity: 1; }
}

/* Hero Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-mockup { max-width: 400px; }

    .hero-geo { transform: scale(0.6) !important; }
}

@media (max-width: 480px) {
    .hero-geo { display: none; }
    .hero { padding: 6rem 0 3rem; }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(12px);
}

.section-title {
    font-size: clamp(1.875rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

/* ============================================
   SERVICES — FLAT GRID
   ============================================ */
.services {
    position: relative;
    padding: 7rem 0;
    z-index: 1;
    border-top: 1px solid var(--border);
}

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

.service-item {
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: background 0.3s;
    opacity: 0;
    transform: translateY(25px);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.service-icon {
    width: 40px;
    height: 40px;
    color: var(--brand-light);
    margin-bottom: 1.25rem;
}

.service-icon svg { width: 100%; height: 100%; }

.service-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================
   FEATURES — EDITORIAL LIST
   ============================================ */
.features {
    position: relative;
    padding: 7rem 0;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.features-list {}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
}

.feature-item:last-child { border-bottom: none; }

.feature-num {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--brand-light);
    font-family: monospace;
    flex-shrink: 0;
    width: 32px;
    padding-top: 0.125rem;
}

.feature-body h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
}

.feature-body p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

.features-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.features-mockup {
    max-width: 520px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3));
}

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

    .features-visual {
        order: -1;
    }

    .features-mockup {
        max-width: 380px;
    }
}

@media (max-width: 640px) {
    .feature-item { gap: 1.25rem; }
}

/* ============================================
   ABOUT — TWO COLUMN, FLAT STATS
   ============================================ */
.about {
    position: relative;
    padding: 7rem 0;
    z-index: 1;
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(15px);
}

.about-sectors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(15px);
}

.sector-tag {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    transition: border-color 0.3s, color 0.3s;
}

.sector-tag:hover {
    border-color: var(--brand-light);
    color: var(--brand-light);
}

/* Stats — clean, no boxes */
.about-stats {
    display: flex;
    flex-direction: column;
}

.stat {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateX(30px);
}

.stat:last-child { border-bottom: none; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ============================================
   CTA — SIMPLE CENTERED
   ============================================ */
.cta-section {
    position: relative;
    padding: 6rem 0;
    z-index: 1;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-inner {
    text-align: center;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============================================
   CONTACT — TWO COLUMN, FLAT
   ============================================ */
.contact {
    position: relative;
    padding: 7rem 0;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-text {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.7;
    opacity: 0;
    transform: translateY(15px);
}

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

.contact-item {
    display: block;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(15px);
}

.contact-item:last-child { border-bottom: none; }

a.contact-item:hover { transform: translateX(4px); }

.contact-item-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.contact-item-value {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-white);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-light);
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--brand-light); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .services, .features, .about, .contact { padding: 5rem 0; }
    .cta-section { padding: 4rem 0; }
}
