/* ==============================
   COPYRIGHT CLICKANERD.COM 2025
   ============================== */

html {
  overflow-y: scroll; /* Always reserve scrollbar space */
}

/* --- Updated color palette --- */
:root {
  --gray-50:  #fafafa;
  --gray-100: #f2f2f2;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --accent:   #6c9ad3;   /* subtle blue accent */
  --accent-dark: #3e628f;
  --text-dark: #2d2d2d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;

  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* === Base Layout === */
html, body {
  height: 100%;
  margin: 0;
  background: radial-gradient(1400px 600px at 20% -10%, rgba(108,154,211,0.05), transparent 60%),
              linear-gradient(180deg, var(--gray-50), var(--gray-100));
  color: var(--text-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

/* === Links === */
a {
  color: var(--accent-dark);
  text-decoration: none;
  position: relative;
  font-weight: 600;
  transition: color 0.2s ease;
}

/* Animated underline (accent gradient) */
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.3s ease;
  border-radius: 2px;
}

a:hover::after,
a:focus::after,
a.active::after {
  width: 100%;
}

a:hover,
a:focus,
a.active {
  color: var(--accent);
}

/* === Header + Brand === */
.top {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #fff, var(--gray-50));
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand img {
  height: 64px;
  width: auto;
  display: block;
  border-radius: 10px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.brand h1 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--accent-dark);
  line-height: 1.1;
}

/* === Navigation === */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .18s ease;
  position: relative;
  overflow: hidden;
}

/* Disable underline animation for nav */
.nav a::after { display: none !important; }

.nav a:hover {
  background: linear-gradient(180deg, #fff, var(--gray-100));
  color: #fff;
  border-color: transparent;
  box-shadow: inset 0 0 0 100vmax rgba(62,98,143,0.92),
              0 6px 16px rgba(62,98,143,0.18);
  transform: translateY(-1px);
}

.nav a.active {
  background: linear-gradient(180deg, #fff, var(--gray-200));
  box-shadow: inset 0 0 0 100vmax rgba(0,0,0,0.05);
}

/* === Hero Section === */
.hero {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: clamp(18px, 2.2vw, 28px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.8));
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(18px,3.2vw,36px);
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 40px);
  color: var(--accent-dark);
  margin: 0 0 12px;
}

.sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: #444;
  line-height: 1.65;
  margin-bottom: 18px;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: all .18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(108,154,211,.3);
}

.btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn.ghost {
  background: #fff;
  color: var(--accent-dark);
  border: 1px solid rgba(0,0,0,.12);
}

.btn.ghost:hover {
  background: var(--gray-100);
}

/* === Cards === */
.hero-card,
.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card h3,
.card h4 {
  font-family: var(--font-heading);
  color: var(--accent-dark);
}

.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.kv div {
  background: linear-gradient(180deg, var(--gray-100), #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  color: #333;
}

/* === Features === */
.features {
  max-width: 1200px;
  margin: 26px auto;
  padding: 0 10px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

/* === Page Content === */
.wrap {
  max-width: 1200px;
  margin: 20px auto 40px;
  padding: 0 16px;
}

.page {
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.85));
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 28px);
}

.page h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 40px);
  color: var(--accent-dark);
}

.lead {
  font-size: clamp(15px, 1.2vw, 18px);
  color: #444;
  line-height: 1.75;
}

/* === Footer === */
footer {
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
  color: #555;
  text-align: center;
}

.mininav a { margin: 0 8px; }

footer .credit {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

footer .credit a {
  color: var(--accent-dark);
  font-weight: 600;
}

footer .credit a:hover {
  color: var(--accent);
}

/* === Responsive === */
@media (max-width: 768px) {
  .brand { display: none !important; }

  header.top {
    justify-content: center;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
  }

  .nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 0;
    margin: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #fff, #f2f2f2);
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: none;
    font-weight: 700;
    letter-spacing: .03em;
    font-size: 16px;
    color: var(--accent-dark);
  }

  .nav a:hover {
    background: linear-gradient(180deg, #f2f2f2, #e5e5e5);
    color: var(--accent);
  }

  .nav a.active {
    background: linear-gradient(180deg, #e5e5e5, #d4d4d4);
  }

  .hero { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .brand img { height: 56px; }
}
