:root {
    --ink: #16324f;
    --blue: #007bff;
    --blue-deep: #0056b3;
    --sky: #e7f1ff;
    --sky-2: #f7fbfe;
    --line: #d3e4f2;
    --muted: #5d7388;
}

body {
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--sky-2);
    line-height: 1.65;
}

.navbar,
.public-nav {
    background: #fff !important;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(29, 111, 184, 0.04);
}

.navbar-brand,
.public-nav .navbar-brand span {
    color: var(--blue-deep);
    font-weight: 700;
}

.navbar .nav-link,
.public-nav .nav-link {
    color: var(--ink);
    font-weight: 600;
}

.nav-home {
    font-size: 1.05rem;
}

.navbar .nav-link.active,
.public-nav .nav-link.active {
    color: var(--blue);
}

body.public-page {
    padding-top: 76px;
}

.public-nav .nav-register,
.navbar .btn-outline-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 650;
}

.public-nav .nav-register:hover,
.navbar .btn-outline-primary:hover {
    background: var(--blue-deep);
    border-color: var(--blue-deep);
}

.hero-section {
    background: linear-gradient(180deg, #d6e8ff 0%, #f7fbff 100%);
    color: var(--ink);
    padding: 8rem 0 4.5rem;
}

.hero-section::before,
.floating-shapes,
.shape {
    display: none !important;
}

.hero-content,
.logo-section {
    text-align: left;
}

.logo-section img {
    max-width: 72px;
    height: auto;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    border: 1px solid var(--line);
}

.logo-section h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ink);
    margin: 0.15rem 0 0.85rem;
}

.hero-copy {
    color: var(--ink);
    font-size: 1.12rem;
    max-width: 42rem;
    margin-bottom: 0.75rem;
}

.logo-section .tagline,
.hero-section .lead {
    color: var(--muted);
    font-size: 1.15rem;
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-visual img {
    display: block;
    width: 100%;
    max-width: 540px;
    height: auto;
    margin-left: auto;
}

.btn-primary-custom,
.btn-outline-custom {
    border-radius: 8px;
    padding: 0.75rem 1.3rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: none;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
}

.btn-outline-custom {
    background: #fff;
    color: var(--blue-deep);
    border: 1px solid #b7d4f8;
}

.btn-primary-custom:hover,
.btn-outline-custom:hover,
.feature-card:hover,
.pricing-card:hover,
.pricing-card.featured,
.pricing-card.featured:hover {
    transform: none;
    box-shadow: none;
}

.btn-primary-custom:hover {
    background: var(--blue-deep);
    color: #fff;
}

.features-section,
.how-it-works {
    background: #fff;
    padding: 4.5rem 0;
}

.pricing-section {
    background: var(--sky-2);
    padding: 4.5rem 0;
}

.display-4 {
    font-size: 2rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.feature-card,
.pricing-card,
.step-card,
.page-sheet {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(29, 111, 184, 0.06);
    text-align: left;
}

.feature-card,
.step-card {
    padding: 1.4rem 1.3rem;
    height: 100%;
}

.feature-icon,
.step-number {
    width: 64px;
    height: 64px;
    margin: 0 0 1rem;
    border-radius: 14px;
    background: var(--sky);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0, 123, 255, 0.14);
}

.feature-icon {
    font-size: 1.45rem;
}

.pricing-card {
    padding: 1.75rem;
}

.pricing-card.featured {
    border: 2px solid var(--blue);
    background: #fff;
}

.price {
    color: var(--blue-deep);
    font-size: 2.4rem;
}

.step-number {
    position: static;
    transform: none;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blue-deep);
}

.footer,
.public-foot {
    background: var(--line);
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding: 2.2rem 0;
}

.footer a,
.public-foot a {
    color: var(--blue-deep);
    text-decoration: none;
}

.footer h4,
.footer p {
    color: var(--ink);
}

.page-banner {
    background: linear-gradient(180deg, #d6e8ff 0%, #f7fbff 72%);
    padding: 3.2rem 0 4.5rem;
}

.page-banner h1 {
    font-size: 2.3rem;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--ink);
}

.public-main {
    margin-top: -2.2rem;
    padding-bottom: 3rem;
}

.page-sheet {
    padding: 2rem 1.4rem 2.2rem;
}

.public-wrap {
    max-width: 980px;
}

.page-sheet .lead {
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
}

.page-sheet h2 {
    font-size: 1.3rem;
    margin-top: 2.1rem;
    margin-bottom: 0.7rem;
    color: var(--blue-deep);
}

.toc {
    background: var(--sky) !important;
    border-radius: 12px !important;
}

.toc a {
    color: var(--blue-deep);
    text-decoration: none;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    counter-reset: step;
}

.step-list li {
    counter-increment: step;
    position: relative;
    background: var(--sky-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.9rem 1rem 0.9rem 3.6rem;
    margin-bottom: 0.7rem;
}

.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0.85rem;
    top: 0.85rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 8px;
    background: #fff;
    color: var(--blue);
    border: 1px solid var(--line);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.ip-callout {
    background: #fff;
    border: 1px solid #b7d4f8;
    border-left: 5px solid var(--blue);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    margin: 0.4rem 0 1.2rem;
}

.ip-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue);
}

.ip-value {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin: 0.2rem 0 0.35rem;
    word-break: break-all;
}

pre {
    background: #16324f;
    color: #f4f8fc;
    padding: 1rem;
    border-radius: 12px;
    overflow: auto;
}

@media (min-width: 768px) {
    .page-sheet {
        padding: 2.4rem 2.6rem 2.6rem;
    }
}

@media (max-width: 767px) {
    .page-banner h1,
    .logo-section h1 {
        font-size: 1.7rem;
    }
    .hero-section {
        padding-top: 6.5rem;
    }
    .hero-visual {
        margin-top: 0.5rem;
    }
    .hero-visual img {
        margin-right: auto;
    }
    .cta-buttons,
    .hero-content,
    .logo-section {
        text-align: left;
        justify-content: flex-start;
    }
    .ip-value {
        font-size: 1.35rem;
    }
    .feature-card,
    .pricing-card,
    .step-card {
        margin-bottom: 0;
    }
}
