:root {
    --teal: #41c3c5;
    --teal-deep: #2b889e;
    --teal-light: #95d6dc;
    --blue: #2f4c92;
    --blue-bright: #3d6bd0;
    --ink: #16203f;
    --muted: #5c6785;
    --bg: #f5f8fc;
    --card-bg: #ffffff;
    --border: #e5ebf2;
    --radius: 20px;
    --shadow: 0 12px 34px rgba(47, 76, 146, 0.09);
    --shadow-hover: 0 28px 60px rgba(47, 76, 146, 0.22);
    --gradient: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(65,195,197,0.12), rgba(47,76,146,0.12));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.grad-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animated background orbs */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.orb--1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, var(--teal), transparent 70%);
    top: -120px;
    left: -80px;
    animation: drift 18s ease-in-out infinite;
}

.orb--2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--blue-bright), transparent 70%);
    top: 30%;
    right: -140px;
    animation: drift 22s ease-in-out infinite reverse;
}

.orb--3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--teal-light), transparent 70%);
    bottom: -100px;
    left: 25%;
    animation: drift 26s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.08); }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(229, 235, 242, 0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 44px;
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    gap: 28px;
}

.header-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s ease;
}

.header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.25s ease;
}

.header-nav a:hover {
    color: var(--blue);
}

.header-nav a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    padding: 120px 0 90px;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--gradient-soft);
    border: 1px solid rgba(65, 195, 197, 0.3);
    color: var(--teal-deep);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    margin-bottom: 26px;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 auto 24px;
    max-width: 900px;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    color: var(--muted);
    max-width: 660px;
    margin: 0 auto 38px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn--primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 10px 26px rgba(47, 76, 146, 0.28);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(47, 76, 146, 0.38);
}

.btn--ghost {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--teal);
    color: var(--teal-deep);
    transform: translateY(-3px);
}

.btn--light {
    background: #fff;
    color: var(--blue);
}

.btn--light:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Brand cards */
.brands {
    padding: 30px 0 90px;
}

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

.brand-grid.reveal .brand-card:nth-child(2) {
    transition-delay: 0.1s;
}

.brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 44px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.brand-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.brand-card:hover::before {
    transform: scaleX(1);
}

.brand-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0;
    top: -120px;
    right: -120px;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.brand-card--first .brand-glow {
    background: radial-gradient(circle, rgba(65,195,197,0.55), transparent 70%);
}

.brand-card--dns .brand-glow {
    background: radial-gradient(circle, rgba(61,107,208,0.5), transparent 70%);
}

.brand-card:hover .brand-glow {
    opacity: 1;
}

.brand-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 26px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    height: 66px;
    padding: 0 16px;
    border-radius: 16px;
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(47, 76, 146, 0.2);
}

.brand-badge--first {
    background: linear-gradient(135deg, var(--teal), var(--teal-deep));
}

.brand-badge--dns {
    background: linear-gradient(135deg, var(--blue-bright), var(--blue));
}

.brand-pill {
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(65, 195, 197, 0.12);
    color: var(--teal-deep);
    border: 1px solid rgba(65, 195, 197, 0.3);
}

.brand-pill--dns {
    background: rgba(47, 76, 146, 0.1);
    color: var(--blue);
    border-color: rgba(47, 76, 146, 0.25);
}

.brand-name {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.brand-tagline {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--teal-deep);
    margin-bottom: 18px;
}

.brand-card--dns .brand-tagline {
    color: var(--blue);
}

.brand-desc {
    color: var(--muted);
    margin-bottom: 24px;
}

.brand-points {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: grid;
    gap: 12px;
    width: 100%;
}

.brand-points li {
    position: relative;
    padding-left: 30px;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.98rem;
}

.brand-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.85);
}

.brand-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--blue);
    margin-top: auto;
    transition: gap 0.25s ease;
}

.brand-card:hover .brand-cta {
    gap: 15px;
}

/* Stats */
.stats {
    padding: 20px 0 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 46px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* About */
.about {
    padding: 40px 0 100px;
}

.about-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    color: var(--teal-deep);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.about-text {
    color: var(--muted);
    font-size: 1.12rem;
}

.about-text strong {
    color: var(--ink);
    font-weight: 700;
}

/* CTA band */
.cta-band {
    padding: 0 0 100px;
}

.cta-band-inner {
    position: relative;
    text-align: center;
    padding: 64px 40px;
    border-radius: 28px;
    background: var(--gradient);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(47, 76, 146, 0.3);
}

.cta-band-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 40%),
            radial-gradient(circle at 80% 80%, rgba(255,255,255,0.12), transparent 40%);
    pointer-events: none;
}

.cta-title {
    position: relative;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.cta-sub {
    position: relative;
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 32px;
}

.cta-actions {
    position: relative;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: #cdd5e8;
    padding: 56px 0 28px;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-tag {
    font-size: 0.95rem;
    max-width: 320px;
    color: #9aa6c4;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-nav a {
    color: var(--teal-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 24px;
}

.footer-copy {
    font-size: 0.88rem;
    color: #8592b3;
}

/* Responsive */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 720px) {
    .header-nav {
        display: none;
    }

    .hero {
        padding: 80px 0 60px;
    }

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

    .brand-card {
        padding: 34px 28px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .cta-band-inner {
        padding: 48px 26px;
    }
}

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


/* ---------- Domain Lookup (RDAP) ---------- */
.lookup {
    padding: 20px 0 80px;
}

.lookup-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.lookup-sub {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto 32px;
}

.lookup-form {
    display: flex;
    gap: 14px;
    max-width: 620px;
    margin: 0 auto;
}

.lookup-field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.lookup-icon {
    position: absolute;
    left: 18px;
    color: var(--muted);
    pointer-events: none;
}

.lookup-field input {
    width: 100%;
    padding: 16px 18px 16px 48px;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lookup-field input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(65, 195, 197, 0.15);
}

#rdap-submit {
    white-space: nowrap;
}

#rdap-submit[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.lookup-results {
    margin-top: 36px;
    text-align: left;
}

.result-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 34px;
    animation: resultIn 0.5s ease;
}

@keyframes resultIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-domain {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 22px;
    word-break: break-all;
}

.status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(47, 76, 146, 0.08);
    color: var(--blue);
    border: 1px solid rgba(47, 76, 146, 0.18);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 32px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-item.full {
    grid-column: 1 / -1;
}

.result-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.result-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    word-break: break-word;
}

.result-value ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

/* Entities (registrar / reseller) */
.entity-block {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg);
}

.entity-block + .entity-block {
    margin-top: 16px;
}

.entity-role {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.entity-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.entity-detail {
    font-size: 0.95rem;
    color: var(--muted);
}

/* Highlighted reseller node */
.entity-block.is-reseller {
    position: relative;
    border: 2px solid transparent;
    background:
            linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
            var(--gradient) border-box;
    box-shadow: 0 12px 30px rgba(65, 195, 197, 0.22);
    animation: resellerPulse 2.4s ease-in-out infinite;
}

@keyframes resellerPulse {
    0%, 100% { box-shadow: 0 12px 30px rgba(65, 195, 197, 0.22); }
    50% { box-shadow: 0 12px 40px rgba(65, 195, 197, 0.42); }
}

.entity-block.is-reseller .entity-role {
    color: var(--teal-deep);
}

.reseller-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* States */
.lookup-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--muted);
    font-weight: 500;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(65, 195, 197, 0.3);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.lookup-error {
    padding: 24px 28px;
    background: #fff5f5;
    border: 1px solid #ffd6d6;
    border-radius: var(--radius);
    color: #b42318;
    text-align: left;
}

.lookup-error strong {
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 620px) {
    .lookup-form {
        flex-direction: column;
    }

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


/* ---------- Entity detail rows ---------- */
.entity-details {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.entity-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: baseline;
}

.entity-row-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.entity-row-value {
    font-size: 0.98rem;
    color: var(--ink);
    word-break: break-word;
}

.entity-row-value a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.entity-row-value a:hover {
    text-decoration: underline;
}

.entity-block.is-reseller .entity-row-value a {
    color: var(--teal-deep);
}

@media (max-width: 520px) {
    .entity-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}