:root {
    --font-body: Arial, Helvetica, sans-serif;
    --font-ui: Arial, Helvetica, sans-serif;
    --bg: #f5f7fb; /*sky color*/
    --surface: #ffffff;
    --text: #172033;  /*navy*/
    --muted: #5d6880; /*light navy*/
    --primary: #1f4b99; /*blue*/
    --accent: #e5882f; /*coral*/
    --border: #d7deea; /*deep sky color*/
    --shadow: 0 20px 50px rgba(20, 33, 61, 0.08);
    --nav-bg: #0f3b78; /*dark blue*/
    --nav-text: #ffffff;
    --textNavy: navy;
    --silver: silver;
    --whiteBlue-color: #fbfcff;
    --black-color: black;
  --bannerColor: #ffa617;
}
body.dark {
    --bg: #1e1e2e;
    --surface: #27273a;
    --textNavy: #cfcf66; /*dark yellow*/
    --black-color: #bfbf4f; /*light yellow*/
    --whiteBlue-color: #75776a;
/*    --primary: slateblue;*/
    --text: #cdd6f4;
    --muted: #a6adc8;
    --border: #45475a;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    --silver: #797979;
      --bannerColor: #9f6a14;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(229, 136, 47, 0.12), transparent 22rem),
        linear-gradient(180deg, #fdfefe 0%, var(--bg) 100%);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    color: var(--nav-text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 66px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.topbar-brand img {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(220px, 58vw);
    object-fit: contain;
}

.nav-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background: #ffffff;
    color: #222222;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-icon-button:hover,
.nav-icon-button:focus-visible {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.nav-menu-button {
    background: #7287ff;
    border-color: #6277ef;
    color: #ffffff;
}

.nav-icon-stack {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

.nav-icon-stack span {
    display: block;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.nav-menu-shell {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    padding: 0.35rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #cfd5df;
    box-shadow: 0 12px 24px rgba(20, 33, 61, 0.16);
}

.nav-dropdown-right {
    left: auto;
    right: 0;
}

.nav-dropdown[hidden],
.nav-submenu-panel[hidden] {
    display: none;
}

.nav-dropdown-link,
.nav-dropdown-sublink,
.nav-submenu-toggle {
    display: block;
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    border: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible,
.nav-dropdown-sublink:hover,
.nav-dropdown-sublink:focus-visible,
.nav-submenu-toggle:hover,
.nav-submenu-toggle:focus-visible {
    background: #eef4ff;
}

.nav-submenu-panel {
    margin: 0.2rem 0 0.35rem 0.75rem;
    padding-left: 0.5rem;
    border-left: 2px solid #d7deea;
}

.nav-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-caret {
    font-weight: 700;
    color: #6d7892;
}

.shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

.hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.5rem;
}

.eyebrow {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--textNavy);
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.lead {
    max-width: 48rem;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.card {
    background: #fbfcff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem;
}

.card h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.card p,
.card code,
.lead code,
footer code {
    word-break: break-word;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    background: var(--primary);
    /* 1. Initial Shadow (Floating look) */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    
    /* 2. Smooth Transition */
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    user-select: none; /* Prevents text highlighting while clicking */
}    
    /* 3. Hover State (Lift up slightly) */
.button:hover  {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  border-color: #bbb;
}

/* 4. Press State (Push down and shrink shadow) */
.button:active  {
  transform: translateY(2px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}


.button.secondary {
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
}

footer {
    margin-top: 1.5rem;
    color: var(--muted);
}

body.dark {
    background: var(--bg);
}

body.dark .card {
    background: #313244;
}
body.dark .button.secondary {
    background: #99b1dd;
}

@media (max-width: 640px) {
    .topbar-inner {
        min-height: 58px;
        padding: 0.4rem 0.5rem;
    }

    .topbar-brand img {
        height: 34px;
    }

    .shell {
        padding-top: 1.5rem;
    }
}
