/* ============================================================
   NameFeat — Universal AI Name & Identity Studio
   Design tokens: ink/violet/cyan, Space Grotesk + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root{
  --ink-950:#0A0A14;
  --ink-900:#12121F;
  --ink-850:#171729;
  --ink-800:#1D1D33;
  --line:rgba(255,255,255,0.09);
  --line-soft:rgba(255,255,255,0.05);
  --violet:#8657FF;
  --violet-soft:rgba(134,87,255,0.16);
  --cyan:#34E4EA;
  --cyan-soft:rgba(52,228,234,0.14);
  --text-100:#F1F0F7;
  --text-400:#B7B5CC;
  --text-500:#8B8AA6;
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:9px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(134,87,255,0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(52,228,234,0.10), transparent 55%),
    var(--ink-950);
  color:var(--text-100);
  font-family:'Inter',-apple-system,sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,.brand,.display{
  font-family:'Space Grotesk',sans-serif;
  font-weight:600;
  letter-spacing:-0.01em;
  color:var(--text-100);
  margin:0;
}
p{color:var(--text-400); margin:0 0 1em;}
a{color:inherit; text-decoration:none;}
img{max-width:100%;display:block;}
.container{max-width:1180px; margin:0 auto; padding:0 24px;}
.max-prose{max-width:720px;}

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(10,10,20,0.72);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--line-soft);
}
.header-row{display:flex; align-items:center; justify-content:space-between; padding:16px 24px; gap:24px;}
.brand{display:flex; align-items:center; gap:10px; font-size:19px;}
.brand-mark{
  width:30px;height:30px;border-radius:9px;
  background:linear-gradient(135deg,var(--violet),var(--cyan));
  display:flex; align-items:center; justify-content:center;
  font-size:15px; font-weight:700; color:#0A0A14; flex-shrink:0;
}
.nav-links{display:flex; gap:28px; list-style:none; margin:0; padding:0;}
.nav-links a{font-size:14.5px; color:var(--text-400); transition:color .15s;}
.nav-links a:hover, .nav-links a.active{color:var(--text-100);}
.nav-cta{
  display:inline-flex; align-items:center; gap:8px;
  background:linear-gradient(135deg,var(--violet),#6C3FE0);
  color:#fff; font-size:14px; font-weight:600;
  padding:10px 18px; border-radius:100px;
  border:1px solid rgba(255,255,255,0.14);
  white-space:nowrap;
}
.nav-toggle{display:none; background:none; border:1px solid var(--line); border-radius:8px; padding:8px 10px; color:var(--text-100);}

@media (max-width:860px){
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0;
    background:var(--ink-900); border-bottom:1px solid var(--line);
    padding:8px 24px; display:none;
  }
  .nav-links.open{display:flex;}
  .nav-links a{padding:14px 0; border-bottom:1px solid var(--line-soft); width:100%;}
  .nav-toggle{display:block;}
}

/* ---------- Buttons / inputs ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:'Inter'; font-weight:600; font-size:14.5px;
  padding:13px 22px; border-radius:12px; cursor:pointer; border:none;
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:active{transform:scale(0.97);}
.btn-primary{
  background:linear-gradient(135deg,var(--violet),#6C3FE0); color:#fff;
  box-shadow:0 8px 24px -8px rgba(134,87,255,0.65);
}
.btn-primary:hover{box-shadow:0 10px 30px -6px rgba(134,87,255,0.8);}
.btn-ghost{background:var(--ink-800); color:var(--text-100); border:1px solid var(--line);}
.btn-ghost:hover{border-color:rgba(255,255,255,0.22);}
.btn-sm{padding:8px 14px; font-size:13px; border-radius:9px;}

input[type=text], input[type=date], select, input[type=email], textarea{
  width:100%; background:var(--ink-850); border:1px solid var(--line);
  color:var(--text-100); font-family:'Inter'; font-size:15px;
  padding:13px 16px; border-radius:12px; outline:none;
}
input:focus, select:focus, textarea:focus{border-color:var(--violet); box-shadow:0 0 0 3px var(--violet-soft);}
label{font-size:13px; color:var(--text-500); display:block; margin-bottom:7px; font-weight:500;}

/* pill filter chips */
.chip-row{display:flex; flex-wrap:wrap; gap:8px;}
.chip{
  padding:8px 15px; border-radius:100px; border:1px solid var(--line);
  background:var(--ink-850); color:var(--text-400); font-size:13.5px; cursor:pointer;
  font-weight:500; transition:all .12s;
}
.chip.active{background:var(--violet-soft); border-color:var(--violet); color:#D9CBFF;}
.chip:hover{border-color:rgba(255,255,255,0.25);}

/* ---------- Glass panel / cards ---------- */
.glass{
  background:linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  backdrop-filter:blur(6px);
}

/* ---------- Hero ---------- */
.hero{padding:56px 0 40px;}
.hero-grid{display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center;}
.hero-eyebrow{color:var(--cyan); font-size:13.5px; font-weight:600; margin-bottom:14px;}
.hero h1{font-size:44px; line-height:1.08; margin-bottom:18px;}
.hero h1 .grad{background:linear-gradient(135deg,var(--violet),var(--cyan)); -webkit-background-clip:text; background-clip:text; color:transparent;}
.hero p.lead{font-size:17px; max-width:480px; margin-bottom:28px;}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap;}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
  .hero h1{font-size:32px;}
}

/* live demo widget */
.demo-card{padding:22px; border-radius:var(--radius-lg);}
.demo-tabs{display:flex; gap:6px; margin-bottom:16px; flex-wrap:wrap;}
.demo-tab{
  font-size:12.5px; padding:7px 12px; border-radius:100px; cursor:pointer;
  color:var(--text-500); border:1px solid transparent;
}
.demo-tab.active{background:var(--ink-800); color:var(--text-100); border-color:var(--line);}
.demo-results{display:grid; gap:8px; margin-top:14px; min-height:150px;}
.result-pill{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px; background:var(--ink-850); border:1px solid var(--line);
  border-radius:11px; font-size:15px; font-weight:500;
  animation:pop .28s ease both;
}
@keyframes pop{from{opacity:0; transform:translateY(4px);} to{opacity:1; transform:translateY(0);}}
.copy-btn{background:none; border:none; color:var(--text-500); cursor:pointer; font-size:12.5px; padding:4px 8px; border-radius:6px;}
.copy-btn:hover{color:var(--cyan); background:var(--cyan-soft);}

/* ---------- Sections ---------- */
section{padding:64px 0;}
.section-head{max-width:600px; margin-bottom:36px;}
.section-head h2{font-size:29px; margin-bottom:10px;}

.hub-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
.hub-card{padding:26px; transition:transform .15s, border-color .15s;}
.hub-card:hover{transform:translateY(-3px); border-color:rgba(255,255,255,0.2);}
.hub-card .icon{
  width:42px;height:42px;border-radius:11px; margin-bottom:16px;
  display:flex; align-items:center; justify-content:center; font-size:19px;
}
.hub-card h3{font-size:17px; margin-bottom:8px;}
.hub-card p{font-size:14px; margin-bottom:14px;}
.hub-card .tool-list{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px;}
.hub-card .tool-list a{font-size:13.5px; color:var(--text-500); display:flex; align-items:center; gap:6px;}
.hub-card .tool-list a:hover{color:var(--cyan);}
.hub-card .tool-list .soon{opacity:.5; cursor:default;}

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

/* ---------- Ad slots ---------- */
.ad-slot{
  border:1px dashed var(--line);
  border-radius:var(--radius-md);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-500); font-size:12px; font-family:'Inter';
  background:var(--ink-900); margin:0 auto;
}
.ad-leaderboard{max-width:728px; height:90px; margin:0 auto 0;}
.ad-sidebar{width:300px; height:250px;}
.ad-infeed{width:100%; height:120px;}

/* ---------- Tool page layout ---------- */
.tool-page-grid{display:grid; grid-template-columns:1fr 300px; gap:32px; align-items:start;}
@media (max-width:980px){.tool-page-grid{grid-template-columns:1fr;} .ad-sidebar{width:100%; margin:0 auto;}}

.tool-hero{padding:44px 0 28px;}
.tool-hero h1{font-size:34px; margin-bottom:10px;}
.tool-hero p{font-size:16px; max-width:640px;}

.tool-panel{padding:26px;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:18px;}
@media (max-width:600px){.field-row{grid-template-columns:1fr;}}
.results-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:20px;}
@media (max-width:600px){.results-grid{grid-template-columns:1fr;}}
.empty-state{color:var(--text-500); font-size:14px; padding:20px 0; text-align:center;}

.toast{
  position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--ink-800); border:1px solid var(--line); color:var(--text-100);
  padding:12px 20px; border-radius:100px; font-size:14px; font-weight:500;
  opacity:0; transition:all .25s ease; pointer-events:none; z-index:100;
  box-shadow:0 10px 30px rgba(0,0,0,0.4);
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0);}

/* ---------- SEO content block ---------- */
.seo-block{max-width:760px; margin:0 auto;}
.seo-block h2{font-size:24px; margin:40px 0 14px;}
.seo-block h2:first-child{margin-top:0;}
.seo-block h3{font-size:17px; color:var(--text-100); margin:22px 0 8px;}
.seo-block p{font-size:15px;}
.seo-block ol, .seo-block ul{color:var(--text-400); font-size:15px; padding-left:20px;}
.seo-block li{margin-bottom:6px;}

/* FAQ accordion */
.faq-item{border-bottom:1px solid var(--line-soft);}
.faq-q{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 2px; cursor:pointer; font-weight:600; font-size:15px; color:var(--text-100);
}
.faq-q .plus{color:var(--violet); font-size:20px; transition:transform .2s; flex-shrink:0; margin-left:16px;}
.faq-item.open .plus{transform:rotate(45deg);}
.faq-a{max-height:0; overflow:hidden; transition:max-height .25s ease;}
.faq-a p{padding:0 2px 18px; font-size:14.5px;}

/* ---------- Blog ---------- */
.blog-card{padding:24px;}
.blog-card .tag{font-size:12px; color:var(--cyan); font-weight:600; margin-bottom:10px;}
.blog-card h3{font-size:19px; margin-bottom:10px;}

/* ---------- Footer ---------- */
footer{border-top:1px solid var(--line-soft); padding:48px 0 28px; margin-top:40px;}
.footer-grid{display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:32px; margin-bottom:36px;}
.footer-col h4{font-size:13px; color:var(--text-500); margin-bottom:14px; font-weight:600;}
.footer-col ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px;}
.footer-col a{font-size:13.5px; color:var(--text-400);}
.footer-col a:hover{color:var(--text-100);}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding-top:24px; border-top:1px solid var(--line-soft); font-size:13px; color:var(--text-500);}
@media (max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;}}

.legal-page h1{font-size:30px; margin-bottom:8px;}
.legal-page .updated{font-size:13px; color:var(--text-500); margin-bottom:32px;}
.legal-page h2{font-size:19px; margin:28px 0 10px;}
.legal-page p, .legal-page li{font-size:15px; color:var(--text-400);}
