/* ================= BASE ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}
/* ================= THEME VARIABLES ================= */
:root {
    /* Backgrounds */
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    /* Texto */
    --text-main: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #475569;
    /* Bordas */
    --border-color: #e5e7eb;
    /* Azul principal (original do site) */
    --primary: #2563eb;
    --primary-hover: #1e40af;
    --primary-soft: rgba(37, 99, 235, 0.15);
}
/* DARK MODE */
[data-theme="dark"] {
    --bg-main: #020617;
    --bg-secondary: #020617;
    --bg-card: #020617;
    --text-main: #e5e7eb;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #60a5fa;
    --primary-hover: #3b82f6;
	
	/* ================= FORCE BODY THEME ================= */
	html[data-theme="dark"] body {
    background: var(--bg-main);
    color: var(--text-main);
}

}
/* ================= MENU ================= */
.menu {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 6vw;
    min-height: 84px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}
.logo a {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
}
.logo a:visited {
    color: var(--text-main);
    /* remove roxo */
}
.logo a span {
    color: var(--primary);
    /* azul do X */
}
.logo a span {
    color: var(--primary);
    /* azul do site */
}
.menu-links a {
    position: relative;
    margin-left: 28px;
    text-decoration: none;
    font-weight: 500;
    color: var(--text-main);
    padding-bottom: 6px;
}
.menu-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    transition: width .25s ease;
}
.menu-links a:hover::after {
    width: 100%;
}
/* ================= HERO ================= */
.hero {
    padding: 120px 6vw 90px;
    text-align: left;
}
.hero h1 {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 800;
    max-width: 14ch;
}
.hero p {
    margin-top: 18px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}
/* ================= TOOLS ================= */
.tools {
    padding: 80px 6vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.tool-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    background: var(--bg-main);
    transition: transform .2s ease, box-shadow .2s ease;
}
.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}
.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.tool-card p {
    color: #64748b;
    font-size: .95rem;
}
.tool-card button {
    margin-top: 0px;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}
.tool-card button:hover {
    background: var(--primary-hover);
}
/* ================= ABOUT ================= */
.about {
    padding: 100px 6vw;
    background: var(--bg-secondary);
    text-align: center;
}
.about h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}
.about p {
    max-width: 700px;
    margin: 0 auto;
    color: #475569;
}
/* ================= CONTACT ================= */
.contact {
    padding: 90px 6vw;
    text-align: center;
}
.contact h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}
.contact p {
    color: #64748b;
}
.contact-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 26px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px;
}
.contact-btn:hover {
    background: var(--primary-hover);
}
/* ================= FOOTER ================= */
.footer {
    padding: 24px;
    text-align: center;
    font-size: .85rem;
    color: #64748b;
    border-top: 1px solid var(--border-color);
}
/* ================= TOOL FOOTER ================= */
.tool-footer {
    padding: 40px 6vw 80px;
    text-align: center;
}
.tool-footer .back-link {
    display: inline-block;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.tool-footer .back-link:hover {
    text-decoration: underline;
}
/* ================= MOBILE ================= */
@media (max-width:768px) {
    .menu-links {
        display: none;
    }
    .hero {
        padding-top: 90px;
    }
}
/* ================= HERO SPLIT ================= */
.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
    padding: 120px 6vw 100px;
}
/* TEXTO */
.hero-text {
    max-width: 640px;
}
.hero-text h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
/* destaque */
.hero-text .accent {
    color: var(--primary);
    position: relative;
}
.hero-text .accent::after {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    bottom: 6px;
    height: 10px;
    background: rgba(37, 99, 235, 0.15);
    z-index: -1;
    border-radius: 6px;
}
.hero-text p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 460px;
    margin-bottom: 32px;
}
/* BOTÕES */
.hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}
.btn-primary {
    padding: 14px 26px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
}
.btn-primary:hover {
    background: var(--primary-hover);
}
.btn-secondary {
    padding: 14px 26px;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 999px;
}
.btn-secondary:hover {
    var(--bg-hover);
}
/* BLOCO DE CÓDIGO */
.hero-code {
    background: #0f172a;
    color: #e5e7eb;
    width: 100%;
    max-width: 620px;
    /* ⬅️ maior presença */
    min-height: 300px;
    /* ⬅️ mais “peso visual” */
    border-radius: 18px;
    padding: 0;
    /* header controla o padding */
    font-size: .95rem;
    line-height: 1.6;
    box-shadow: 0 40px 120px rgba(0, 0, 0, .18);
}
.hero-code code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #e5e7eb;
}
/* MOBILE */
@media (max-width:900px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-code {
        max-width: 100%;
        min-height: 260px;
        transform: none;
    }
    .hero-code::after {
        content: "demo";
        position: absolute;
        top: 10px;
        right: 14px;
        font-size: 0.65rem;
        letter-spacing: 0.12em;
        opacity: 0.35;
    }
}
/* ================= TERMINAL ================= */
.terminal {
    padding: 0;
    overflow: hidden;
}
/* header estilo macOS */
.terminal-header {
    display: flex;
    gap: 8px;
    padding: 22px 24px;
    max-height: 260px;
    background: #020617;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-body {
    text-align: left;
    padding: 18px;
    max-height: 200px;
    /* 🔑 limite visual */
    overflow-y: auto;
    /* 🔑 scroll interno */
    overflow-x: hidden;
}
.terminal-body:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.35);
}
/* scroll bonito (opcional) */
.terminal-body::-webkit-scrollbar {
    width: 6px;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
}
.line, .output {
    display: block;
    text-align: left;
    padding-left: 4px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red {
    background: #ef4444;
}
.dot.yellow {
    background: #facc15;
}
.dot.green {
    background: #22c55e;
}
/* corpo */
.terminal pre {
    margin: 0;
    padding: 18px 20px 22px;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.55;
}
.prompt {
    color: #22c55e;
}
.path {
    color: #60a5fa;
}
.cursor {
    animation: blink 1s steps(2) infinite;
}
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}
/* ================= HERO SEARCH ================= */
.hero-search {
    position: relative;
}
.hero-search input {
    height: 52px;
    min-width: 280px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--bg-main);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
    transition: border .2s ease, box-shadow .2s ease;
}
.hero-search input::placeholder {
    color: #94a3b8;
}
.hero-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
/* MOBILE */
@media (max-width:640px) {
    .hero-search input {
        min-width: 100%;
    }
}
/* ================= SEARCH DROPDOWN ================= */
.search-results {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
    overflow: hidden;
    display: none;
    z-index: 50;
}
.search-item {
    padding: 14px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: background .15s ease;
}
.search-item span {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    color: #64748b;
}
.search-item:hover {
    var(--bg-hover);
}
/* ================= WHAT'S MY IP ================= */
.ip-main {
    text-align: left;
}
.ip-value {
    margin-top: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}
.ip-main button {
    margin-top: 16px;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.ip-main button:hover {
    background: var(--primary-hover);
}
.location {
    display: flex;
    align-items: center;
    gap: 12px;
}
.location img {
    width: 32px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
/* ================= IP TOOL BUTTONS ================= */
.ip-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
/* botão pequeno e clean */
.btn-inline {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background .15s ease, border .15s ease;
}
.btn-inline:hover {
    var(--bg-hover);
    border-color: #c7d2fe;
}
/* botão tipo link (ação secundária) */
.btn-link {
    margin-top: 12px;
    padding: 0;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.btn-link:hover {
    text-decoration: underline;
}
/* textos secundários */
.tool-card small {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #64748b;
}
/* ================= THEME TOGGLE (CLEAN) ================= */

.theme-toggle {
  margin-left: 22px;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--border-color);
  position: relative;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s ease;
}

/* bolinha */
.theme-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-main);
  transition: transform .25s ease, background .25s ease;
}


/* DARK MODE */
[data-theme="dark"] .theme-toggle {
    background: var(--primary);
}

[data-theme="dark"] .theme-toggle::after {
    transform: translateX(20px);
    background: #fff;
}

/* ========================= FIX DEFINITIVO – IP TOOL ========================= */
.hero.hero-layout {
    padding: 80px 6vw;
}
.hero.hero-layout h1, .hero.hero-layout p {
    max-width: none;
}
.hero-layout {
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
    justify-content: center;
}
.hero-left {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
.hero-cards .tool-card {
    max-width: 520px;
}
.hero-map {
    width: 100%;
    height: 560px;
    border-radius: 24px;
    overflow: hidden;
    position: sticky;
    top: 120px;
}

/* ================= SUBNET TOOL ================= */


.subnet-row {
    display: flex;
    gap: 12px;
    align-items: stretch; /* 👈 magia */
}

.subnet-row input,
.subnet-row button {
    height: 44px;
    margin-top: 0;
}

.subnet-row input {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-family: inherit;
}

.subnet-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.subnet-row button {
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
}

.subnet-result {
  margin-top: 18px;
  font-size: 0.9rem;
}


/* MOBILE */
@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }
    .hero-left, .hero-cards .tool-card {
        max-width: 100%;
    }
    .hero-map {
        height: 320px;
        position: relative;
        top: 0;
    }
}