/* assets/css/style.css */
:root{
  --bg: #ffffff;
  --text: #1e2230;
  --muted: #6b7280;

  --card: rgba(255,255,255,.72);
  --stroke: rgba(155, 170, 200, .35);

  --p1: #6d7cff;     /* primary */
  --p2: #7c4dff;     /* purple */
  --c1: #7dd3fc;     /* sky */
  --c2: #c4b5fd;     /* lavender */
  --c3: #a7f3d0;     /* mint */

  --shadow: 0 20px 60px rgba(18, 28, 45, .12);
  --shadow2: 0 12px 30px rgba(18, 28, 45, .10);

  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 14px;

  --container: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(125, 211, 252, .35), transparent 70%),
    radial-gradient(900px 500px at 80% 10%, rgba(196, 181, 253, .35), transparent 70%),
    radial-gradient(700px 400px at 50% 85%, rgba(167, 243, 208, .25), transparent 70%),
    #fff;
}

a{ color:inherit; text-decoration:none; }
.container{
  width:min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}

.muted{ color:var(--muted); }
.center{ text-align:center; }

/* Top bar */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.62);
  border-bottom: 1px solid rgba(165, 180, 252, .25);
}
.topbar__inner{
  display:flex; align-items:center; gap:18px;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700;
}
.brand__mark{
  width:38px; height:38px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(109,124,255,.18), rgba(124,77,255,.18));
  border: 1px solid rgba(109,124,255,.25);
  box-shadow: var(--shadow2);
}
.brand__name{ letter-spacing:.2px; }

.nav{ display:flex; gap:16px; margin-left:14px; }
.nav__link{
  font-weight:600;
  color: rgba(30,34,48,.68);
  padding:10px 10px;
  border-radius: 12px;
}
.nav__link.active, .nav__link:hover{
  background: rgba(109,124,255,.10);
  color: rgba(30,34,48,.92);
}

.topbar__right{ margin-left:auto; display:flex; gap:12px; align-items:center; }

.search{
  display:flex; align-items:center; gap:10px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(165, 180, 252, .35);
  box-shadow: 0 10px 26px rgba(17, 24, 39, .06);
  border-radius: 999px;
  padding: 10px 14px;
  min-width: 260px;
}
.search__icon{ opacity:.6; font-weight:800; }
.search__input{
  border:0; outline:0; background:transparent;
  width:100%;
  font-size:14px;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight:700;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn--primary{
  color:#fff;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  box-shadow: 0 14px 30px rgba(109,124,255,.28);
}
.btn--glow{
  color:#fff;
  background: linear-gradient(135deg, #5aa8ff, #7c4dff);
  box-shadow: 0 18px 40px rgba(124,77,255,.25);
}
.btn--ghost{
  background: rgba(255,255,255,.70);
  border-color: rgba(165, 180, 252, .45);
}
.btn--soft{
  background: rgba(109,124,255,.10);
  border-color: rgba(109,124,255,.18);
  color: rgba(30,34,48,.92);
}

/* Main layout */
.main{ padding-bottom: 60px; }

/* Hero section */
.hero{
  padding: 46px 0 22px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items:center;
}
.hero h1{
  margin:0 0 12px;
  font-size: clamp(34px, 4vw, 48px);
  line-height:1.08;
}
.hero p{ margin:0 0 18px; font-size: 15.5px; line-height:1.6; }
.hero__actions{ display:flex; gap:12px; flex-wrap:wrap; }

.hero__art{ position:relative; }
.art-card{ position:relative; border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.55)); border: 1px solid rgba(165, 180, 252, .35); box-shadow: var(--shadow); padding: 18px; overflow:hidden; }
.art-card::before{ content:""; position:absolute; inset:-60px -60px auto auto; width:220px; height:220px; border-radius:50%; background: radial-gradient(circle at 30% 30%, rgba(125,211,252,.45), transparent 65%); }
.art-card::after{ content:""; position:absolute; inset:auto auto -90px -90px; width:260px; height:260px; border-radius:50%; background: radial-gradient(circle at 40% 40%, rgba(196,181,253,.45), transparent 65%); }
.art-monitor{ position:relative; z-index:1; border-radius: 22px; background: rgba(255,255,255,.85); border: 1px solid rgba(165, 180, 252, .35); box-shadow: 0 18px 44px rgba(17,24,39,.10); overflow:hidden; }
.art-toolbar{ display:flex; align-items:center; gap:8px; padding: 12px 14px; border-bottom: 1px solid rgba(165, 180, 252, .26); }
.dot{ width:10px; height:10px; border-radius:50%; background: rgba(109,124,255,.30); }
.pill{ margin-left:auto; font-size: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(109,124,255,.10); border: 1px solid rgba(109,124,255,.18); color: rgba(30,34,48,.72); font-weight:700; }
.art-body{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; }
.art-thumb{ height: 140px; border-radius: 18px; background: linear-gradient(135deg, rgba(125,211,252,.50), rgba(196,181,253,.50)), rgba(255,255,255,.6); border: 1px solid rgba(165, 180, 252, .30); }
.art-lines{ display:flex; flex-direction:column; gap:10px; padding-top:8px; }
.art-lines span{ height: 14px; border-radius: 999px; background: rgba(109,124,255,.12); border: 1px solid rgba(109,124,255,.12); }
.art-lines span:nth-child(2){ width:85%; }
.art-lines span:nth-child(3){ width:70%; }
.floating{ position:absolute; width:58px; height:58px; border-radius: 18px; background: rgba(255,255,255,.78); border: 1px solid rgba(165, 180, 252, .35); box-shadow: 0 16px 34px rgba(17,24,39,.12); display:grid; place-items:center; z-index:2; backdrop-filter: blur(12px); }
.f1{ top: 18px; left: 18px; transform: rotate(-6deg); }
.f2{ top: 40px; right: 18px; transform: rotate(7deg); }
.f3{ bottom: 36px; left: 26px; transform: rotate(8deg); }
.f4{ bottom: 22px; right: 24px; transform: rotate(-7deg); }
.icon svg{ width:28px; height:28px; stroke: rgba(64, 70, 90, .85); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Section */
.section{ padding: 34px 0; }
.section--alt{ background: linear-gradient(180deg, rgba(109,124,255,.08), rgba(255,255,255,0)); border-top: 1px solid rgba(165, 180, 252, .18); border-bottom: 1px solid rgba(165, 180, 252, .18); }
.section__head h2{ margin: 0 0 6px; font-size: 26px; }
.section__head p{ margin:0; }
.section__head.center{ margin-bottom: 18px; }
.section__head{ margin-bottom: 16px; }
.grid{ display:grid; gap: 14px; }
.tools-grid{ grid-template-columns: repeat(4, 1fr); }
.reasons-grid{ grid-template-columns: repeat(4, 1fr); }
.card{ border-radius: var(--r-xl); background: var(--card); border: 1px solid rgba(165, 180, 252, .35); box-shadow: 0 18px 44px rgba(17,24,39,.08); backdrop-filter: blur(14px); }
.tool-card{ padding: 16px; display:flex; gap: 12px; align-items:flex-start; transition: transform .15s ease, box-shadow .15s ease; }
.tool-card:hover{ transform: translateY(-2px); box-shadow: 0 22px 52px rgba(17,24,39,.12); }
.tool-card__icon{ width: 46px; height: 46px; border-radius: 16px; display:grid; place-items:center; background: linear-gradient(135deg, rgba(125,211,252,.25), rgba(196,181,253,.25)); border: 1px solid rgba(165, 180, 252, .35); flex: 0 0 auto; }
.tool-card h3{ margin: 1px 0 6px; font-size: 16px; }
.tool-card p{ margin:0; font-size: 13.5px; line-height: 1.45; }
.reason-card{ padding: 16px; display:flex; gap: 12px; align-items:flex-start; }
.reason-card__icon{ width: 46px; height: 46px; border-radius: 16px; display:grid; place-items:center; background: linear-gradient(135deg, rgba(167,243,208,.25), rgba(196,181,253,.25)); border: 1px solid rgba(165, 180, 252, .35); flex: 0 0 auto; }
.reason-card h3{ margin: 2px 0 6px; font-size: 16px; }
.reason-card p{ margin:0; font-size: 13.5px; line-height:1.45; }
.section__cta{ margin-top: 16px; display:flex; justify-content:center; }

/* Footer */
.footer{ padding: 34px 0 18px; border-top: 1px solid rgba(165, 180, 252, .22); background: rgba(255,255,255,.55); backdrop-filter: blur(14px); }
.footer__grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; }
.footer__col h4{ margin: 6px 0 10px; }
.footer__col a{ display:block; padding: 6px 0; color: rgba(30,34,48,.72); font-weight:600; }
.footer__col a:hover{ color: rgba(30,34,48,.92); }
.brand--footer .brand__mark{ width:34px; height:34px; border-radius: 14px; }
.social{ display:flex; gap:10px; margin-top: 12px; }
.social a{ width:36px; height:36px; border-radius: 14px; display:grid; place-items:center; background: rgba(109,124,255,.10); border: 1px solid rgba(109,124,255,.18); font-weight:800; }
.footer__bottom{ margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(165, 180, 252, .18); display:flex; align-items:center; justify-content:space-between; gap: 10px; flex-wrap:wrap; }
.footer__links{ display:flex; gap: 12px; }
.footer__links a{ color: rgba(30,34,48,.64); font-weight:700; }
.footer__links a:hover{ color: rgba(30,34,48,.92); }

/* ------------------------------------------------------------------
   Form elements and alerts
   ------------------------------------------------------------------ */
/* Style generic form controls to blend with the modern UI. Many tool
   pages still use Bootstrap class names such as `.form-control` and
   `.btn-primary`. Override these classes here to adopt the same look
   and feel as the rest of the site without requiring per‑tool changes. */

label {
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-block;
}

/* Text inputs, selects and textareas */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
textarea,
select,
.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(165, 180, 252, .35);
  background: rgba(255,255,255,.80);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-shadow: 0 4px 10px rgba(17,24,39,.05);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(109,124,255,.65);
  box-shadow: 0 0 0 4px rgba(109,124,255,.15);
}

/* Buttons: override generic Bootstrap classes to use our gradient design */
.btn,
.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
  text-decoration: none;
}
.btn:hover,
.btn-primary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover {
  transform: translateY(-1px);
}

/* Primary button (default action) */
.btn-primary,
.btn-success {
  color: #fff;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  box-shadow: 0 14px 30px rgba(109,124,255,.28);
}

/* Danger button (for destructive actions) */
.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #991b1b);
  box-shadow: 0 14px 30px rgba(239,68,68,.28);
}

/* Warning button */
.btn-warning {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 14px 30px rgba(245,158,11,.28);
}

/* Info button */
.btn-info {
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  box-shadow: 0 14px 30px rgba(14,165,233,.28);
}

/* Alerts: simple tinted cards replacing Bootstrap alert boxes */
.alert {
  padding: 14px 18px;
  margin-top: 10px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}
.alert-info {
  background: rgba(125,211,252,.20);
  color: var(--text);
  border-color: rgba(125,211,252,.30);
}
.alert-success {
  background: rgba(34,197,94,.20);
  color: var(--text);
  border-color: rgba(34,197,94,.30);
}
.alert-warning {
  background: rgba(245,158,11,.20);
  color: var(--text);
  border-color: rgba(245,158,11,.30);
}
.alert-danger {
  background: rgba(239,68,68,.20);
  color: var(--text);
  border-color: rgba(239,68,68,.30);
}

/* Tables: style for tool output tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}
table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(165, 180, 252, .25);
}
table thead th {
  background: rgba(109,124,255,.10);
  font-weight: 700;
  color: var(--text);
}
table tbody tr:nth-child(even) {
  background: rgba(125,211,252,.06);
}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .search{ display:none; }
  .tools-grid{ grid-template-columns: repeat(2, 1fr); }
  .reasons-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .nav{ display:none; }
  .tools-grid{ grid-template-columns: 1fr; }
  .reasons-grid{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
}