/* ==============================================
   NetVet — Promotional Homepage Stylesheet
   Color palette derived from the application UI
   ============================================== */

:root {
    /* Text */
    --color-text: #003150;
    --color-text-heading: #004b7a;

    /* Primary blues */
    --color-primary: #00619f;
    --color-primary-dark: #00609c;
    --color-link: #027ac6;
    --color-header-start: #0073ba;
    --color-header-end: #5ab5ee;
    --color-sidebar-heading: #0174bb;

    /* Backgrounds */
    --color-bg-accent: #d3e7f5;
    --color-bg-light: #d8e8f5;
    --color-bg-content: #f9fafb;
    --color-bg-sidebar: #dfedf7;

    /* Borders */
    --color-border: #7f98a7;
    --color-border-sidebar: #90c2e1;
    --color-border-accent: #a6c8dd;

    /* Status */
    --color-error: #ac0000;
    --color-success: #02910d;
    --color-highlight: #ffcc66;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Verdana, Helvetica, sans-serif;
    color: var(--color-text);
    background: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

h2 {
    font-size: 32px;
    color: var(--color-text-heading);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-border);
    font-size: 15px;
    margin-bottom: 40px;
}

/* ============================
   HEADER — matches real app
   ============================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-gradient {
    background: linear-gradient(to bottom, var(--color-header-start) 0px, var(--color-header-end) 68px);
    height: 68px;
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-end;
    height: 68px;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    text-decoration: none;
    position: absolute;
    top: 4px;
    left: 24px;
    z-index: 10;
}

.logo-img {
    height: 80px;
    position: relative;
    top: 0;
}

.logo-text {
    font-size: 56px;
    font-weight: bold;
    color: var(--color-bg-light);
    text-shadow: -1px 1px var(--color-primary-dark), 2px 2px var(--color-primary-dark), 2px 2px var(--color-primary-dark), 1px -1px var(--color-primary-dark);
    letter-spacing: -2px;
    text-decoration: none;
    line-height: 1;
    padding-bottom: 3px;
    position: relative;
    top: -8px;
}

.logo-version {
    font-size: 11px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 8px;
    margin-bottom: 39px;
}

/* Navigation links */
.header-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
    align-items: center;
    height: 68px;
}

.header-tab {
    display: block;
    padding: 8px 18px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.header-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.header-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

/* Header bottom border */
.header-line {
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
}

/* ============================
   HERO
   ============================ */
.hero {
    background: linear-gradient(135deg, #e8f2fa 0%, #f9fafb 50%, #e0ecf5 100%);
    border-bottom: 6px solid var(--color-bg-light);
    padding: 80px 24px 72px;
    text-align: center;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 36px;
    color: var(--color-text-heading);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 16px;
    border-radius: 20px;
    font-variant: small-caps;
    letter-spacing: 0.5px;
}

/* ============================
   FEATURES
   ============================ */
.features {
    padding: 72px 0;
    background: #fff;
}

.features h2 {
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-bg-content);
    border: 1px solid var(--color-border-accent);
    border-radius: 8px;
    padding: 28px 20px 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 97, 159, 0.12);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--color-primary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 15px;
    color: var(--color-text-heading);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--color-text);
}

/* ============================
   SCREENSHOTS — real app iframes
   ============================ */
.screenshots {
    padding: 72px 0;
    background: linear-gradient(to bottom, var(--color-bg-light), #fff);
}

.screenshots h2 {
    margin-bottom: 8px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.screenshot-item {
    position: relative;
}

.screenshot-label {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: var(--color-text-heading);
    margin-bottom: 10px;
    font-variant: small-caps;
}

.screenshot-frame {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 50, 80, 0.12);
    background: #fff;
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================
   TECHNOLOGY
   ============================ */
.tech {
    padding: 72px 0;
    background: #fff;
}

.tech h2 {
    margin-bottom: 48px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.tech-item {
    text-align: center;
}

.tech-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: var(--color-primary);
}

.tech-icon svg {
    width: 100%;
    height: 100%;
}

.tech-item h3 {
    font-size: 14px;
    color: var(--color-text-heading);
    margin-bottom: 8px;
}

.tech-item p {
    font-size: 12px;
    color: var(--color-text);
    line-height: 1.6;
}

/* ============================
   NUMBERS
   ============================ */
.numbers {
    padding: 56px 0;
    background: linear-gradient(to bottom, var(--color-header-start), var(--color-header-end));
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.number-value {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}

.number-label {
    font-size: 14px;
    color: var(--color-bg-light);
    margin-top: 6px;
    font-variant: small-caps;
    font-weight: bold;
}

/* ============================
   CHANGELOG
   ============================ */
.changelog {
    padding: 72px 0;
    background: #fff;
}

.changelog h2 {
    margin-bottom: 32px;
}

/* Latest version badge */
.changelog-latest {
    text-align: center;
    margin-bottom: 40px;
}

.changelog-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--color-header-start), var(--color-header-end));
    color: #fff;
    padding: 14px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 97, 159, 0.25);
}

.changelog-badge-label {
    font-size: 13px;
    font-variant: small-caps;
    font-weight: bold;
    opacity: 0.85;
}

.changelog-badge-version {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.changelog-badge-date {
    font-size: 13px;
    opacity: 0.75;
}

/* Entry list */
.changelog-list {
    max-width: 720px;
    margin: 0 auto;
}

.changelog-entry {
    border: 1px solid var(--color-border-accent);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.changelog-entry:hover {
    box-shadow: 0 2px 12px rgba(0, 97, 159, 0.08);
}

.changelog-entry-latest {
    border-color: var(--color-primary);
    border-width: 2px;
}

.changelog-entry-hidden {
    display: none;
}

.changelog-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    background: var(--color-bg-content);
    user-select: none;
    transition: background 0.15s;
}

.changelog-entry-header:hover {
    background: var(--color-bg-light);
}

.changelog-entry-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.changelog-version {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-text-heading);
}

.changelog-date {
    font-size: 13px;
    color: var(--color-border);
}

.changelog-new-badge {
    font-size: 11px;
    font-weight: bold;
    background: var(--color-success);
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
}

.changelog-toggle {
    font-size: 12px;
    color: var(--color-border);
    transition: transform 0.2s;
}

.changelog-entry.open .changelog-toggle {
    transform: rotate(180deg);
}

/* Entry body (collapsed by default) */
.changelog-body {
    display: none;
    padding: 0 20px 16px;
    border-top: 1px solid var(--color-border-accent);
}

.changelog-entry.open .changelog-body {
    display: block;
}

.changelog-group {
    margin-top: 12px;
}

.changelog-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.changelog-tag-added {
    background: #e6f4ea;
    color: #1a7f2b;
}

.changelog-tag-changed {
    background: #fff3e0;
    color: #b36b00;
}

.changelog-tag-removed {
    background: #fce8e8;
    color: #a00;
}

.changelog-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-body li {
    font-size: 13px;
    line-height: 1.5;
    padding: 3px 0 3px 16px;
    position: relative;
    color: var(--color-text);
}

.changelog-body li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--color-border);
}

/* Show all button */
.changelog-show-all {
    display: block;
    margin: 20px auto 0;
    padding: 10px 28px;
    background: none;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.changelog-show-all:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ============================
   CONTACT
   ============================ */
.contact {
    padding: 72px 0;
    background: var(--color-bg-content);
    text-align: center;
}

.contact h2 {
    margin-bottom: 12px;
}

.contact > .container > p {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 32px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--color-border-accent);
    border-radius: 8px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: bold;
    color: var(--color-primary);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

/* ============================
   FOOTER — matches real app
   ============================ */
.site-footer {
    width: 100%;
}

.footer-line {
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
}

.footer-gradient {
    background: linear-gradient(to bottom, var(--color-header-end) 0px, var(--color-header-start) 68px);
    padding: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--color-bg-light);
}

/* ============================
   SCROLL TO TOP
   ============================ */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s;
    z-index: 1000;
    text-decoration: none;
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 0.25;
    visibility: visible;
}

.scroll-top.visible:hover {
    opacity: 1;
    background: var(--color-primary-dark);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media screen and (max-width: 1024px) {
    .header-gradient {
        height: auto;
    }

    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 12px 24px;
        gap: 10px;
        align-items: center;
    }

    .header-tabs {
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
        height: auto;
    }

    .logo-area {
        position: static;
        justify-content: center;
        align-items: flex-end;
    }

    .logo-img {
        height: 60px;
        top: 0;
    }

    .logo-text {
        font-size: 40px;
        padding-bottom: 0;
    }

    .logo-version {
        margin-bottom: 27px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 48px 24px 40px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .number-value {
        font-size: 36px;
    }

    h2 {
        font-size: 24px;
    }

}

@media screen and (max-width: 480px) {
    .numbers-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .header-tab {
        font-size: 13px;
        padding: 6px 12px;
    }
}
