/* ═══════════════════════════════════════════════════════════════
   Simplify.si – Main Stylesheet
   ═══════════════════════════════════════════════════════════════ */

:root {
    --brand-dark:    #0f172a;
    --brand-darker:  #080e1a;
    --brand-navy:    #1e293b;
    --brand-accent:  #3b82f6;
    --brand-accent2: #06b6d4;
    --brand-green:   #10b981;
    --brand-purple:  #8b5cf6;
    --brand-orange:  #f59e0b;
    --brand-red:     #ef4444;
    --brand-glow:    rgba(59,130,246,0.25);
    --text-primary:  #f1f5f9;
    --text-secondary:#94a3b8;
    --text-muted:    #64748b;
    --card-bg:       rgba(30,41,59,0.60);
    --card-border:   rgba(59,130,246,0.15);
    --glass:         rgba(15,23,42,0.75);
    --radius:        16px;
    --radius-sm:     10px;
    --transition:    .3s cubic-bezier(.4,0,.2,1);
}

/* ─── FONTS (self-hosted Inter variable) ───────────────────── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── SVG ICONS (sprite in assets/img/icons.svg) ──────────── */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    flex-shrink: 0;
}
.icon-spin { animation: iconSpin 1s linear infinite; }
@keyframes iconSpin { to { transform: rotate(360deg); } }

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', 'Source Sans 3', system-ui, -apple-system, sans-serif;
    background: var(--brand-darker);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-accent2); }

img { max-width: 100%; height: auto; }

/* ─── UTILITY ──────────────────────────────────────────────── */
.accent  { color: var(--brand-accent); }
.accent2 { color: var(--brand-accent2); }
.accent-green { color: var(--brand-green); }

.gradient-text {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── ANIMATED BACKGROUND ──────────────────────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ─── NAVBAR ───────────────────────────────────────────────── */
#main-navbar {
    background: transparent;
    backdrop-filter: blur(0);
    transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
    padding: 1rem 0;
    z-index: 1050;
}
#main-navbar.scrolled {
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: 0 1px 30px rgba(0,0,0,0.35);
    padding: .6rem 0;
}
#main-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0;
}

/* Pixel-logo text (Consolas) */
.brand-block {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-logo {
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: transparent;
    color: #fff;
    padding: 0;
    line-height: 1;
}
.brand-sub {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .62rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: .06em;
    text-transform: lowercase;
    margin-top: .2rem;
}

/* Footer reuses the same logo */
.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: .5rem;
}
.footer-brand .brand-logo {
    font-size: 1.1rem;
}
#main-navbar .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: .92rem;
    padding: .5rem 1rem !important;
    border-radius: 8px;
    transition: all var(--transition);
}
#main-navbar .nav-link:hover,
#main-navbar .nav-link:focus {
    color: var(--text-primary);
    background: rgba(59,130,246,0.08);
}
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.15);
    padding: .4rem .65rem;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(241,245,249,0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ─── HERO ─────────────────────────────────────────────────── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1rem 5rem;
    overflow: hidden;
}
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59,130,246,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 100%, rgba(6,182,212,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.25);
    color: var(--brand-accent);
    padding: .4rem 1.2rem;
    border-radius: 100px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: .03em;
}
.hero-badge i { font-size: .7rem; }

#hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
#hero .lead {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--brand-accent), #2563eb);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: .85rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 25px var(--brand-glow);
}
.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(59,130,246,0.4);
    color: #fff;
}

.btn-outline-light-custom {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: .85rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all var(--transition);
}
.btn-outline-light-custom:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

/* ─── SECTIONS ─────────────────────────────────────────────── */
section {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
}
section:nth-child(even) {
    background: rgba(15,23,42,0.4);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--brand-accent);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .75rem;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
}
.section-subtitle.centered { margin: 0 auto; }

/* ─── SERVICE CARDS ────────────────────────────────────────── */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent2));
    opacity: 0;
    transition: opacity var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59,130,246,0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: #fff;
}
.icon-blue    { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.icon-cyan    { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.icon-green   { background: linear-gradient(135deg, #10b981, #059669); }
.icon-purple  { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.icon-orange  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-red     { background: linear-gradient(135deg, #ef4444, #dc2626); }

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .75rem;
}
.service-card p {
    color: var(--text-secondary);
    font-size: .95rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.tag-list li {
    background: rgba(59,130,246,0.08);
    color: var(--brand-accent);
    font-size: .78rem;
    font-weight: 600;
    padding: .25rem .7rem;
    border-radius: 6px;
    border: 1px solid rgba(59,130,246,0.12);
}

/* ─── SAURON FEATURE SECTION ──────────────────────────────── */
.sauron-showcase {
    background: linear-gradient(135deg, rgba(30,41,59,0.85), rgba(15,23,42,0.95));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.sauron-showcase::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.sauron-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.sauron-stat {
    text-align: center;
}
.sauron-stat .num {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sauron-stat .label {
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: .15rem;
}
.sauron-product-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}
@media (max-width: 575px) {
    .sauron-product-cards { grid-template-columns: 1fr; }
}
.sauron-product {
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(59,130,246,0.12);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    transition: all var(--transition);
}
.sauron-product:hover {
    border-color: rgba(59,130,246,0.35);
    transform: translateY(-3px);
}
.sauron-product h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.sauron-product .badge-tier {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .2rem .7rem;
    border-radius: 6px;
    margin-bottom: .75rem;
}
.badge-standard {
    background: rgba(16,185,129,0.12);
    color: var(--brand-green);
    border: 1px solid rgba(16,185,129,0.25);
}
.badge-pro {
    background: rgba(139,92,246,0.12);
    color: var(--brand-purple);
    border: 1px solid rgba(139,92,246,0.25);
}
.sauron-product ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sauron-product ul li {
    font-size: .88rem;
    color: var(--text-secondary);
    padding: .2rem 0;
    display: flex;
    align-items: baseline;
    gap: .5rem;
}
.sauron-product ul li::before {
    content: '✓';
    color: var(--brand-green);
    font-weight: 700;
    font-size: .8rem;
}

/* ─── PLATFORM FEATURES ────────────────────────────────────── */
.platform-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.platform-feature:hover {
    background: rgba(59,130,246,0.04);
}
.platform-feature .pf-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: rgba(59,130,246,0.1);
    color: var(--brand-accent);
    border: 1px solid rgba(59,130,246,0.15);
}
.platform-feature h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .3rem;
}
.platform-feature p {
    font-size: .9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ─── TECH STACK BAR ───────────────────────────────────────── */
.tech-bar {
    background: var(--brand-dark);
    border-top: 1px solid rgba(59,130,246,0.08);
    border-bottom: 1px solid rgba(59,130,246,0.08);
    padding: 3rem 0;
    z-index: 1;
    position: relative;
}
.tech-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}
.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 600;
    transition: color var(--transition);
}
.tech-icon:hover { color: var(--text-secondary); }
.tech-icon i {
    font-size: 1.8rem;
    transition: color var(--transition);
}
.tech-icon:hover i { color: var(--brand-accent); }

/* ─── PROCESS / HOW WE WORK ───────────────────────────────── */
.process-step {
    text-align: center;
    padding: 1.5rem 1rem;
}
.process-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent2));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.process-step h5 {
    font-weight: 700;
    margin-bottom: .5rem;
}
.process-step p {
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.6;
}

/* ─── CONTACT SECTION ──────────────────────────────────────── */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2.5rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.contact-info-item .cii-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.15);
    color: var(--brand-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.contact-info-item strong {
    display: block;
    font-size: .95rem;
    margin-bottom: .15rem;
}
.contact-info-item span,
.contact-info-item a {
    font-size: .9rem;
    color: var(--text-secondary);
}
.contact-info-item a:hover { color: var(--brand-accent); }

/* ─── FORM ─────────────────────────────────────────────────── */
.form-control,
.form-select {
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    font-size: .95rem;
    transition: all var(--transition);
}
.form-control:focus,
.form-select:focus {
    background: rgba(15,23,42,0.7);
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px var(--brand-glow);
    color: var(--text-primary);
    outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: .4rem;
}
.captcha-input { width: 100px; }

/* Honeypot: visually removed, still in the DOM for bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Form result alerts */
.alert-ok,
.alert-err {
    border: 1px solid;
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .92rem;
}
.alert-ok {
    background: rgba(16,185,129,0.12);
    border-color: rgba(16,185,129,0.3);
    color: #6ee7b7;
}
.alert-err {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.3);
    color: #fca5a5;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
#footer {
    background: var(--brand-darker);
    border-top: 1px solid rgba(59,130,246,0.08);
    padding: 3rem 0 2rem;
    z-index: 1;
    position: relative;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
    color: var(--text-muted);
    font-size: .9rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: .82rem;
}

/* ─── BACK TO TOP ──────────────────────────────────────────── */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--brand-accent);
    color: #fff;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 1040;
    box-shadow: 0 4px 20px var(--brand-glow);
}
#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
}
#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(59,130,246,0.4);
}

/* ─── FADE-UP ANIMATION ────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── HERO PARTICLES ───────────────────────────────────────── */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.hero-particles .particle {
    position: absolute;
    border-radius: 50%;
    background: var(--brand-accent);
    opacity: 0;
    animation: floatParticle linear infinite;
}
@keyframes floatParticle {
    0%   { opacity: 0; transform: translateY(0) scale(0); }
    10%  { opacity: .25; }
    90%  { opacity: .08; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

/* ─── ACTIVE NAV LINK ──────────────────────────────────────── */
#main-navbar .nav-link.active {
    color: var(--brand-accent);
    background: rgba(59,130,246,0.1);
}

/* ─── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-up { opacity: 1; transform: none; transition: none; }
    .hero-particles { display: none; }
    .service-card:hover,
    .sauron-product:hover,
    .btn-primary-glow:hover,
    #backToTop:hover { transform: none; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--glass);
        backdrop-filter: blur(18px);
        border-radius: var(--radius);
        padding: 1rem;
        margin-top: .75rem;
    }
    .sauron-showcase { padding: 2rem 1.5rem; }
}
@media (max-width: 767px) {
    section { padding: 4rem 0; }
    .sauron-stats { gap: 1.5rem; }
    .contact-card { padding: 1.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
}
