/* ============================
   Tag Markets x Sonic CopyX juhend
   Manfred Muuga
   ============================ */

:root {
    --gold: #f0c040;
    --gold-bright: #ffd700;
    --gold-dim: #c9a227;
    --gold-soft: rgba(240, 192, 64, 0.12);
    --cyan: #00c8ff;
    --cyan-bright: #4dd9ff;
    --cyan-soft: rgba(0, 200, 255, 0.10);
    --bg: #0a0a0e;
    --bg-soft: #0f0f15;
    --card: #16161e;
    --card-hi: #1c1c26;
    --border: #2a2a36;
    --border-hi: #3a3a48;
    --text: #f3f3ee;
    --text-soft: #c5c5cf;
    --text-dim: #8a8a98;
    --green: #51cf66;
    --red: #ff6b6b;
    --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
    background-color: var(--bg);
    background-image:
        linear-gradient(180deg, rgba(10, 10, 14, 0.35) 0%, rgba(10, 10, 14, 0.65) 50%, rgba(10, 10, 14, 0.88) 100%),
        url('images/background.png');
    background-size: cover, cover;
    background-position: center top, center center;
    background-attachment: fixed, fixed;
    background-repeat: no-repeat, no-repeat;
    color: var(--text);
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: 0.2s var(--ease); }
a:hover { color: var(--gold-bright); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--gold); color: var(--bg); }

/* === Background ambient (subtle cyan accent on top of bg image) === */
.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(0, 200, 255, 0.04), transparent 60%);
}

/* === Sticky top bar === */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-brand {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-brand strong { color: var(--gold); font-weight: 800; }

.topbar-nav {
    display: flex;
    gap: 4px;
}

.topbar-nav a {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    transition: 0.2s var(--ease);
}

.topbar-nav a:hover {
    background: var(--gold-soft);
    color: var(--gold);
}

.topbar-nav a.active {
    background: var(--gold-soft);
    color: var(--gold);
    border: 1px solid rgba(240, 192, 64, 0.35);
}

/* === Floating AiTech CTA === */
.aitech-cta {
    position: fixed;
    bottom: 22px;
    right: 28px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: var(--bg);
    font-family: var(--font);
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(240, 192, 64, 0.32), 0 0 0 1px rgba(240, 192, 64, 0.55);
    transition: 0.2s var(--ease);
}
.aitech-cta:hover {
    transform: translateY(-2px);
    color: var(--bg);
    box-shadow: 0 14px 36px rgba(240, 192, 64, 0.45), 0 0 0 1px rgba(240, 192, 64, 0.7);
}
@media (max-width: 720px) {
    .aitech-cta {
        bottom: 14px;
        right: 14px;
        font-size: 0.78rem;
        padding: 9px 16px;
    }
}

/* === Hero === */
.hero {
    position: relative;
    z-index: 1;
    padding: 90px 24px 60px;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cyan);
    background: var(--cyan-soft);
    border: 1px solid rgba(0, 200, 255, 0.3);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero h1 .gold { color: var(--gold); }

.hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.55;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-bottom: 40px;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-meta-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.hero-meta-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gold);
    color: var(--bg);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 12px 32px rgba(240, 192, 64, 0.25);
    transition: 0.25s var(--ease);
}

.hero-cta:hover {
    transform: translateY(-2px);
    background: var(--gold-bright);
    color: var(--bg);
    box-shadow: 0 16px 40px rgba(240, 192, 64, 0.4);
}

.hero-cta .arrow {
    transition: transform 0.25s var(--ease);
}

.hero-cta:hover .arrow {
    transform: translateY(3px);
}

/* === Part divider === */
.part {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 80px auto 32px;
    padding: 0 24px;
    text-align: center;
}

.part-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.part h2 {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.part-sub {
    color: var(--text-soft);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

.part-line {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 18px auto 0;
    border-radius: 2px;
}

/* === Big outlined phase number (matches English PDF design) === */
.part-num {
    display: block;
    margin: 22px auto 16px;
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 2px var(--gold-dim);
    letter-spacing: -4px;
    text-align: center;
    text-shadow: none;
}

.part-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin: 12px auto 0;
    color: var(--gold);
    font-size: 1.6rem;
}

@media (max-width: 700px) {
    .part-num { font-size: clamp(4rem, 18vw, 6rem); -webkit-text-stroke-width: 1.5px; }
}

/* === Step card === */
.steps {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 28px 24px;
    margin-bottom: 18px;
    position: relative;
    transition: 0.25s var(--ease);
}

.step:hover {
    border-color: var(--border-hi);
}

.step-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.step-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gold);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
    box-shadow: 0 6px 18px rgba(240, 192, 64, 0.25);
}

.step-title {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.25;
    color: var(--text);
    padding-top: 6px;
}

.step-body {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.65;
}

.step-body p {
    margin-bottom: 12px;
}

.step-body p:last-child {
    margin-bottom: 0;
}

.step-body strong {
    color: var(--text);
    font-weight: 700;
}

.step-body code {
    display: inline-block;
    background: var(--bg);
    color: var(--gold);
    border: 1px solid var(--border-hi);
    padding: 2px 10px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.step-shot {
    margin-top: 18px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: zoom-in;
    transition: 0.25s var(--ease);
}

.step-shot:hover {
    border-color: var(--gold-dim);
    transform: scale(1.005);
}

.step-shot img {
    width: 100%;
    display: block;
}

/* === Link card (Step 1 emphasis) === */
.link-card {
    margin-top: 16px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.10), rgba(240, 192, 64, 0.04));
    border: 1px solid rgba(240, 192, 64, 0.35);
    border-radius: 14px;
    text-align: center;
}

.link-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gold);
    color: var(--bg);
    font-weight: 800;
    font-size: 1rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(240, 192, 64, 0.3);
    transition: 0.25s var(--ease);
    margin-bottom: 14px;
}

.link-btn:hover {
    transform: translateY(-2px);
    background: var(--gold-bright);
    color: var(--bg);
    box-shadow: 0 12px 32px rgba(240, 192, 64, 0.45);
}

.link-fallback {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.link-url {
    display: block;
    word-break: break-all;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.78rem;
    color: var(--text-soft);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    line-height: 1.4;
}

.link-card-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.5;
}

.link-card-note strong { color: var(--gold); }

/* === Partner CTA card (substitutes link in partner version) === */
.partner-card {
    margin-top: 16px;
    padding: 22px 24px;
    background: var(--cyan-soft);
    border: 1px solid rgba(0, 200, 255, 0.35);
    border-radius: 14px;
    text-align: center;
}

.partner-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.partner-card p {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.5;
}

.partner-card strong { color: var(--cyan-bright); }

/* === Highlight callouts (Community Token, HASH/GU-ID) === */
.callout {
    margin: 14px 0;
    padding: 16px 20px;
    background: var(--gold-soft);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.55;
}

.callout strong { color: var(--gold); }

.callout.cyan {
    background: var(--cyan-soft);
    border-left-color: var(--cyan);
}

.callout.cyan strong { color: var(--cyan); }

.callout-warn {
    margin: 14px 0;
    padding: 14px 18px;
    background: rgba(255, 107, 107, 0.08);
    border-left: 3px solid var(--red);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.5;
}

.callout-warn strong { color: var(--red); }

/* === Final / done section === */
.done {
    max-width: 820px;
    margin: 60px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.done-card {
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.12), rgba(0, 200, 255, 0.08));
    border: 1px solid rgba(81, 207, 102, 0.35);
    border-radius: 18px;
    padding: 36px 32px;
    text-align: center;
}

.done-emoji {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.done-card h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--green);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.done-card p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.done-shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

.done-shots .step-shot {
    margin-top: 0;
}

/* === Extra resources === */
.extras {
    max-width: 820px;
    margin: 70px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.extras h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.extras-sub {
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 28px;
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.extras-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.25s var(--ease);
    color: var(--text);
}

.extras-card:hover {
    border-color: var(--gold-dim);
    background: var(--card-hi);
    transform: translateY(-2px);
    color: var(--text);
}

.extras-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.extras-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.extras-text strong {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.extras-text span {
    color: var(--text-dim);
    font-size: 0.78rem;
}

/* === Contact card === */
.contact {
    max-width: 820px;
    margin: 50px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 28px;
    text-align: center;
}

.contact-card h3 {
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.contact-card p {
    color: var(--text-soft);
    margin-bottom: 22px;
    line-height: 1.55;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--bg);
    border: 1px solid var(--border-hi);
    border-radius: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 0.92rem;
    transition: 0.2s var(--ease);
}

.contact-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.contact-btn.tg { color: #229ED9; border-color: rgba(34, 158, 217, 0.4); }
.contact-btn.tg:hover { background: rgba(34, 158, 217, 0.1); color: #4dbce4; border-color: #229ED9; }
.contact-btn.wa { color: #25D366; border-color: rgba(37, 211, 102, 0.4); }
.contact-btn.wa:hover { background: rgba(37, 211, 102, 0.1); color: #4ade80; border-color: #25D366; }

/* === Footer === */
.footer {
    max-width: 820px;
    margin: 70px auto 0;
    padding: 30px 24px 40px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.78rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
}

.footer-brand {
    color: var(--gold);
    font-weight: 700;
}

/* === EVK signature mark === */
.signature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 18px auto 0;
    padding: 8px 16px 8px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-soft);
    transition: 0.2s var(--ease);
    text-decoration: none;
}

.signature:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
    background: var(--gold-soft);
}

.signature img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.signature-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
    text-align: left;
}

.signature-text strong {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
}

.signature-text span {
    color: var(--text-dim);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

/* === Topbar EVK mark === */
.topbar-evk {
    display: inline-flex;
    align-items: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    flex-shrink: 0;
}

.topbar-evk img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

@media (max-width: 700px) {
    .topbar-evk { width: 24px; height: 24px; margin-right: 6px; }
    .signature { font-size: 0.72rem; padding: 6px 12px 6px 6px; }
    .signature img { width: 22px; height: 22px; }
}

/* === Lightbox for screenshots === */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
    animation: fadeIn 0.2s var(--ease);
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s var(--ease);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === Reveal on scroll === */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* === Mobile === */
@media (max-width: 700px) {
    .topbar-inner { padding: 10px 16px; }
    .topbar-brand { font-size: 0.85rem; }
    .topbar-nav a { padding: 5px 8px; font-size: 0.75rem; }

    .hero { padding: 60px 20px 50px; }
    .hero-meta { gap: 18px; }
    .hero-meta-num { font-size: 1.4rem; }
    .hero-meta-label { font-size: 0.65rem; letter-spacing: 1.5px; }
    .hero-cta { padding: 14px 24px; font-size: 0.92rem; }

    .part { margin: 60px auto 24px; padding: 0 20px; }

    .steps { padding: 0 12px; }
    .step { padding: 22px 20px 20px; border-radius: 14px; }
    .step-head { gap: 14px; }
    .step-num { width: 42px; height: 42px; font-size: 1.05rem; border-radius: 10px; }
    .step-title { padding-top: 4px; }
    .step-body { font-size: 0.95rem; }

    .link-card { padding: 18px 16px; }
    .link-btn { padding: 13px 22px; font-size: 0.92rem; }
    .link-url { font-size: 0.7rem; }

    .done { margin-top: 50px; }
    .done-card { padding: 28px 22px; border-radius: 16px; }
    .done-shots { grid-template-columns: 1fr; }

    .extras { margin-top: 50px; }
    .extras-grid { grid-template-columns: 1fr; }

    .contact { margin-top: 40px; }
    .contact-card { padding: 26px 20px; }
    .contact-buttons { flex-direction: column; }
    .contact-btn { justify-content: center; }
}
