/* ============================================================
   TRON d.o.o. — SGIS Page Stylesheet
   ============================================================ */

/* Variables */
:root {
    --bg: #07080c;
    --bg-elevated: #0d0f15;
    --bg-card: #10121a;
    --bg-card-hover: #151823;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(77,127,255,0.15);
    --cyan: #4d7fff;
    --cyan-dim: rgba(77,127,255,0.08);
    --cyan-glow: rgba(77,127,255,0.25);
    --blue: #264c9e;
    --gradient: linear-gradient(135deg, var(--cyan), var(--blue));
    --gradient-soft: linear-gradient(135deg, rgba(77,127,255,0.12), rgba(38,76,158,0.08));
    --text: #e8eaf0;
    --text-2: #939598;
    --text-3: #5a6077;
    --radius: 14px;
    --radius-lg: 22px;
    --transition: 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; background: var(--bg); }

#bgCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    display: block;
}

body {
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    background: transparent;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Film grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 clamp(1.5rem, 4vw, 3.5rem);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7,8,12,0.88);
    backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 1px 0 var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 44px;
    filter: brightness(1.3);
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

.nav-back:hover {
    color: var(--cyan);
    background: var(--cyan-dim);
}

.nav-back svg {
    width: 16px;
    height: 16px;
}

/* Page hero */
.page-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    background: rgba(77,127,255,0.06);
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    border: 1px solid rgba(77,127,255,0.1);
    border-radius: 20px;
    color: var(--cyan);
    margin: 0 auto 1.5rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.1s forwards;
}

.page-hero-tag {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s forwards;
}

.page-hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeUp 0.6s 0.3s forwards;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--text-2);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.6s 0.4s forwards;
}

/* Layout */
.section { padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 3.5rem); }
.section--alt { background: var(--bg-elevated); }
.container { max-width: 900px; margin: 0 auto; }

.section-tag {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.section-tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Screenshot */
.screenshot-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 2.5rem 0;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.screenshot-wrap::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--gradient);
}

.screenshot-wrap img { width: 100%; }

/* Content */
.content-text {
    color: var(--text-2);
    font-size: 1.02rem;
    line-height: 1.9;
}

.content-text p { margin-bottom: 1.2rem; }

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

.feature {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.feature:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    border: 1px solid rgba(77,127,255,0.1);
    border-radius: 12px;
    color: var(--cyan);
    margin-bottom: 1rem;
}

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

.feature h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    
    margin-bottom: 0.4rem;
}

.feature p { font-size: 0.88rem; color: var(--text-3); line-height: 1.6; }

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: var(--border);
}

.step {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    position: relative;
}

.step-num {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--cyan);
    position: relative;
    z-index: 2;
    transition: all var(--transition);
}

.step:hover .step-num {
    border-color: var(--cyan);
    background: var(--cyan-dim);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.step-content h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    
    margin-bottom: 0.3rem;
}

.step-content p { font-size: 0.92rem; color: var(--text-2); line-height: 1.7; }

/* CTA */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-section h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    
    margin-bottom: 0.8rem;
}

.cta-section p { color: var(--text-2); margin-bottom: 2rem; font-size: 1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2.2rem;
    
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn svg { width: 17px; height: 17px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
    background: var(--gradient);
    color: var(--bg);
    box-shadow: 0 4px 20px rgba(77,127,255,0.15);
}

.btn-primary:hover {
    box-shadow: 0 8px 40px var(--cyan-glow);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem clamp(1.5rem, 4vw, 3.5rem);
    text-align: center;
}

.footer p { font-size: 0.78rem; color: var(--text-3); }

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.reveal.vis { opacity: 1; transform: translateY(0); }

/* Keyframes */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* Language toggle */
.lang-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    opacity: 0.7;
    
    font-size: 1.1rem; line-height: 1;
    
    
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
.lang-toggle:hover {
    border-color: #4d7fff;
    color: #4d7fff;
}
