/* ============================================================
   mytextcount.com — Modern SaaS UI (Style A)
=============================================================== */

/* --------------------------------------
   ROOT VARIABLES
-------------------------------------- */
:root {
  --brand-blue: #0866ff;
  --brand-blue-dark: #064fcc;
  --brand-light: #f2f6ff;

  --bg: #f7f9fc;
  --white: #ffffff;
  --text: #1a1f36;
  --text-light: #606885;

  --border: #e2e6f0;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(0,0,0,0.06);

  --font: "Inter", sans-serif;
}

/* --------------------------------------
   RESET
-------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

a { text-decoration: none; }

/* ============================================================
   HEADER / NAVBAR
=============================================================== */
header {
  width: 100%;
  background: var(--brand-blue);
  color: #fff;
}

header .navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* TEXT LOGO */
.text-logo {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}
.text-logo span { color: #ffeb3b; }

/* MENU TOGGLE */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* DESKTOP NAV */
header nav ul {
  display: flex;
  gap: 22px;
  align-items: center;
}

header nav ul li {
  list-style: none;
  position: relative;
}

header nav ul li > a {
  color: #fff;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
}

header nav ul li > a:hover,
header nav ul li > a.active {
  background: rgba(255,255,255,0.25);
}

/* DROPDOWN */
header nav ul li .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.18s ease;
  z-index: 9999;
}

header nav ul li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

header nav ul li .dropdown a {
  display: block;
  padding: 10px 18px;
  color: #111;
  font-size: 14px;
}

header nav ul li .dropdown a:hover {
  background: #eef2ff;
}

/* MOBILE NAV */
@media (max-width: 900px) {
  .menu-toggle { display: block; }

  header nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--brand-blue);
    padding: 20px;
    overflow-y: auto;
  }

  header nav.open { display: block; }

  header nav ul {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  header nav ul li { width: 100%; }

  header nav ul li > a {
    width: 100%;
    padding: 12px;
  }

  header nav ul li .dropdown {
    position: static;
    display: none;
    background: rgba(255,255,255,0.15);
    margin-top: 6px;
  }

  header nav ul li.open .dropdown { display: block; }
  header nav ul li .dropdown a { color: #eaf0ff; }
}

/* --------------------------------------
   CONTAINER
-------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Homepage wider layout */
.home-wide .container {
  max-width: 1320px;
}

/* --------------------------------------
   CARD
-------------------------------------- */
.card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 40px 0;
}

/* --------------------------------------
   HEADINGS & TEXT
-------------------------------------- */
h1 { font-size: 32px; margin-bottom: 14px; }
h2 { font-size: 24px; margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 10px; color: var(--brand-blue-dark); }

/* ✅ FIXED PARAGRAPH STYLE (GLOBAL) */
p {
  font-size: 16px;
  line-height: 1.75;
  color: #3f4a66;
  margin-bottom: 16px;
}

/* --------------------------------------
   INPUTS & BUTTONS
-------------------------------------- */
input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.btn {
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--brand-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover { background: var(--brand-blue-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
}

/* --------------------------------------
   STATS GRID
-------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.stat-box {
  text-align: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-box p {
  font-size: 22px;
  font-weight: 600;
}

/* --------------------------------------
   TOOL GRID
-------------------------------------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.tool-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: 0.2s;
}

.tool-card:hover { transform: translateY(-4px); }

/* --------------------------------------
   TOOL INTRO IMAGE
-------------------------------------- */
.tool-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tool-intro-image img {
  max-width: 140px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

@media (max-width: 480px) {
  .tool-intro {
    flex-direction: column;
    text-align: center;
  }
  .tool-intro-image img { max-width: 120px; }
}

/* --------------------------------------
   FOOTER
-------------------------------------- */
footer {
  background: var(--brand-blue);
  padding: 30px 20px;
  text-align: center;
}

footer p,
footer a {
  color: var(--brand-light);
}

footer a:hover { text-decoration: underline; }

/* =========================
   HERO / INTRO SECTION
========================= */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 16px;
}

/* ✅ FIXED HERO TEXT */
.hero-lead {
  font-size: 17px;
  line-height: 1.8;
  color: #3f4a66;
}

.hero-image {
  flex-shrink: 0;
}

.hero-image img {
  max-width: 320px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

/* Mobile */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-image img {
    max-width: 240px;
  }
}
/* =================================
   PROFESSIONAL CONTENT LIST STYLE
   (clean, aligned, readable)
================================= */

.card ul {
  margin: 14px 0 18px;
  padding-left: 0;              /* remove default indent */
  list-style: none;             /* remove default bullets */
}

.card ul li {
  position: relative;
  padding-left: 22px;           /* custom bullet space */
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-light);
}

/* Custom subtle bullet */
.card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-blue);
  font-size: 18px;
  line-height: 1;
}

/* Strong text inside list */
.card ul li strong {
  color: var(--text);
  font-weight: 600;
}

/* =========================
   TOOL HERO FIX (IMPORTANT)
========================= */
.hero-section {
  display: flex;
  align-items: center;        /* vertical center */
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1 1 60%;
}

.hero-text p {
  max-width: 680px;
}

.hero-image {
  flex: 0 0 280px;            /* fixed column width */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 260px;           /* CONTROL IMAGE SIZE */
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Mobile fix */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-text p {
    max-width: 100%;
  }

  .hero-image {
    flex: none;
    margin-top: 20px;
  }

  .hero-image img {
    max-width: 200px;
  }
}
