/*
Main style file
Created by Webrazvoj
*/

:root {
    --theme-color: #004ffc;
    --theme-color2: #6c33ff;
    --theme-light: #6e9bff;
    --page: #0d141d;
    --surface: #131d2b;
    --surface2: #0f1826;
    --chip: rgba(0, 79, 252, 0.14);
    --white-color: #fff;
    --title-color: #ffffff;
    --body-color: #9aa6b6;
    --bg-color: #0a121b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color3: rgba(0, 79, 252, 0.35);
    --icon-color: #6c33ff26;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-blue: 0 16px 40px rgba(0, 79, 252, 0.35);
    --radius: 18px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--body-color);
    background: var(--page);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    color: var(--title-color);
    line-height: 1.2;
    font-weight: 800;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 6rem 0;
}

/* ==========================================
    BUTTONS
========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--theme-color);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(0, 79, 252, 0.38);
}

.btn-ghost {
    background: var(--surface);
    color: var(--title-color);
    border-color: var(--border-color3);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    transform: translateY(-3px);
    border: 1px solid var(--border-color3);
    color: var(--theme-light);
}

/* ==========================================
    BADGES & PILLS
========================================== */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--chip);
    color: var(--theme-light);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color3);
}

.pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theme-color);
    animation: pulse 1.8s infinite;
}

/* ==========================================
    HEADER
========================================== */

header.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 20, 29, 0.8);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.nav-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    color: var(--title-color);
    font-size: 1.15rem;
    max-height: 50px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.nav-links {
    display: none;
    gap: 2rem;
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-links a {
    color: var(--white-color);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--theme-color);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Na mobilnoj prikazujemo samo hamburger; gumbi idu u izbornik. */
.nav-cta .nav-login,
.nav-cta .btn-primary {
    display: none;
}

.nav-login {
    color: var(--title-color);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 0.75rem;
}

.nav-login:hover {
    color: var(--theme-color);
}

/* Hamburger (mobile) */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--title-color);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: rgba(13, 20, 29, 0.98);
}

.mobile-menu.is-open {
    display: flex;
}

.mobile-menu a {
    color: var(--white-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu .btn-primary {
    margin-top: 0.75rem;
    width: 100%;
    color: #fff;
}

.mobile-menu__login {
    color: var(--theme-light) !important;
}

/* ==========================================
    HERO
========================================== */

.hero {
    position: relative;
    background: linear-gradient(180deg, var(--surface2) 0%, var(--page) 100%);
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 0;
}

.hero::before {
    width: 460px;
    height: 460px;
    background: rgba(0, 79, 252, 0.16);
    top: -160px;
    right: -120px;
    animation: float 9s ease-in-out infinite;
}

.hero::after {
    width: 380px;
    height: 380px;
    background: rgba(108, 51, 255, 0.14);
    bottom: -160px;
    left: -120px;
    animation: float 11s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    letter-spacing: -0.02em;
    margin: 1.25rem 0;
}

.hero h1 .accent {
    background: var(--theme-color);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.lead {
    font-size: 1.12rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 1.25rem;
}

.hero-note {
    font-size: 0.88rem;
    color: var(--body-color);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stats .stat strong {
    display: block;
    font-size: 1.6rem;
    color: var(--title-color);
}

.hero-stats .stat span {
    font-size: 0.85rem;
}

/* ==========================================
    DEVICE MOCKUP
========================================== */

.device-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone {
    position: relative;
    z-index: 2;
    width: 290px;
    height: 590px;
    background: #0d141d;
    border-radius: 42px;
    padding: 12px;
    box-shadow: var(--shadow-md);
    animation: floatY 6s ease-in-out infinite;
    border: 1px solid var(--border-color);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f5f8ff;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 22px;
    background: #0d141d;
    border-radius: 0 0 14px 14px;
    z-index: 3;
}

.app-top {
    background: linear-gradient(120deg, var(--theme-color), var(--theme-color2));
    padding: 2.4rem 1.1rem 1.4rem;
    color: #fff;
}

.app-top .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
}

.app-top h4 {
    color: #fff;
    font-size: 0.95rem;
}

.app-top .sub {
    font-size: 0.72rem;
    opacity: 0.85;
}

.app-stats {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.app-stats .s {
    flex: 1;
    background: rgba(255,255,255,0.16);
    border-radius: 12px;
    padding: 0.55rem 0.6rem;
}

.app-stats .s b {
    display: block;
    font-size: 1rem;
}

.app-stats .s span {
    font-size: 0.62rem;
    opacity: 0.85;
}

.app-body {
    padding: 1rem 1.1rem;
}

.app-body .lbl {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bg-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.q-row {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 2px 8px rgba(2,27,66,0.04);
}

.q-row .t {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.q-row .num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bg-color);
}

.q-row .amt {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--title-color);
}

.q-row .cli {
    font-size: 0.68rem;
    color: var(--body-color);
    margin-top: 2px;
}

.tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.tag.ok {
    background: #dcfce7;
    color: #15803d;
}

.tag.sent {
    background: #dbeafe;
    color: #1d4ed8;
}

.tag.draft {
    background: #f1f5f9;
    color: #64748b;
}

.app-fab {
    margin-top: 0.4rem;
    background: var(--theme-color);
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.7rem;
    border-radius: 12px;
}

/* ==========================================
    FLOATING CARDS
========================================== */

.float-card {
    position: absolute;
    z-index: 3;
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--title-color);
}

.float-card .ic {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.float-1 {
    top: 60px;
    left: -10px;
    animation: floatY 5s ease-in-out infinite;
}

.float-2 {
    bottom: 90px;
    right: -20px;
    animation: floatY 7s ease-in-out infinite;
}

/* ==========================================
    SECTION HEADERS
========================================== */

.head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.head h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    margin: 0.8rem 0;
    letter-spacing: -0.01em;
}

.head p {
    font-size: 1.05rem;
}

/* ==========================================
    SHOWCASE & DASHBOARD
========================================== */

.showcase {
    background: var(--bg-color);
}

.browser {
    max-width: 940px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f7f9fe;
    border-bottom: 1px solid var(--border-color);
}

.browser-bar .d {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.browser-url {
    margin-left: 0.75rem;
    flex: 1;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--body-color);
    padding: 0.3rem 0.9rem;
}

.dash {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 380px;
}

.dash-side {
    background: #0d141d;
    padding: 1.1rem 0.9rem;
}

.dash-side .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.4rem;
}

.dash-side .brand .m {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
}

.dash-side .nav-i {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #9aa6b6;
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.dash-side .nav-i .ic {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: #2a3543;
}

.dash-side .nav-i.active {
    background: rgba(0,79,252,0.18);
    color: #fff;
}

.dash-side .nav-i.active .ic {
    background: var(--theme-color);
}

.dash-main {
    padding: 1.4rem;
    background: #f7f9fe;
}

.dash-main .stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.dash-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem;
}

.dash-card span {
    font-size: 0.68rem;
    color: var(--body-color);
}

.dash-card b {
    display: block;
    font-size: 1.3rem;
    color: var(--title-color);
    margin-top: 0.2rem;
}

.dash-card b.blue {
    color: var(--theme-color);
}

.dash-card b.green {
    color: #15803d;
}

.dash-table {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.dash-table .tr {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.9fr 0.8fr;
    padding: 0.7rem 1rem;
    font-size: 0.74rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.dash-table .tr.h {
    background: #f1f5fb;
    font-weight: 700;
    color: var(--title-color);
}

.dash-table .tr.h span {
    color: var(--bg-color);
}

.dash-table .tr:last-child {
    border-bottom: none;
}

.dash-table .tr .r {
    text-align: right;
}

/* ==========================================
    FEATURES
========================================== */

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card .ic-box {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    background: var(--icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
}

/* ==========================================
    STEPS
========================================== */

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 0 1rem;
}

.step .n {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: var(--shadow-blue);
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/* ==========================================
    SAMPLE PDF
========================================== */

.pdf-section {
    background: var(--bg-color);
}

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

.pdf-image-wrap {
    display: block;
    max-width: 460px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transform: rotate(-1.2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pdf-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.pdf-image-wrap:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pdf-paper .ph {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--title-color);
    padding-bottom: 0.7rem;
    margin-bottom: 0.8rem;
}

.pdf-paper .ph .co {
    font-weight: 700;
    color: var(--title-color);
}

.pdf-paper .ph .ti {
    text-align: right;
}

.pdf-paper .ph .ti b {
    font-size: 0.95rem;
    color: var(--title-color);
}

.pdf-paper .cli {
    margin-bottom: 0.8rem;
}

.pdf-paper .cli b {
    color: var(--title-color);
}

.pdf-paper table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.8rem;
}

.pdf-paper th {
    background: #f4f6fa;
    text-align: left;
    padding: 0.35rem 0.45rem;
    font-size: 0.62rem;
    border: 1px solid #e3e8f0;
}

.pdf-paper td {
    padding: 0.35rem 0.45rem;
    font-size: 0.64rem;
    border: 1px solid #e3e8f0;
}

.pdf-paper .tot {
    text-align: right;
}

.pdf-paper .tot .g {
    font-weight: 800;
    color: var(--title-color);
    font-size: 0.82rem;
    border-top: 2px solid #333;
    padding-top: 0.3rem;
    display: inline-block;
    margin-top: 0.2rem;
}

.pdf-list {
    list-style: none;
    margin: 1.5rem 0;
}

.pdf-list li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    margin-bottom: 0.9rem;
    font-size: 0.98rem;
}

.pdf-list .ck {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--chip);
    color: var(--theme-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

/* ==========================================
    PRICING
========================================== */

.pricing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 820px;
    margin: 0 auto;
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
}

.price-card.feat {
    border: 2px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--theme-color), var(--theme-color2)) border-box;
    position: relative;
    box-shadow: var(--shadow-md);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 999px;
}

.price-card h3 {
    font-size: 1.2rem;
}

.price-amt {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--title-color);
    margin: 0.6rem 0 0.2rem;
}

.price-per {
    font-size: 0.85rem;
    color: var(--body-color);
    margin-bottom: 1.4rem;
}

.price-feats {
    list-style: none;
    margin: 1.2rem 0 1.8rem;
}

.price-feats li {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.7rem;
    font-size: 0.94rem;
}

.price-feats li::before {
    content: '✓';
    color: var(--theme-color);
    font-weight: 800;
}

.price-card .btn {
    width: 100%;
}

/* ==========================================
    TRUST
========================================== */

.trust {
    background: linear-gradient(135deg, var(--surface2), var(--surface));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    color: #cdd6e4;
}

.trust h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.trust p {
    max-width: 760px;
    margin: 0 auto;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.trust-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
}

/* ==========================================
    FAQ
========================================== */

.faq {
    max-width: 760px;
    margin: 0 auto;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 0.9rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    font-weight: 600;
    color: var(--title-color);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq .tog {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--chip);
    color: var(--theme-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.faq details[open] .tog {
    transform: rotate(45deg);
}

.faq details p {
    padding: 0 1.4rem 1.3rem;
    font-size: 0.95rem;
}

/* ==========================================
    CTA BAND
========================================== */

.cta-band {
    background: var(--theme-color);
    border-radius: 26px;
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-blue);
    position: relative;
    overflow: hidden;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 0.8rem;
}

.cta-band p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.cta-band .btn-white {
    background: #fff;
    color: var(--theme-color);
}

.cta-band .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}

/* ==========================================
    FOOTER
========================================== */

footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.foot-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.foot-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.foot-links a:hover {
    color: var(--theme-color);
}

footer .cr {
    font-size: 0.82rem;
}

/* ==========================================
    LEGAL PAGES
========================================== */

.legal {
    padding-top: 3.5rem;
}

.legal-wrap {
    max-width: 820px;
}

.legal-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin: 1rem 0 0.6rem;
    letter-spacing: -0.01em;
}

.legal-lead {
    font-size: 1.08rem;
    color: var(--body-color);
    margin-bottom: 0.4rem;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--body-color);
    opacity: 0.75;
    margin-bottom: 2.5rem;
}

.legal-content article {
    margin-bottom: 2.2rem;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
    padding-top: 0.4rem;
}

.legal-content h3 {
    font-size: 1rem;
    color: var(--title-color);
    margin: 1rem 0 0.4rem;
}

.legal-content p {
    margin-bottom: 0.8rem;
}

.legal-content ul {
    list-style: none;
    margin: 0 0 0.8rem;
}

.legal-content li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.55rem;
}

.legal-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--theme-color);
}

.legal-content a {
    color: var(--theme-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content strong {
    color: var(--title-color);
}

/* ==========================================
    COOKIE BANNER (GDPR)
========================================== */

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 200;
    background: var(--surface);
    border: 1px solid var(--border-color3);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.1rem 1.3rem;
    max-width: 720px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease-out;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__content {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: flex-start;
}

.cookie-banner__text {
    font-size: 0.88rem;
    color: var(--body-color);
    margin: 0;
    line-height: 1.55;
}

.cookie-banner__text a {
    color: var(--theme-light);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
    width: 100%;
}

.cookie-banner__actions .btn {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

@media (min-width: 640px) {
    .cookie-banner__content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.4rem;
    }

    .cookie-banner__actions {
        width: auto;
    }

    .cookie-banner__actions .btn {
        flex: none;
    }
}

/* ==========================================
    ANIMATIONS
========================================== */

@keyframes float {
    0%,100% {
        transform: translate(0,0);
    }
    50% {
        transform: translate(0,-26px);
    }
}

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

@keyframes pulse {
    0%,100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
}

.reveal.in {
    animation: fadeInUp 0.7s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    .hero::before, .hero::after, .phone, .float-card, .pill .dot {
        animation: none !important;
    }
    .reveal {
        opacity: 1;
    }
}

/* ==========================================
    RESPONSIVE
========================================== */
@media (max-width: 600px) {
    .float-1 {
        top: 24px;
        left: 4px;
        font-size: 0.72rem;
        padding: 0.55rem 0.7rem;
    }
    .float-2 {
        bottom: 70px;
        right: 4px;
        font-size: 0.72rem;
        padding: 0.55rem 0.7rem;
    }
}

@media (max-width: 520px) {
    .nav-login {
        display: none;
    }
}

@media (max-width: 640px) {
    .dash {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .dash-side {
        display: none;
    }

    .dash-main {
        padding: 1rem;
    }

    .dash-main .stat-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .dash-card {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.75rem 0.9rem;
    }

    .dash-card b {
        margin-top: 0;
        font-size: 1.15rem;
    }

    .dash-table .tr {
        grid-template-columns: 1fr auto auto;
        gap: 0.6rem;
        padding: 0.65rem 0.8rem;
        font-size: 0.74rem;
    }

    /* Sakrij stupac "Klijent" da broj, status i iznos stanu bez lomljenja. */
    .dash-table .tr > :nth-child(2) {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }
}

@media(max-width: 960px) {
    nav.foot-links {
        flex-direction: column;
        gap: 5px;
    }
}

@media (min-width: 640px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 760px) {
    .pricing {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 820px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    .nav-cta .nav-login {
        display: inline-block;
    }

    .nav-cta .btn-primary {
        display: inline-flex;
    }

    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 2rem;
    }

    .pdf-grid {
        grid-template-columns: 0.95fr 1.05fr;
    }
}

@media (min-width: 980px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
