* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ddns-page {
    margin: 0;
    color: #f7f7f7;
    background:
        radial-gradient(circle at 8% 46%, rgba(32, 205, 59, 0.1), transparent 24%),
        radial-gradient(circle at 88% 8%, rgba(255, 214, 0, 0.08), transparent 18%),
        #020202;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ddns-container {
    width: min(1370px, calc(100% - 72px));
    margin: 0 auto;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(2, 2, 2, 0.88);
    backdrop-filter: blur(18px);
}

.nav-inner {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    flex: 0 0 auto;
}

.brand:hover,
.brand:focus {
    color: #fff;
    text-decoration: none;
}

.brand img {
    width: 58px;
    height: 58px;
    filter: drop-shadow(0 10px 26px rgba(255, 214, 0, 0.18));
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    color: #fff;
    font-size: 27px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.brand-copy em,
.brand-node em {
    color: #ffd600;
    font-style: normal;
}

.brand-copy small {
    color: #d8d8d8;
    font-size: 13px;
    letter-spacing: 8px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: #f3f3f3;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #ffd600;
}

.home-link {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
}

.ico-home {
    width: 17px;
    height: 17px;
    border: 2px solid #ececec;
    border-top: 0;
    display: block;
    position: relative;
}

.ico-home:before {
    content: "";
    width: 15px;
    height: 15px;
    border-left: 2px solid #ececec;
    border-top: 2px solid #ececec;
    position: absolute;
    left: -1px;
    top: -9px;
    transform: rotate(45deg);
}

.nav-login {
    min-width: 104px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 6px;
    color: #fff !important;
}

.nav-login:hover {
    border-color: #ffd600;
}

.nav-cta,
.btn-primary-dark {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 0;
    border-radius: 7px;
    padding: 0 28px;
    color: #060600 !important;
    background: linear-gradient(180deg, #ffdd11, #ffc400);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 18px 34px rgba(255, 214, 0, 0.15);
    font-weight: 800 !important;
    text-decoration: none;
}

.nav-cta:hover,
.btn-primary-dark:hover {
    color: #060600;
    background: linear-gradient(180deg, #ffe455, #ffd000);
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: transparent;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.hero {
    padding: 54px 0 58px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(470px, 0.78fr) minmax(600px, 1.22fr);
    gap: 36px;
    align-items: center;
}

.free-pill {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    font-size: 17px;
}

.free-pill span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #36d83c;
    box-shadow: 0 0 20px rgba(54, 216, 60, 0.78);
}

.hero h1 {
    margin: 25px 0 18px;
    max-width: 600px;
    color: #fff;
    font-size: clamp(58px, 6vw, 88px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 1px 0 #fff, 0 28px 60px rgba(255, 255, 255, 0.08);
}

.hero h1 span {
    display: block;
    color: #35d23b;
    text-shadow: 0 18px 44px rgba(53, 210, 59, 0.28);
}

.hero-text {
    max-width: 520px;
    margin: 0 0 22px;
    color: #a6a6a6;
    font-size: 20px;
    line-height: 1.45;
}

.domain-check {
    max-width: 560px;
    margin-bottom: 22px;
}

.domain-check-inner {
    min-height: 58px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 140px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.domain-check input {
    width: 100%;
    height: 58px;
    border: 0;
    padding: 0 10px;
    color: #d6d6d6;
    background: transparent;
    font-size: 18px;
    outline: 0;
}

.domain-check button {
    height: 58px;
    border: 0;
    border-left: 1px solid rgba(56, 220, 61, 0.65);
    color: #fff;
    background: linear-gradient(90deg, rgba(40, 183, 49, 0.22), rgba(20, 120, 26, 0.46));
    font-size: 16px;
    font-weight: 700;
}

.domain-check button span {
    margin-left: 14px;
    color: #35f13f;
    font-size: 30px;
    line-height: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 22px;
}

.btn-secondary-dark {
    min-width: 152px;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    color: #fff;
    background: rgba(255, 255, 255, 0.025);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.btn-secondary-dark:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    text-decoration: none;
}

.product-credit {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    text-decoration: none;
}

.product-credit:hover {
    color: #fff;
    text-decoration: none;
}

.product-credit img {
    width: 42px;
    height: auto;
    display: block;
}

.product-credit strong {
    color: #ffd600;
}

.monitor-panel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(8, 8, 8, 0.78);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.56);
}

.panel-chrome {
    height: 43px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    display: inline-block;
}

.dot.red {
    background: #f05f57;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #28c840;
}

.panel-content {
    min-height: 312px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
}

.sync-column {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 18px 16px;
}

.terminal-label {
    margin: 0 0 16px;
    color: #36e43f;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    letter-spacing: 1px;
}

.metric-box {
    min-height: 96px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 18px 14px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.022);
}

.metric-box small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bfbfbf;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.metric-box small span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #39db40;
}

.metric-box strong {
    display: block;
    margin-top: 15px;
    color: #39ee41;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.metric-box .ip {
    color: #fff;
    font-size: 22px;
    font-weight: 400;
}

.metric-box em {
    display: block;
    margin-top: 8px;
    color: #aaa;
    font-style: normal;
}

.spin {
    margin-left: 8px;
    color: #39ee41;
    font-size: 20px;
}

.map-column {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 312px;
    overflow: hidden;
}

.world-map {
    position: absolute;
    inset: 24px 32px 12px;
    opacity: 0.34;
    background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1.4px);
    background-size: 11px 11px;
    mask-image:
        radial-gradient(ellipse at 18% 35%, #000 0 18%, transparent 19%),
        radial-gradient(ellipse at 44% 42%, #000 0 18%, transparent 19%),
        radial-gradient(ellipse at 70% 40%, #000 0 23%, transparent 24%),
        radial-gradient(ellipse at 56% 72%, #000 0 12%, transparent 13%);
    -webkit-mask-image:
        radial-gradient(ellipse at 18% 35%, #000 0 18%, transparent 19%),
        radial-gradient(ellipse at 44% 42%, #000 0 18%, transparent 19%),
        radial-gradient(ellipse at 70% 40%, #000 0 23%, transparent 24%),
        radial-gradient(ellipse at 56% 72%, #000 0 12%, transparent 13%);
}

.flow {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 82px 46px 132px 46px 82px;
    align-items: center;
}

.flow-line {
    height: 2px;
    background: repeating-linear-gradient(90deg, #35d23b 0 5px, transparent 5px 10px);
    position: relative;
}

.flow-line:before,
.flow-line:after {
    content: "";
    position: absolute;
    top: -5px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #35d23b;
    box-shadow: 0 0 18px rgba(53, 210, 59, 0.65);
}

.flow-line:before {
    left: -6px;
}

.flow-line:after {
    right: -6px;
}

.flow-node {
    min-height: 98px;
    display: grid;
    place-items: center;
    text-align: center;
}

.flow-node span {
    width: 72px;
    height: 72px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    position: relative;
}

.flow-node.device span:before {
    content: "";
    position: absolute;
    inset: 18px 27px;
    border: 2px solid #777;
    box-shadow: inset 0 9px 0 rgba(255, 255, 255, 0.08), inset 0 18px 0 transparent, inset 0 27px 0 rgba(255, 255, 255, 0.08);
}

.flow-node.domain span:before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 3px solid #8b8b8b;
    border-radius: 999px;
}

.flow-node.domain span:after {
    content: "";
    position: absolute;
    top: 39px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #8b8b8b;
    box-shadow: 0 -13px 0 -1px #8b8b8b, 0 13px 0 -1px #8b8b8b;
}

.flow-node strong {
    margin-top: 12px;
    color: #eee;
    font-size: 12px;
}

.flow-node small {
    color: #aaa;
}

.brand-node {
    min-height: 132px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.brand-node img {
    width: 66px;
    height: 66px;
}

.brand-node strong {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.status-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.status-row div {
    min-height: 82px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 12px;
    align-content: center;
    padding: 14px 18px;
    position: relative;
}

.status-row div + div:before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.status-icon {
    width: 38px;
    height: 38px;
    grid-row: span 2;
    border-radius: 999px;
    background: rgba(53, 210, 59, 0.2);
    position: relative;
}

.status-icon:before {
    position: absolute;
    inset: 8px;
    display: grid;
    place-items: center;
    border: 2px solid #35d23b;
    border-radius: 999px;
    color: #35d23b;
    font-weight: 900;
}

.status-icon.check:before {
    content: "✓";
}

.status-icon.refresh:before {
    content: "↻";
    font-size: 22px;
}

.status-icon.tag:before {
    content: "◇";
}

.status-row strong {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.status-row small {
    color: #aaa;
}

.uptime-box {
    min-height: 74px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    align-items: center;
    margin: 0 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.018);
}

.uptime-box small {
    display: block;
    color: #aaa;
}

.uptime-box strong {
    color: #35e63d;
    font-size: 17px;
    font-weight: 500;
}

.uptime-box strong small {
    margin-top: 6px;
    color: #aaa;
    font-size: 13px;
}

.sparkline {
    display: block;
    width: min(100%, 600px);
    height: 34px;
    margin-top: 7px;
    overflow: visible;
}

.sparkline polyline {
    fill: none;
    stroke: #35e63d;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(53, 230, 61, 0.45));
}

.sparkline circle {
    fill: #35e63d;
}

.feature-band {
    padding: 0 0 64px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.feature-grid article {
    min-height: 170px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 28px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    padding: 22px 22px 22px 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.feature-grid article h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.feature-grid article p {
    margin: 0;
    color: #b7b7b7;
    line-height: 1.45;
}

.feature-grid article a {
    color: #35f13f;
    font-size: 36px;
    text-decoration: none;
}

.feature-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #35d23b;
    position: relative;
}

.feature-icon:before {
    color: #35d23b;
    font-size: 50px;
    line-height: 1;
}

.feature-icon.shield:before {
    content: "✓";
    width: 42px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 4px solid #35d23b;
    border-radius: 18px 18px 24px 24px;
    font-size: 28px;
}

.feature-icon.bolt:before {
    content: "ϟ";
}

.feature-icon.globe:before {
    content: "◎";
}

.ico-user,
.ico-login,
.ico-globe {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
    flex: none;
}

.ico-user:before {
    content: "";
    position: absolute;
    top: 1px;
    left: 6px;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.ico-user:after {
    content: "";
    position: absolute;
    left: 3px;
    bottom: 1px;
    width: 14px;
    height: 8px;
    border: 2px solid currentColor;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.ico-login:before {
    content: "→";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: currentColor;
    font-size: 24px;
}

.ico-globe {
    margin-left: 18px;
    border: 2px solid #d0d0d0;
    border-radius: 999px;
}

.ico-globe:before,
.ico-globe:after {
    content: "";
    position: absolute;
    background: #d0d0d0;
}

.ico-globe:before {
    left: 3px;
    right: 3px;
    top: 8px;
    height: 2px;
}

.ico-globe:after {
    top: 3px;
    bottom: 3px;
    left: 8px;
    width: 2px;
}

.legal-page {
    min-height: calc(100vh - 175px);
    padding: 76px 0;
}

.legal-card {
    max-width: 880px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 9px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.04);
}

.legal-card h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1;
    font-weight: 900;
}

.legal-card h2 {
    margin: 32px 0 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.legal-card p,
.legal-card li {
    color: #b8b8b8;
    line-height: 1.65;
}

.legal-card .updated {
    color: #ffd600;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.legal-card a {
    color: #35d23b;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    background: #020202;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-inner p {
    margin: 0;
    color: #fff;
    font-weight: 900;
}

.footer-inner div {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-inner a {
    color: #bdbdbd;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .monitor-panel {
        max-width: 850px;
    }

    .nav-links {
        gap: 18px;
    }
}

@media (max-width: 980px) {
    .ddns-container {
        width: min(100% - 36px, 760px);
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 92px;
        right: 18px;
        left: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        padding: 16px;
        background: #080808;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-login,
    .nav-cta {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nav-inner {
        min-height: 92px;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .brand-copy strong {
        font-size: 22px;
    }

    .brand-copy small {
        font-size: 10px;
        letter-spacing: 6px;
    }

    .hero {
        padding-top: 34px;
    }

    .hero h1 {
        font-size: clamp(48px, 15vw, 64px);
    }

    .domain-check-inner,
    .panel-content,
    .status-row,
    .uptime-box {
        grid-template-columns: 1fr;
    }

    .domain-check-inner {
        padding-top: 12px;
    }

    .domain-check button {
        width: 100%;
        border-left: 0;
        border-top: 1px solid rgba(56, 220, 61, 0.45);
    }

    .monitor-panel {
        display: none;
    }

    .feature-grid article {
        grid-template-columns: 82px minmax(0, 1fr) 24px;
        padding: 18px;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
