:root {
    --navy: #001d3d;
    --navy-deep: #001228;
    --navy-soft: #0a2a4d;
    --blue: #007bff;
    --blue-dark: #0056d6;
    --sky: #5eb1ff;
    --text: #1d2b3a;
    --muted: #6b7c93;
    --line: #e4ebf3;
    --bg: #ffffff;
    --soft: #f4f8fc;
    --tint: #eef5ff;
    --green: #28a745;
    --purple: #6f42c1;
    --orange: #fd7e14;
    --red: #dc3545;
    --shadow: 0 18px 50px rgba(0, 29, 61, 0.12);
    --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
}

.btn-primary {
    background: var(--blue);
    border-color: var(--blue);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.btn-ghost {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--navy);
    background: #fff;
}

.section {
    padding: 88px 0;
}

.section-soft { background: var(--tint); }

.section-kicker {
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.section-lead {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
}

/* Top bar */
.topbar {
    background: var(--navy);
    color: #d7e6f5;
    font-size: 0.82rem;
    padding: 0.55rem 0;
}

.topbar a {
    color: #d7e6f5;
    margin-right: 1.15rem;
}

.topbar a:last-child { margin-right: 0; }

.topbar a:hover { color: #fff; }

.topbar i { margin-right: 0.4rem; color: var(--sky); }

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0;
}

/* Navbar */
.main-navbar {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 29, 61, 0.05);
    padding: 0.55rem 0;
}

.brand-logo {
    height: 46px;
    width: auto;
    display: block;
}

.main-navbar .nav-link {
    color: var(--navy);
    font-weight: 600;
    padding: 0.7rem 0.75rem;
    position: relative;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--blue);
}

.main-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.25rem;
    height: 2px;
    background: var(--blue);
}

.dropdown-menu {
    border: 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.dropdown-item {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background: var(--tint);
    color: var(--blue);
}

.btn-client-area {
    white-space: nowrap;
    padding: 0.65rem 1.1rem;
}

.btn-client-area i { margin-right: 0.35rem; }

/* Hero */
.hero {
    position: relative;
    background:
        linear-gradient(90deg, rgba(0, 18, 40, 0.96) 0%, rgba(0, 29, 61, 0.88) 46%, rgba(0, 29, 61, 0.35) 100%),
        url("../images/hero.webp") right center / cover no-repeat,
        url("../images/hero.jpg") right center / cover no-repeat;
    color: #fff;
    padding: 92px 0 140px;
    min-height: 560px;
    overflow: hidden;
}

.hero-kicker {
    color: var(--sky);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1.1rem;
}

.hero h1 span { color: var(--sky); }

.hero-copy {
    color: #d7e4f2;
    max-width: 520px;
    margin-bottom: 1.6rem;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.uptime-badge {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    border: 6px solid var(--blue);
    background: rgba(0, 29, 61, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-left: auto;
}

.uptime-badge small {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hero-note {
    margin-top: 1.5rem;
    color: #9ec4ef;
    font-size: 0.95rem;
    font-style: italic;
}

/* Domain search */
.domain-search-wrap {
    margin-top: -86px;
    position: relative;
    z-index: 3;
}

.domain-search-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 28px 28px 22px;
}

.domain-search-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.domain-search-head h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
}

.domain-search-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.domain-search-form {
    display: flex;
    gap: 0.75rem;
}

.domain-search-form .form-control {
    background: #f3f6fb;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    min-height: 58px;
    padding: 0.85rem 1rem;
}

.domain-search-form .btn {
    min-width: 190px;
    border-radius: 12px;
}

.tld-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.tld-chip {
    background: #f3f6fb;
    border-radius: 10px;
    padding: 0.7rem 0.4rem;
    text-align: center;
}

.tld-chip strong {
    display: block;
    color: var(--navy);
    font-size: 0.95rem;
}

.tld-chip span {
    color: var(--muted);
    font-size: 0.82rem;
}

.domain-result {
    margin-top: 1rem;
    border-radius: 12px;
    padding: 0.95rem 1rem;
    font-weight: 600;
}

.domain-result.is-loading {
    background: #eef5ff;
    color: var(--navy);
}

.domain-result.is-available {
    background: #e8f8ee;
    color: #146c2e;
}

.domain-result.is-taken {
    background: #fdecec;
    color: #a61b1b;
}

.domain-result.is-error {
    background: #fff4e5;
    color: #9a5b00;
}

/* Services */
.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 24px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-icon.blue { background: var(--blue); }
.service-icon.green { background: var(--green); }
.service-icon.purple { background: var(--purple); }
.service-icon.orange { background: var(--orange); }

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
}

.service-card p {
    color: var(--muted);
    min-height: 54px;
}

.service-link {
    font-weight: 700;
}

/* Plans */
.plan-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px 26px 28px;
    height: 100%;
    position: relative;
}

.plan-card.is-popular {
    border-color: var(--blue);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 18px;
    background: var(--blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
}

.plan-card h3 {
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.plan-price {
    margin-bottom: 1.1rem;
}

.plan-price span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue);
}

.plan-price small {
    color: var(--muted);
    font-weight: 600;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
}

.plan-card li {
    padding: 0.38rem 0;
    color: #3d4f63;
}

.plan-card li i {
    color: var(--green);
    margin-right: 0.45rem;
}

/* Why choose */
.why-item {
    text-align: center;
    padding: 0.5rem 0.75rem;
}

.why-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: 1.4rem;
}

.why-icon.blue { background: var(--blue); }
.why-icon.green { background: var(--green); }
.why-icon.purple { background: var(--purple); }
.why-icon.red { background: var(--red); }

.why-item h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
}

.why-item p {
    color: var(--muted);
    margin: 0;
}

/* Inner pages */
.inner-hero {
    background:
        linear-gradient(90deg, rgba(0, 18, 40, 0.94), rgba(0, 29, 61, 0.78)),
        url("../images/hero.webp") center / cover no-repeat,
        url("../images/hero.jpg") center / cover no-repeat;
    color: #fff;
    padding: 72px 0 64px;
}

.inner-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
}

.inner-hero-text {
    max-width: 640px;
    color: #d5e4f4;
    margin: 0;
}

.content-card,
.contact-card,
.status-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    height: 100%;
}

.price-table thead th {
    background: var(--navy);
    color: #fff;
    font-weight: 600;
}

.price-table td,
.price-table th {
    vertical-align: middle;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
}

.faq-item + .faq-item { margin-top: 0.75rem; }

.faq-item button {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 1rem 1.15rem;
    font-weight: 700;
    color: var(--navy);
}

.faq-item .faq-body {
    padding: 0 1.15rem 1rem;
    color: var(--muted);
}

.legal-content h2,
.about-copy h2 {
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 1.6rem;
}

.legal-content p,
.about-copy p {
    color: #46586d;
}

.status-ok {
    color: var(--green);
    font-weight: 800;
    font-size: 1.3rem;
}

/* Footer */
.site-footer {
    background: var(--navy-deep);
    color: #c9d8e8;
    padding-top: 64px;
    position: relative;
}

.footer-brand img {
    height: 46px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-about {
    max-width: 340px;
    line-height: 1.7;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #fff;
    margin-right: 0.4rem;
}

.footer-social a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.site-footer h3 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li { margin-bottom: 0.55rem; }

.site-footer a { color: #c9d8e8; }

.site-footer a:hover { color: #fff; }

.footer-contact i {
    width: 18px;
    margin-right: 0.5rem;
    color: var(--sky);
}

.footer-bottom {
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    font-size: 0.9rem;
}

.footer-bottom p { margin: 0; }

.footer-tag .heart { color: #ff5b6e; }

.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 20;
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover { color: #fff; background: var(--blue-dark); }

.form-control:focus,
.form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.alert-success,
.alert-danger { border-radius: 12px; }

@media (max-width: 1199.98px) {
    .tld-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .hero { padding: 72px 0 120px; }
    .uptime-badge { margin: 2rem auto 0; }
    .main-navbar .nav-link.active::after { display: none; }
    .btn-client-area { margin: 0.75rem 0 1rem; }
    .plan-card.is-popular { transform: none; }
}

@media (max-width: 767.98px) {
    .brand-logo { height: 40px; }
    .topbar { font-size: 0.75rem; }
    .domain-search-form { flex-direction: column; }
    .domain-search-form .btn { min-width: 100%; }
    .domain-search-head { flex-direction: column; align-items: flex-start; }
    .tld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .domain-search-card { padding: 20px 16px; }
    .section { padding: 64px 0; }
    .hero { min-height: auto; padding-bottom: 110px; }
}
