/* ============================================================
   GetPublicIP - Main Stylesheet (Landing + Auth Pages)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary:    #0d1117;
    --bg-secondary:  #161b22;
    --bg-card:       #1c2128;
    --bg-card-hover: #22272e;
    --border:        #30363d;
    --accent:        #00d4ff;
    --accent-dark:   #0099bb;
    --blue:          #3b82f6;
    --green:         #22c55e;
    --yellow:        #f59e0b;
    --red:           #ef4444;
    --purple:        #8b5cf6;
    --text-primary:  #e6edf3;
    --text-secondary:#8b949e;
    --text-muted:    #6e7681;
    --shadow:        0 4px 24px rgba(0,0,0,.4);
    --radius:        12px;
    --radius-sm:     8px;
    --transition:    all .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(13,17,23,.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: .9rem 0;
}
.navbar-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand {
    display: flex; align-items: center; gap: .6rem;
    font-weight: 800; font-size: 1.25rem; color: var(--text-primary);
}
.navbar-brand img {
    height: 30px !important;
    width: auto !important;
    max-width: 140px;
    border-radius: 6px;
    object-fit: contain;
}
.navbar-nav { display: flex; align-items: center; gap: .3rem; }
.navbar-nav a {
    color: var(--text-secondary); padding: .4rem .85rem; border-radius: 6px;
    font-size: .9rem; font-weight: 500; transition: var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--text-primary); background: var(--bg-card); }
.nav-btn {
    background: linear-gradient(135deg, var(--accent), var(--blue)) !important;
    color: #fff !important; padding: .45rem 1.1rem !important;
    border-radius: 8px !important; font-weight: 600 !important;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0,212,255,.12), transparent),
                radial-gradient(ellipse 60% 40% at 80% 80%, rgba(59,130,246,.1), transparent),
                var(--bg-primary);
    padding: 8rem 1.5rem 4rem;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(0,212,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.hero-inner {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(0,212,255,.1); border: 1px solid rgba(0,212,255,.25);
    color: var(--accent); padding: .35rem 1rem; border-radius: 50px;
    font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: .05em;
}
.hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; line-height: 1.15;
    margin-bottom: 1.25rem; letter-spacing: -.02em;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
}
.hero-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    border-radius: var(--radius) var(--radius) 0 0;
}
.server-info { display: grid; gap: .75rem; }
.server-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .6rem 0; border-bottom: 1px solid var(--border);
}
.server-row:last-child { border-bottom: none; }
.server-label { color: var(--text-secondary); font-size: .85rem; }
.server-val { font-weight: 600; font-size: .9rem; }
.server-val.online { color: var(--green); }
.server-val.ip { color: var(--accent); font-family: monospace; }
.status-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--green); margin-right: .4rem;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; } 50% { opacity: .4; }
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.6rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .95rem; cursor: pointer;
    border: none; transition: var(--transition); text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--blue));
    color: #fff;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 8px 25px rgba(0,212,255,.3); }
.btn-outline {
    background: transparent; border: 1px solid var(--border); color: var(--text-primary);
}
.btn-outline:hover { background: var(--bg-card); border-color: var(--accent); color: var(--accent); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { opacity: .9; transform: translateY(-1px); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }

/* ── SECTIONS ── */
.section { padding: 5rem 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .75rem;
}
.section-title p { color: var(--text-secondary); font-size: 1rem; max-width: 500px; margin: 0 auto; }
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.75rem; transition: var(--transition);
}
.feature-card:hover {
    border-color: rgba(0,212,255,.3); transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.feature-icon {
    width: 52px; height: 52px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { color: var(--text-secondary); font-size: .875rem; }

/* ── PRICING ── */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem; align-items: start;
}
.price-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.75rem; position: relative;
    transition: var(--transition);
}
.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--yellow), #ea8c00);
    color: #000; padding: .25rem .8rem; border-radius: 20px;
    font-size: .7rem; font-weight: 800; letter-spacing: .08em;
}
.price-badge.green { background: linear-gradient(135deg, var(--green), #16a34a); color: #fff; }
.price-badge.blue { background: linear-gradient(135deg, var(--blue), #2563eb); color: #fff; }
.price-badge.purple { background: linear-gradient(135deg, var(--purple), #7c3aed); color: #fff; }
.price-name { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.price-type {
    font-size: .75rem; color: var(--accent); background: rgba(0,212,255,.1);
    padding: .15rem .5rem; border-radius: 4px; display: inline-block;
    margin-bottom: 1rem; font-weight: 600;
}
.price-amount { margin-bottom: 1.25rem; }
.price-amount .amount { font-size: 2rem; font-weight: 900; }
.price-amount span { color: var(--text-secondary); font-size: .85rem; }
.price-features { list-style: none; margin-bottom: 1.5rem; }
.price-features li {
    display: flex; align-items: center; gap: .6rem;
    padding: .45rem 0; border-bottom: 1px solid var(--border);
    font-size: .875rem; color: var(--text-secondary);
}
.price-features li:last-child { border-bottom: none; }
.price-features li .check { color: var(--green); font-size: .9rem; }
.price-features li strong { color: var(--text-primary); }

/* ── HOW IT WORKS ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.step-card { text-align: center; }
.step-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 900; color: #fff; margin: 0 auto 1rem;
}
.step-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.step-card p { color: var(--text-secondary); font-size: .85rem; }

/* ── CTA BANNER ── */
.cta-banner {
    background: linear-gradient(135deg, rgba(0,212,255,.08), rgba(59,130,246,.08));
    border: 1px solid rgba(0,212,255,.15);
    border-radius: var(--radius); padding: 3rem 2rem; text-align: center;
    margin: 0 1.5rem;
}
.cta-banner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ── FOOTER ── */
.footer {
    background: var(--bg-secondary); border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem; text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-brand {
    font-size: 1.1rem; font-weight: 800; margin-bottom: .5rem;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer p { color: var(--text-muted); font-size: .875rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: .875rem; }
.footer-links a:hover { color: var(--accent); }

/* ── AUTH PAGES ── */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,255,.08), transparent),
                var(--bg-primary);
    padding: 2rem 1rem;
}
.auth-box {
    width: 100%; max-width: 440px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.5);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo img {
    height: 48px !important;
    width: auto !important;
    max-width: 180px;
    border-radius: 10px;
    margin-bottom: .75rem;
    object-fit: contain;
}
.auth-logo h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: .25rem; }
.auth-logo p { color: var(--text-secondary); font-size: .875rem; }
.auth-box h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block; font-size: .85rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: .5rem;
}
.form-control {
    width: 100%; padding: .7rem 1rem; background: var(--bg-secondary);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-family: inherit; font-size: .9rem;
    transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,255,.15); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.input-group { position: relative; }
.input-icon {
    position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: .9rem;
}
.input-group .form-control { padding-left: 2.5rem; }

.form-divider { text-align: center; margin: 1rem 0; color: var(--text-muted); position: relative; }
.form-divider::before, .form-divider::after {
    content: ''; position: absolute; top: 50%; width: 40%; height: 1px;
    background: var(--border);
}
.form-divider::before { left: 0; } .form-divider::after { right: 0; }
.form-footer { text-align: center; margin-top: 1.25rem; font-size: .875rem; color: var(--text-secondary); }

/* ── ALERTS ── */
.alert {
    padding: .85rem 1.1rem; border-radius: var(--radius-sm);
    margin-bottom: 1.25rem; font-size: .875rem; border: 1px solid transparent;
    display: flex; align-items: flex-start; gap: .6rem;
}
.alert-success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: #4ade80; }
.alert-danger  { background: rgba(239,68,68,.1);  border-color: rgba(239,68,68,.3);  color: #f87171; }
.alert-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: #fbbf24; }
.alert-info    { background: rgba(59,130,246,.1);  border-color: rgba(59,130,246,.3);  color: #60a5fa; }

/* ── BADGES ── */
.badge {
    display: inline-block; padding: .2rem .6rem; border-radius: 20px;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.badge-success   { background: rgba(34,197,94,.15); color: #4ade80; }
.badge-danger    { background: rgba(239,68,68,.15);  color: #f87171; }
.badge-warning   { background: rgba(245,158,11,.15); color: #fbbf24; }
.badge-info      { background: rgba(59,130,246,.15);  color: #60a5fa; }
.badge-primary   { background: rgba(0,212,255,.15);   color: var(--accent); }
.badge-secondary { background: rgba(107,114,128,.2);  color: #9ca3af; }
.badge-purple    { background: rgba(139,92,246,.15);  color: #a78bfa; }

/* ── HAMBURGER / MOBILE ── */
.nav-toggle { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-card { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .navbar-nav { display: none; }
    .nav-toggle { display: block; }
}
