:root {
    --bg: #faf8ff;
    --card: #ffffff;
    --accent: #d0a800;
    --royal-purple: #6a1b9a;
    --muted: #4a4458;
    --peace-blue: #1976d2;
    --love-red: #d32f2f;
    --unity-green: #388e3c;
    --truth-gold: #ffb300;
    --glass: rgba(11,10,16,0.04);
    --maxw: 1400px;
    --radius: 16px;
    --gap: 24px;
    --shadow: 0 10px 30px rgba(11,10,16,0.09);
    --glow: 0 0 20px rgba(208,168,0,0.16);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', system-ui, Arial, sans-serif;
    color: #333;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body { overflow-x: hidden; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 32px; }

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.90));
    border-bottom: 1px solid rgba(11,10,16,0.06);
    z-index: 50;
    transition: background .3s ease;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

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

.logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--glow);
    transition: transform .3s ease;
}

.logo:hover { transform: scale(1.05); }

.brand-text h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 1.2px;
    color: var(--accent);
    text-shadow: var(--glow);
}

.sub { margin: 0; font-size: 14px; color: var(--muted); }

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

.nav-link {
    color: rgba(11,10,16,0.88);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background .2s ease, color .2s ease;
}

.nav-link:hover { background: rgba(11,10,16,0.06); color: #000; }

.cta {
    background: linear-gradient(90deg, var(--accent), var(--royal-purple));
    color: #0b0710;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--glow);
    transition: transform .2s ease;
}

.cta:hover { transform: translateY(-2px); }

.lang {
    background: transparent;
    border: 1px solid rgba(11,10,16,0.08);
    color: var(--muted);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s ease;
}

.lang:hover { background: rgba(11,10,16,0.04); }

.hero {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-text { max-width: 55%; }

.hero-text h2 {
    font-size: 42px;
    margin: 0;
    background: linear-gradient(90deg, var(--truth-gold), var(--royal-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--glow);
}

.hero-text p {
    color: rgba(11,10,16,0.92);
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.6;
}

.hero-actions { margin-top: 24px; display: flex; gap: 16px; }

.btn {
    display: inline-block;
    padding: 14px 20px;
    border-radius: 14px;
    text-decoration: none;
    background: linear-gradient(90deg, var(--accent), var(--royal-purple));
    color: #0b0710;
    font-weight: 700;
    box-shadow: var(--glow);
    transition: transform .2s ease;
}

.btn:hover { transform: translateY(-3px); }

.ghost {
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid rgba(11,10,16,0.12);
    color: var(--muted);
    text-decoration: none;
    transition: border-color .2s ease;
}

.ghost:hover { border-color: rgba(11,10,16,0.24); }

.royal-crest {
    width: 280px;
    height: 280px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(11,10,16,0.03), rgba(11,10,16,0.01));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(0deg);
    transition: transform .4s ease;
    animation: subtleRotate 20s linear infinite;
}

.royal-crest:hover { transform: perspective(1000px) rotateY(10deg); }

.crest-svg { width: 220px; height: 220px; filter: drop-shadow(0 0 10px rgba(208,168,0,0.24)); }

.hero-bg-animation {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(106,27,154,0.08) 0%, transparent 50%);
    animation: softPulse 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes subtleRotate { 0% { transform: perspective(1000px) rotateY(0deg); } 100% { transform: perspective(1000px) rotateY(360deg); } }
@keyframes softPulse { 0%, 100% { opacity: .3; transform: scale(1); } 50% { opacity: .6; transform: scale(1.05); } }

.controls-section, .features-section, .contact-section {
    margin-top: 48px;
    background: linear-gradient(180deg, rgba(11,10,16,0.02), transparent);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.controls-section::before, .features-section::before, .contact-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: softLineMove 10s linear infinite;
}

@keyframes softLineMove { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--truth-gold);
    text-shadow: var(--glow);
}

p { color: rgba(11,10,16,0.88); font-size: 16px; line-height: 1.6; }

.controls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.control-item {
    background: var(--glass);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: transform .3s ease;
}

.control-item:hover { transform: translateY(-5px); }

.control-item label { font-weight: 600; color: var(--truth-gold); display: block; margin-bottom: 8px; }

.control-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.manage-actions { margin-top: 24px; display: flex; gap: 16px; justify-content: center; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.feature-card {
    background: var(--glass);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(11,10,16,0.12); }

.feature-card h4 { margin: 0 0 12px; color: var(--truth-gold); }

.feature-card p { margin-bottom: 12px; }

.details-btn {
    background: transparent;
    border: 1px solid rgba(11,10,16,0.12);
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease;
}

.details-btn:hover { background: rgba(11,10,16,0.06); }

.feature-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: rgba(11,10,16,0.04);
    padding: 0 16px;
    margin-top: 12px;
    border-radius: 8px;
}

.feature-details[aria-hidden="false"] { padding: 16px; max-height: 500px; }

.feature-card.sweep::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,217,102,0.2), transparent);
    animation: sweep 1.5s ease-in-out;
}

@keyframes sweep { 0% { left: -100%; } 100% { left: 100%; } }

.contact-form { display: flex; flex-direction: column; gap: 12px; max-width: 600px; margin: 0 auto; }

.contact-form input, .contact-form textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(11,10,16,0.12);
    background: rgba(255,255,255,0.96);
    color: #333;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(208,168,0,0.12);
}

.contact-form button { align-self: flex-start; }

.cta-footer {
    margin-top: 48px;
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(106,27,154,0.04), rgba(208,168,0,0.03));
    text-align: center;
}

.cta-inner { max-width: 800px; margin: 0 auto; }

.site-footer {
    padding: 24px 0;
    border-top: 1px solid rgba(11,10,16,0.06);
    margin-top: 64px;
}

.footer-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: rgba(11,10,16,0.76); 
    font-size: 14px; 
}

.foot-links { display: flex; gap: 16px; }

.foot-links a { 
    color: inherit; 
    text-decoration: none; 
    transition: color .2s ease; 
}

.foot-links a:hover { color: #000; }

.loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,248,255,0.98));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .5s ease;
}

.loader-ring {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(11,10,16,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-ring-inner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(11,10,16,0.1);
    border-top-color: var(--royal-purple);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
    margin: 10px;
}

.loader-text { 
    color: var(--muted); 
    margin-top: 20px; 
    font-size: 16px; 
    animation: fadeText 2s ease-in-out infinite; 
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeText { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

@media (min-width: 1200px) {
    .container { max-width: 100%; padding: 40px 80px; }
    .hero { padding: 100px 0; }
    .hero-inner { gap: 80px; }
    .hero-text h2 { font-size: 52px; }
    .hero-text p { font-size: 20px; }
    .royal-crest { width: 340px; height: 340px; }
    .crest-svg { width: 280px; height: 280px; }
    .controls-section, .features-section, .contact-section { padding: 48px 60px; }
    .cta-footer { padding: 48px; }
    .site-footer { padding: 32px 0; }
}

@media (max-width: 1199px) and (min-width: 901px) { .container { padding: 32px 48px; } }

@media (max-width: 900px) {
    .container { padding: 24px 16px; }
    .hero { padding: 60px 0; }
    .hero-inner { flex-direction: column; text-align: center; gap: 32px; }
    .hero-text { max-width: 100%; }
    .hero-text h2 { font-size: 36px; }
    .hero-text p { font-size: 17px; }
    .royal-crest { width: 240px; height: 240px; }
    .crest-svg { width: 190px; height: 190px; }
    .controls-section, .features-section, .contact-section { padding: 24px; margin-top: 32px; }
    .controls-grid, .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .nav { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .header-inner { flex-direction: column; gap: 16px; }
    .brand-text h1 { font-size: 22px; }
    .sub { font-size: 13px; }
    .cta-footer { padding: 24px; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 16px 12px; }
    .hero { padding: 48px 0; }
    .hero-text h2 { font-size: 30px; }
    .hero-text p { font-size: 16px; }
    .royal-crest { width: 200px; height: 200px; }
    .crest-svg { width: 160px; height: 160px; }
    .btn, .ghost { padding: 12px 16px; font-size: 15px; }
    .controls-section, .features-section, .contact-section { padding: 20px; }
    .control-item, .feature-card { padding: 16px; }
    .contact-form input, .contact-form textarea { padding: 10px; }
    .nav-link, .cta, .lang { padding: 8px 10px; font-size: 14px; }
    .brand { gap: 12px; }
    .logo { width: 48px; height: 48px; }
    .brand-text h1 { font-size: 20px; }
}

input, textarea, select, button { font-size: 16px !important; }

html { -webkit-text-size-adjust: 100%; }

@media (hover: none) and (pointer: coarse) {
    .nav-link:hover, .btn:hover, .ghost:hover, 
    .control-item:hover, .feature-card:hover,
    .royal-crest:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .royal-crest, .hero-bg-animation, .crest-svg, 
    .loader-ring, .loader-ring-inner, 
    .feature-card.sweep::before, 
    .controls-section::before, .features-section::before, .contact-section::before { 
        animation: none !important; 
    }
    * { transition: none !important; }
}
