/* NIFEX AI welcome page */
:root {
  --ink: #070f2e; --ink-2: #2b375b; --muted: #5b6a8d;
  --blue: #0f5bff; --blue-2: #0b47e0; --line: rgba(20, 70, 180, 0.12);
  --font: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.5; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(34, 200, 245, 0.8); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { width: min(820px, 100%); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: 12px; font-weight: 600; font-size: 17px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, box-shadow .2s, background .15s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(15, 91, 255, 0.8); }
.btn-primary:hover { background: var(--blue-2); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: #f0f5ff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-xl { min-height: 60px; font-size: 18px; padding: 0 34px; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(20, 70, 180, 0.06); padding-top: env(safe-area-inset-top, 0px); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 90px; }
.logo { display: flex; align-items: flex-end; text-decoration: none; line-height: 0.8; }
.logo-ai { font-size: 58px; font-weight: 800; letter-spacing: -0.06em; color: var(--blue); }
.logo-spark { width: 22px; height: 22px; fill: var(--blue); align-self: flex-start; margin: -2px 0 0 -2px; }
.logo-name { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-left: -6px; margin-bottom: 2px; }
.nav-links { margin-left: auto; display: flex; gap: 42px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 17px; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { display: flex; gap: 18px; margin-left: 42px; }

/* Hero */
.hero { background: linear-gradient(180deg, #eef3fd 0%, #f2f6fe 70%, #fff 70%); padding-bottom: 32px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding-top: 36px; padding-bottom: 28px; }
.pill { display: inline-block; padding: 9px 20px; border-radius: 999px; background: #dfe9fd; color: var(--blue-2); font-weight: 500; font-size: 17px; }
.hero h1 { margin-top: 26px; font-size: clamp(44px, 5.6vw, 84px); line-height: 0.98; font-weight: 800; letter-spacing: -0.055em; }
.hero h1 span { color: var(--blue); }
.lead { margin-top: 26px; max-width: 34em; font-size: 21px; color: #4a5778; line-height: 1.5; }
.cta { margin-top: 34px; }
.gbtn { min-height: 52px; display: flex; align-items: center; }
.gbtn-wait { color: var(--muted); font-size: 15px; }
.cta-note { margin-top: 16px; font-size: 17px; color: var(--ink-2); }
.notice { margin-top: 18px; padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; max-width: 32em; }
.notice.info { background: #e7efff; color: #0b3fb8; }
.notice.error { background: #ffeaea; color: #b4172a; }

.hero-art { position: relative; min-height: 520px; display: grid; place-items: center; }
.halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(206, 222, 255, 0.9), rgba(230, 238, 255, 0) 70%); }
.robot { position: relative; width: min(560px, 92%); height: auto; filter: drop-shadow(0 30px 40px rgba(20, 60, 170, 0.18)); }
.bubble {
  position: absolute; display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 18px; border-radius: 18px;
  font-weight: 500; font-size: 19px; line-height: 1.3; box-shadow: 0 12px 30px -14px rgba(20, 60, 170, 0.35);
}
.bubble::after { content: ''; position: absolute; width: 18px; height: 18px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.bi { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.bi svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.b-ask { top: 2%; left: 6%; background: #d6e6ff; color: #0f4fd8; }
.b-ask::after { bottom: -7px; left: 70%; }
.b-ask .bi { color: #fff; background: #2f8bff; border-radius: 50%; }
.b-ask .bi svg { width: 24px; height: 24px; }
.b-answer { top: 8%; right: 0; background: #d8f5df; color: #138a3c; }
.b-answer::after { bottom: 14px; left: -7px; }
.b-answer .bi { color: #18a547; }
.b-data { top: 40%; left: 0; background: #ffe2cf; color: #d1531a; }
.b-data::after { bottom: -7px; right: 26px; }
.b-data .bi { color: #f2620f; }
.b-create { top: 33%; right: -2%; background: #e8e0ff; color: #5b3df2; }
.b-create::after { bottom: 14px; left: -7px; }
.b-create .bi { color: #6c4ef2; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fcard { background: #fff; border: 1px solid #e6ecf8; border-radius: 18px; padding: 22px 24px 26px; box-shadow: 0 10px 30px -22px rgba(20, 60, 170, 0.45); }
.ftile { width: 70px; height: 68px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.ftile svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ft-blue { background: #dfeeff; color: #1b86f5; }
.ft-green { background: #dcf6e3; color: #17a34a; }
.ft-violet { background: #ebe4ff; color: #6c47f0; }
.ft-orange { background: #ffe6d6; color: #f2620f; }
.fcard h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.fcard p { margin-top: 8px; font-size: 19px; color: #4a5778; }
.trust { list-style: none; margin: 44px 0 0; padding: 0; display: flex; justify-content: center; gap: 120px; flex-wrap: wrap; }
.trust li { display: flex; align-items: center; gap: 18px; }
.trust svg { width: 38px; height: 38px; fill: none; stroke: #2b375b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.trust span { display: flex; flex-direction: column; font-size: 15.5px; color: var(--muted); }
.trust strong { color: var(--ink); font-weight: 500; font-size: 16.5px; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: #f4f7fe; }
.section-title { text-align: center; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.035em; }
.section-sub { text-align: center; margin-top: 10px; font-size: 19px; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid #e6ecf8; }
.num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; font-size: 20px; }
.steps h3 { margin-top: 18px; font-size: 21px; letter-spacing: -0.01em; }
.steps p { margin-top: 6px; color: #4a5778; font-size: 17px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; align-items: start; }
.plan { background: #fff; border: 1px solid #e3eaf8; border-radius: 22px; padding: 30px 28px; }
.plan.featured { border: 2px solid var(--blue); box-shadow: 0 20px 44px -24px rgba(15, 91, 255, 0.6); }
.plan h3 { font-size: 22px; }
.price { margin-top: 10px; font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price.soon { font-size: 24px; color: var(--muted); font-weight: 700; padding: 12px 0 4px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.plan li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 16.5px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.plan-note { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.plans.four { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plans.four .plan { padding: 26px 22px; }
.plans.four .price { font-size: 34px; }
@media (max-width: 1100px) { .plans.four { grid-template-columns: repeat(2, 1fr); } }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { margin-top: 34px; border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 600; font-size: 18.5px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--blue); font-weight: 500; }
details[open] summary::after { content: '−'; }
details p { padding: 0 2px 20px; color: #4a5778; font-size: 17px; }
details a { color: var(--blue); }
.final { background: linear-gradient(100deg, #051446 0%, #08237a 40%, #0d49cf 75%, #0a2d94 100%); color: #fff; padding: 56px 0; }
.final-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.final h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 15px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--blue); }

/* Sign-in modal */
.gmodal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(4, 14, 50, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gmodal-card { position: relative; width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 34px 28px 26px; text-align: center; box-shadow: 0 30px 80px -20px rgba(4, 20, 80, 0.55); }
.gmodal-card h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 14px; }
.gmodal-card > p { margin-top: 8px; color: #4a5778; }
.gmodal-card .gbtn { justify-content: center; margin: 22px 0 16px; }
.gmark img { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto; }
.gclose { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1f4fb; font-size: 24px; line-height: 1; color: var(--ink-2); }
.fine { font-size: 13.5px; color: var(--muted); }
.fine a { color: var(--blue); }
.busy { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(255, 255, 255, 0.9); font-weight: 600; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #dbe6ff; border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 1180px) {
  .nav-links { gap: 26px; }
  .nav-cta { margin-left: 20px; gap: 12px; }
  .trust { gap: 48px; }
  .bubble { font-size: 16px; padding: 12px 16px 12px 14px; }
  .bi { width: 36px; height: 36px; } .bi svg { width: 28px; height: 28px; }
}
@media (max-width: 960px) {
  html { scroll-padding-top: 72px; }
  .wrap { padding: 0 18px; }
  .nav-row { height: 70px; gap: 12px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; gap: 8px; }
  .nav-cta .btn { min-height: 42px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
  .logo-ai { font-size: 42px; } .logo-name { font-size: 22px; margin-left: -4px; } .logo-spark { width: 16px; height: 16px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 22px; gap: 4px; }
  .hero-copy { text-align: center; }
  .hero h1 { margin-top: 18px; }
  .lead { margin: 18px auto 0; font-size: 18px; }
  .cta { display: flex; flex-direction: column; align-items: center; margin-top: 26px; }
  .gbtn { justify-content: center; width: 100%; max-width: 400px; }
  .notice { margin-left: auto; margin-right: auto; }
  .hero-art { min-height: 0; padding: 30px 0 10px; }
  .robot { width: min(420px, 78%); }
  .b-ask { top: 2%; left: 0; } .b-answer { top: 10%; right: 0; } .b-data { top: 52%; left: 0; } .b-create { top: 46%; right: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fcard { padding: 18px; }
  .ftile { width: 54px; height: 54px; margin-bottom: 14px; } .ftile svg { width: 30px; height: 30px; }
  .fcard h2 { font-size: 18px; } .fcard p { font-size: 15.5px; }
  .trust { flex-direction: column; align-items: flex-start; gap: 18px; width: fit-content; margin-left: auto; margin-right: auto; }
  .section { padding: 60px 0; }
  .steps, .plans, .plans.four { grid-template-columns: 1fr; }
  .final-row { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .nav-cta [data-signin="signin"] { display: none; }
  .bubble { font-size: 13.5px; gap: 8px; padding: 9px 12px 9px 10px; border-radius: 14px; }
  .bubble br { display: none; }
  .bi { width: 26px; height: 26px; } .bi svg { width: 22px; height: 22px; }
  .b-ask .bi svg { width: 16px; height: 16px; }
  .fcard { padding: 14px; border-radius: 16px; }
  .ftile { width: 46px; height: 46px; margin-bottom: 10px; border-radius: 12px; } .ftile svg { width: 26px; height: 26px; }
  .fcard h2 { font-size: 16px; } .fcard p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
