/* ============================================================
   CyberMasTools – Global Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a2744;
  --navy-dark:  #0f1e38;
  --blue:       #0078d4;
  --blue-hover: #006cbe;
  --light-blue: #60a5fa;
  --cyan:       #00b4d8;
  --green:      #22c55e;
  --bg:         #f8fafc;
  --surface:    #ffffff;
  --muted:      #64748b;
  --text:       #1e293b;
  --border:     #e2e8f0;
}

body {
  font-family: 'Segoe UI', system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); }

/* ── Skip link (a11y) ── */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--blue); color: #fff;
  padding: .4rem .8rem; border-radius: 4px; z-index: 9999;
  text-decoration: none; font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   HEADER & NAV
   ============================================================ */
header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 2rem;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img   { height: 48px; }

nav { display: flex; gap: .2rem; flex-wrap: wrap; }
nav a {
  color: #b0c4de; text-decoration: none;
  padding: .45rem .9rem; border-radius: 5px;
  font-size: .9rem; transition: background .2s, color .2s;
}
nav a:hover, nav a.active { color: #fff; background: rgba(255,255,255,.13); }

/* ============================================================
   UTILITY
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; }
section { padding: 4.5rem 2rem; }

.section-label {
  font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
  font-weight: 700; display: block; margin-bottom: .4rem;
}
.section-title { font-size: 2rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.section-sub   { color: var(--muted); font-size: 1.05rem; max-width: 640px; }

.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

.bg-light { background: #f1f5f9; }
.bg-white  { background: #fff; }

/* ── Badges ── */
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.badge-free     { background: var(--green); color: #fff; }
.badge-trial    { background: #f59e0b; color: #fff; }
.badge-category { background: rgba(255,255,255,.15); color: #e2e8f0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.6rem; border-radius: 6px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-outline { border: 2px solid var(--light-blue); color: var(--light-blue); background: transparent; }
.btn-outline:hover { background: var(--light-blue); color: var(--navy); }
.btn-store { background: #000; color: #fff; font-size: .9rem; padding: .65rem 1.3rem; }
.btn-store:hover { background: #1a1a1a; }

/* ── MS Store badge ── */
.ms-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #000; color: #fff;
  padding: .65rem 1.3rem; border-radius: 7px;
  text-decoration: none; font-size: .9rem; font-weight: 600;
  transition: background .2s;
}
.ms-badge:hover { background: #1a1a1a; }
.ms-badge svg { flex-shrink: 0; }

/* ============================================================
   HOME HERO
   ============================================================ */
.hero {
  background: linear-gradient(145deg, #1a2744 0%, #0d3c6e 60%, #0a2d52 100%);
  color: #fff; text-align: center; padding: 6rem 2rem 5rem;
}
.hero h1 {
  font-size: 2.8rem; font-weight: 800; line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--light-blue); }
.hero p { font-size: 1.15rem; color: #93c5fd; max-width: 680px; margin: 0 auto 2.25rem; }

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  margin-top: 4rem;
  display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 2.5rem;
}
.stat { text-align: center; }
.stat-num   { font-size: 2.25rem; font-weight: 800; color: var(--light-blue); line-height: 1; }
.stat-label { color: #94a3b8; font-size: .88rem; margin-top: .3rem; }

/* ============================================================
   PRODUCT CARDS (Home)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--surface); border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  padding: 2rem; display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s;
  text-decoration: none; color: inherit;
}
.product-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.13); }

.product-card-icon {
  width: 88px; height: 88px; object-fit: contain;
  border-radius: 16px; margin-bottom: 1.25rem;
}
.product-icon-placeholder {
  width: 88px; height: 88px; border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.35rem; font-weight: 800;
  margin-bottom: 1.25rem; flex-shrink: 0;
  letter-spacing: .05em;
}
.product-card-tag {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue); font-weight: 700; margin-bottom: .35rem;
}
.product-card h3 { font-size: 1.18rem; font-weight: 700; color: var(--navy); margin-bottom: .6rem; }
.product-card p  { color: var(--muted); font-size: .93rem; flex-grow: 1; margin-bottom: 1.4rem; line-height: 1.6; }

.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.learn-more { color: var(--blue); font-weight: 600; font-size: .88rem; }

/* ============================================================
   ABOUT SECTION (Home)
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-text p { color: #475569; margin-bottom: 1rem; }

.about-highlights { list-style: none; margin-top: 1.75rem; display: flex; flex-direction: column; gap: .8rem; }
.about-highlights li { display: flex; align-items: flex-start; gap: .75rem; color: #475569; }
.about-highlights .check { color: var(--blue); font-weight: 700; flex-shrink: 0; line-height: 1.7; }

.about-img {
  width: 60%; border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12); display: block;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(145deg, var(--navy) 0%, #0d3c6e 100%);
  color: #fff; text-align: center; padding: 5rem 2rem;
}
.cta-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.cta-section p  { color: #93c5fd; max-width: 560px; margin: 0 auto 2rem; }

/* ============================================================
   APP DETAIL HERO
   ============================================================ */
.app-hero {
  background: linear-gradient(145deg, var(--navy) 0%, #0d3c6e 100%);
  color: #fff; padding: 3.5rem 2rem;
}
.app-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 2.75rem;
}
.app-hero-icon {
  width: 130px; height: 130px; border-radius: 22px;
  object-fit: contain; background: rgba(255,255,255,.08);
  padding: .85rem; flex-shrink: 0;
}
.app-hero-icon-placeholder {
  width: 130px; height: 130px; border-radius: 22px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem; font-weight: 800;
  flex-shrink: 0; letter-spacing: .05em;
}
.app-hero-text h1    { font-size: 2.2rem; font-weight: 800; margin-bottom: .75rem; }
.app-hero-text .meta { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.app-hero-text .publisher { color: #93c5fd; font-size: .95rem; }
.app-hero-text p     { color: #c0d5f0; font-size: 1rem; margin-bottom: 1.75rem; max-width: 620px; line-height: 1.65; }

/* ============================================================
   FEATURES GRID (App pages)
   ============================================================ */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.feature-card {
  background: var(--surface); border-radius: 12px;
  padding: 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.feature-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.feature-card p  { color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* ============================================================
   SCREENSHOTS
   ============================================================ */
.screenshots-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.screenshots-grid img {
  width: 100%; height: 320px; object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.1); display: block;
}

/* ============================================================
   SPEC TABLE
   ============================================================ */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: .85rem 1rem; font-size: .93rem; vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 38%; font-weight: 500; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  max-width: 1200px; margin: 0 auto;
  padding: 1.25rem 2rem 0; font-size: .88rem; color: var(--muted);
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 .45rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--navy-dark); color: #94a3b8; padding: 3.5rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-logo { height: 40px; margin-bottom: .85rem; }
.footer-brand p { color: #64748b; font-size: .88rem; line-height: 1.65; }

.footer-col h4 { color: #e2e8f0; font-size: .93rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { color: #64748b; text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-col ul a:hover { color: #e2e8f0; }

.footer-bottom {
  border-top: 1px solid #1e3250; padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .83rem; }
.footer-bottom a { color: #60a5fa; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid        { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero h1           { font-size: 1.95rem; }
  .hero-stats        { gap: 2rem; }
  .app-hero-inner    { flex-direction: column; text-align: center; }
  .app-hero-text .meta { justify-content: center; }
  .app-hero-text p   { text-align: left; }
  .header-inner      { padding: .65rem 1rem; }
  nav a              { padding: .35rem .6rem; font-size: .84rem; }
  .footer-grid       { grid-template-columns: 1fr; }
  .footer-bottom     { flex-direction: column; text-align: center; }
  .section-title     { font-size: 1.65rem; }
  section            { padding: 3rem 1.25rem; }
}
