/* ================================================
   Internet Heads — Global Design System
   Brand: Blue #0c82c6 / Lime #8dc63f
   ================================================ */

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

/* ---- CSS VARIABLES ---- */
:root {
    --blue:        #0c82c6;
    --blue-dark:   #0a6aa0;
    --blue-deeper: #074e78;
    --blue-mid:    #5aaedd;
    --blue-pale:   #e6f3fb;
    --lime:        #8dc63f;
    --lime-dark:   #6a9f28;
    --lime-pale:   #f0f8e4;
    --ink:         #0d1f2d;
    --ink-soft:    rgba(13, 31, 45, 0.58);
    --ink-faint:   rgba(13, 31, 45, 0.32);
    --surface:     #f5faff;
    --white:       #ffffff;
    --border:      rgba(12, 130, 198, 0.13);
    --border-mid:  rgba(12, 130, 198, 0.26);
    --font-sans:   'DM Sans', system-ui, sans-serif;
    --font-display:'Syne', system-ui, sans-serif;
    --section-pad: 80px 48px;
    --max-w:       1200px;
    --dot-grid:    radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    --dot-size:    28px 28px;
}

/* ---- BASE ---- */
html, body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--ink);
}

/* ---- LAYOUT ---- */
.ih-section       { padding: var(--section-pad); }
.ih-container     { max-width: var(--max-w); margin: 0 auto; }
.ih-section--dark {
    background-color: var(--blue-deeper);
    background-image: var(--dot-grid);
    background-size: var(--dot-size);
}

/* ---- NAVBAR ---- */
.ih-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.97);
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(8px);
}

.ih-nav__logo img,
.ih-nav__logo svg { height: 32px; width: auto; display: block; }

.ih-nav__links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.ih-nav__links a,
.ih-nav__links button.nav-item {
    font-size: 14px;
    color: var(--ink-soft);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    padding: 0;
    transition: color 0.15s;
}

.ih-nav__links a:hover,
.ih-nav__links button.nav-item:hover,
.ih-nav__links a.active { color: var(--blue); }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    padding: 13px 26px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover  { opacity: 0.92; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--blue         { background: var(--blue); color: #fff; }
.btn--lime         { background: var(--lime); color: #1a3a00; }
.btn--ghost-white  { background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.22); }
.btn--ghost-blue   { background: transparent; color: var(--blue); border: 1px solid var(--border-mid); }
.btn--sm           { font-size: 13px; padding: 9px 18px; border-radius: 7px; }

/* ---- EYEBROW ---- */
.ih-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--blue);
    margin-bottom: 14px;
}

.ih-eyebrow--on-dark { color: var(--lime); }

.ih-eyebrow--pill {
    background: rgba(141, 198, 63, 0.14);
    border: 1px solid rgba(141, 198, 63, 0.3);
    border-radius: 100px;
    padding: 6px 14px;
    color: #a8e050;
}

.ih-eyebrow__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #a8e050;
    flex-shrink: 0;
    animation: ih-blink 2s infinite;
}

@keyframes ih-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.15; }
}

/* ---- SECTION HEADINGS ---- */
.ih-section-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.2vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.ih-section-title--on-dark { color: #fff; }

.ih-section-sub {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 48px;
}

.ih-section-sub--on-dark { color: rgba(255, 255, 255, 0.5); }

/* ---- CATEGORY DIVIDER ---- */
.ih-cat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ih-cat-row__line { flex: 1; height: 1px; background: var(--border); }

.ih-cat-pill {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.ih-cat-pill--ecom  { background: var(--lime-pale); color: var(--lime-dark); border: 1px solid rgba(141,198,63,0.25); }
.ih-cat-pill--other { background: var(--blue-pale); color: var(--blue-dark); border: 1px solid rgba(12,130,198,0.2); }

/* ---- TAGS ---- */
.ih-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 500;
    border: 1px solid;
    display: inline-block;
}

.ih-tag--lime { background: var(--lime-pale); color: var(--lime-dark); border-color: rgba(141,198,63,0.2); }
.ih-tag--blue { background: var(--blue-pale); color: var(--blue-dark); border-color: rgba(12,130,198,0.15); }

/* ---- APP CARDS ---- */
.ih-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px;
    background: var(--white);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.18s;
}

.ih-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.ih-card--dashed { background: var(--surface); border-style: dashed; }
.ih-card--lime-hover:hover { border-color: var(--lime); }

.ih-card__top-bar {
    height: 4px;
    position: absolute;
    top: 0; left: 0; right: 0;
    border-radius: 18px 18px 0 0;
}

.ih-card__top-bar--lime  { background: var(--lime); }
.ih-card__top-bar--blue  { background: var(--blue); }
.ih-card__top-bar--faint { background: var(--border); }

.ih-card__icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.ih-card__icon--lime  { background: var(--lime-pale); color: var(--lime-dark); }
.ih-card__icon--blue  { background: var(--blue-pale); color: var(--blue-dark); }
.ih-card__icon--faint { background: var(--surface); color: var(--ink-faint); }

.ih-card__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--ink);
}

.ih-card__desc  { font-size: 13px; line-height: 1.65; color: var(--ink-soft); }
.ih-card__tags  { display: flex; gap: 7px; margin-top: 16px; flex-wrap: wrap; }

.ih-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

.ih-card__link--lime       { color: var(--lime-dark); }
.ih-card__link--lime:hover { opacity: 0.8; }

/* ---- SERVICE CARDS (dark bg) ---- */
.ih-svc-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    padding: 24px;
    transition: border-color 0.2s;
}

.ih-svc-card:hover { border-color: rgba(141,198,63,0.35); }
.ih-svc-card__num   { font-family: var(--font-display); font-size: 12px; color: var(--lime); font-weight: 700; margin-bottom: 12px; opacity: 0.65; }
.ih-svc-card__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 8px; }
.ih-svc-card__desc  { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.46); }

/* ---- WHY BOX ---- */
.ih-why-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 30px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.ih-why-box__icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ih-why-box__title { font-family: var(--font-display); font-weight: 800; font-size: 15px; margin-bottom: 8px; color: var(--ink); }
.ih-why-box__body  { font-size: 13px; line-height: 1.65; color: var(--ink-soft); }

/* ---- PLATFORM STRIP ---- */
.ih-platform-strip { background: var(--white); border-bottom: 1px solid var(--border); padding: 22px 48px; }

.ih-platform-strip__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--ink-faint);
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
}

.ih-platform-strip__logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }

.ih-platform-strip__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 28px;
    border-right: 1px solid var(--border);
    opacity: 0.38;
    filter: grayscale(100%);
    transition: opacity 0.2s, filter 0.2s;
}

.ih-platform-strip__item:last-child { border-right: none; }
.ih-platform-strip__item:hover { opacity: 0.85; filter: grayscale(0%); }
.ih-platform-strip__item span { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.ih-platform-strip__item img  { height: 22px; width: auto; object-fit: contain; max-width: 110px; }
.ih-platform-strip__more      { font-size: 12px; color: var(--ink-soft); }

/* ---- DROPDOWN ---- */
.ih-dropdown { position: relative; }

.ih-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(13,31,45,0.12);
    min-width: 220px;
    padding: 8px;
    z-index: 300;
}

.ih-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.ih-dropdown__item:hover { background: var(--blue-pale); color: var(--blue); }
.ih-dropdown__item img   { height: 18px; width: auto; object-fit: contain; }

/* ---- FOOTER ---- */
.ih-footer {
    border-top: 1px solid var(--border);
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ink-faint);
    flex-wrap: wrap;
    gap: 12px;
}

.ih-footer__logo img,
.ih-footer__logo svg { height: 20px; width: auto; display: block; }

/* ---- GRIDS ---- */
.ih-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ih-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    :root { --section-pad: 56px 24px; }
    .ih-nav { padding: 14px 24px; flex-wrap: wrap; gap: 12px; }
    .ih-nav__links { display: none; }
    .ih-nav__links.open { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 4px; padding-bottom: 8px; }
    .ih-platform-strip { padding: 18px 24px; }
    .ih-footer { padding: 20px 24px; flex-direction: column; align-items: flex-start; }
}
