/* IMCO Student IT Services — shared stylesheet (light theme)
   Served from https://info.imco.edu.om/students/style.css */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:   #0f172a;
  --blue:   #1a3a6b;
  --accent: #2563eb;
  --teal:   #0ea5e9;
  --gold:   #f59e0b;
  --green:  #10b981;
  --red:    #ef4444;

  --page:    #f4f7fb;
  --heading: #0f172a;
  --text:    #334155;
  --muted:   #64748b;
  --card:    #ffffff;
  --border:  rgba(15,23,42,0.10);
  --shadow:  0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-hover: 0 12px 28px -12px rgba(37,99,235,0.28);
}

html { scroll-behavior: smooth; }

body {
  background: var(--page);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(37,99,235,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(14,165,233,0.06) 0%, transparent 60%);
}
.grid-lines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15,23,42,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.028) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 0%, transparent 75%);
}

.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Header ---------- */
header {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.82);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; text-decoration: none; }
.logo img { width: 42px; height: 42px; object-fit: contain; }
.logo-text { line-height: 1.2; }
.logo-text strong { font-size: 1rem; font-weight: 700; color: var(--heading); display: block; }
.logo-text span { font-size: 0.72rem; color: var(--muted); }
.back-link {
  font-size: 0.82rem; font-weight: 600; color: var(--accent); text-decoration: none;
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(37,99,235,0.25);
  background: rgba(37,99,235,0.08); transition: background 0.2s;
  white-space: nowrap;
}
.back-link:hover { background: rgba(37,99,235,0.15); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero.center { text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.09);
  border: 1px solid rgba(37,99,235,0.25);
  color: var(--accent);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 15px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800; line-height: 1.12;
  background: linear-gradient(135deg, #0f172a 35%, #3b6fd4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: var(--heading);
  margin-bottom: 16px;
}
.hero p { font-size: 1.03rem; color: var(--muted); max-width: 620px; }
.hero.center p { margin-left: auto; margin-right: auto; }

/* ---------- Section headings ---------- */
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin: 8px 0 20px; display: flex; align-items: center; gap: 12px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }

h2 { font-size: 1.4rem; color: var(--heading); margin: 44px 0 14px; font-weight: 700; }
h3 { font-size: 1.05rem; color: var(--heading); margin: 24px 0 8px; font-weight: 600; }
p + p { margin-top: 12px; }
a { color: #1d4ed8; }

main { padding-bottom: 72px; }

/* ---------- Card grid (landing) ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.app-card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,0.45); box-shadow: var(--shadow-hover); }
.app-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.app-icon.blue   { background: rgba(37,99,235,0.12);  }
.app-icon.teal   { background: rgba(14,165,233,0.14); }
.app-icon.purple { background: rgba(139,92,246,0.14); }
.app-icon.green  { background: rgba(16,185,129,0.14); }
.app-icon.gold   { background: rgba(245,158,11,0.16); }
.app-icon.pink   { background: rgba(236,72,153,0.14); }
.app-icon.orange { background: rgba(234,88,12,0.14);  }
.app-icon.red    { background: rgba(239,68,68,0.14);  }
.app-info h3 { font-size: 1rem; font-weight: 600; color: var(--heading); margin: 0 0 6px; }
.app-info p  { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.app-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
}
.app-tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(16,185,129,0.12); color: #047857; border: 1px solid rgba(16,185,129,0.3);
}
.app-tag.soon { background: rgba(100,116,139,0.12); color: #475569; border-color: rgba(100,116,139,0.25); }
.arrow { color: var(--muted); font-size: 18px; transition: transform 0.2s, color 0.2s; }
.app-card:hover .arrow { transform: translate(3px,-3px); color: var(--accent); }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 20px 0; }
.steps > li {
  position: relative; padding: 0 0 22px 52px; counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.4);
  color: var(--accent); font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.steps > li::after {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px;
  width: 1px; background: var(--border);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps strong { color: var(--heading); }
.steps .sub { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

/* ---------- Callouts ---------- */
.callout {
  border-radius: 14px; padding: 16px 18px; margin: 20px 0;
  border: 1px solid; font-size: 0.92rem;
  display: flex; gap: 12px; align-items: flex-start;
}
.callout .ico { font-size: 1.1rem; line-height: 1.4; flex-shrink: 0; }
.callout.info  { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.callout.tip   { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.callout.warn  { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.callout.stop  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.callout strong { color: inherit; font-weight: 700; }

/* ---------- Key/value facts ---------- */
.facts {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  margin: 20px 0; background: var(--card); box-shadow: var(--shadow);
}
.facts div {
  display: grid; grid-template-columns: 190px 1fr; gap: 16px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.facts div:last-child { border-bottom: none; }
.facts dt, .facts .k { color: var(--muted); font-weight: 600; }
.facts dd, .facts .v { color: var(--text); }
.facts .v code, code.inline {
  background: #eef2f8; padding: 2px 7px; border-radius: 6px;
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 0.88em; color: #1d4ed8;
  border: 1px solid rgba(15,23,42,0.06);
}

/* ---------- Mockups ---------- */
.mock { margin: 24px 0; }
.mock-cap { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* browser window — deliberately dark, mimics a real screen */
.browser {
  border: 1px solid rgba(15,23,42,0.18); border-radius: 12px; overflow: hidden;
  background: #0d1a30; box-shadow: 0 24px 50px -24px rgba(15,23,42,0.35);
  max-width: 560px; margin: 0 auto;
}
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.browser-url {
  flex: 1; margin-left: 8px; background: rgba(0,0,0,0.3); border-radius: 7px;
  padding: 5px 12px; font-size: 0.78rem; color: #94a3b8;
  font-family: "Cascadia Code","Consolas",monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body { padding: 30px 26px; }

/* generic login/form card inside a mockup */
.form-card {
  background: #fff; color: #1e293b; border-radius: 10px; padding: 26px 24px;
  max-width: 330px; margin: 0 auto; text-align: center;
}
.form-card .brand { font-weight: 700; font-size: 1rem; margin-bottom: 18px; color: #0f172a; }
.form-card .fld {
  border: 1px solid #cbd5e1; border-radius: 7px; padding: 10px 12px;
  font-size: 0.82rem; color: #64748b; text-align: left; margin-bottom: 10px;
}
.form-card .fld.filled { color: #0f172a; }
.form-card .btn {
  background: #2563eb; color: #fff; border-radius: 7px; padding: 10px;
  font-size: 0.85rem; font-weight: 600; margin-top: 4px;
}
.form-card .hint { font-size: 0.72rem; color: #94a3b8; margin-top: 10px; }

/* phone frame — deliberately dark */
.phone {
  width: 280px; margin: 0 auto;
  border: 10px solid #1e293b; border-radius: 34px; overflow: hidden;
  background: #0d1a30; box-shadow: 0 24px 50px -24px rgba(15,23,42,0.35);
}
.phone-notch { height: 22px; background: #1e293b; border-radius: 0 0 12px 12px; width: 120px; margin: 0 auto; }
.phone-body { padding: 20px 18px 26px; }
.wifi-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem;
}
.wifi-row:last-child { border-bottom: none; }
.wifi-row .lbl { color: #94a3b8; }
.wifi-row .val { color: #fff; font-weight: 600; }
.wifi-row .val.pick { color: #34d399; }

/* windows lock-screen / ctrl-alt-del menu — deliberately dark */
.winlock {
  max-width: 420px; margin: 0 auto;
  background: linear-gradient(160deg, #1e3a5f, #0f2038);
  border: 1px solid rgba(15,23,42,0.18); border-radius: 12px; padding: 28px 24px;
  box-shadow: 0 24px 50px -24px rgba(15,23,42,0.35);
}
.winlock ul { list-style: none; }
.winlock li {
  padding: 12px 14px; font-size: 0.9rem; color: #cbd5e1;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.winlock li:last-child { border-bottom: none; }
.winlock li.hi { background: rgba(37,99,235,0.35); color: #fff; border-radius: 6px; font-weight: 600; }

/* auth app step tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; margin: 22px 0; }
.tile {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 16px; text-align: center; box-shadow: var(--shadow);
}
.tile .n { font-size: 1.5rem; }
.tile p { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--muted);
  flex-wrap: wrap; gap: 12px;
}
footer strong { color: #475569; }
footer a { color: var(--muted); }

.pagenav {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 48px 0 0; flex-wrap: wrap;
}
.pagenav a {
  flex: 1; min-width: 200px;
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  text-decoration: none; color: var(--text); font-size: 0.88rem;
  background: var(--card); box-shadow: var(--shadow); transition: border-color 0.2s, box-shadow 0.2s;
}
.pagenav a:hover { border-color: rgba(37,99,235,0.45); box-shadow: var(--shadow-hover); }
.pagenav a span { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 3px; }
.pagenav a.next { text-align: right; }

@media (max-width: 640px) {
  .facts div { grid-template-columns: 1fr; gap: 3px; }
  footer { justify-content: center; text-align: center; }
  .hero { padding: 44px 0 30px; }
}
