/* ============================================================
   Smart Database Systems — stylesheet
   Palette keyed to the logo: blue / green / orange / red
   ============================================================ */

:root {
    --blue:   #1a9dd9;
    --blue-d: #0f7db0;
    --green:  #8cc63f;
    --orange: #f7941e;
    --red:    #e2231a;

    --ink:      #14202b;   /* headings */
    --body:     #41505c;   /* body text */
    --muted:    #6b7a87;
    --line:     #e4e9ee;
    --bg:       #ffffff;
    --bg-soft:  #f5f8fb;
    --bg-dark:  #10222f;

    --primary:  var(--blue);
    --primary-d: var(--blue-d);

    --radius:   14px;
    --radius-sm: 9px;
    --shadow:   0 1px 2px rgba(16,34,47,.06), 0 8px 30px rgba(16,34,47,.07);
    --shadow-lg: 0 20px 55px rgba(16,34,47,.14);
    --maxw:     1150px;
    --ease:     cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--body);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-d); text-decoration: none; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.22rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #c6d4de; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--primary-d); margin-bottom: .8rem;
}
.lead { font-size: 1.16rem; color: var(--body); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.accent-bar { height: 5px; width: 74px; border-radius: 4px; margin: 0 0 1.4rem;
    background: linear-gradient(90deg, var(--blue), var(--green) 40%, var(--orange) 70%, var(--red)); }
.center .accent-bar { margin-left: auto; margin-right: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
    padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem;
    padding: .8rem 1.5rem; border-radius: 40px; border: 2px solid transparent; cursor: pointer;
    transition: transform .15s var(--ease), box-shadow .2s, background .2s; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(26,157,217,.32); }
.btn-primary:hover { background: var(--primary-d); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-d); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); color: var(--primary-d); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
    backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.brand-text { font-size: 1.06rem; }
.brand:hover { color: var(--ink); }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: .3rem; margin: 0; padding: 0; }
.primary-nav a { color: var(--body); font-weight: 600; font-size: .96rem; padding: .55rem .85rem;
    border-radius: 8px; transition: color .15s, background .15s; }
.primary-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.primary-nav a.active { color: var(--primary-d); position: relative; }
.primary-nav a.active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .28rem;
    height: 2.5px; border-radius: 2px; background: var(--primary); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle .bar { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 3px;
    transition: transform .28s var(--ease), opacity .2s; }
.nav-toggle .bar + .bar { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden;
    background:
        radial-gradient(1100px 500px at 78% -10%, rgba(26,157,217,.12), transparent 60%),
        radial-gradient(800px 450px at 0% 120%, rgba(140,198,63,.10), transparent 55%),
        var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
    padding: clamp(3rem, 7vw, 6rem) 0; }
.hero h1 span { color: var(--primary-d); }
.hero h1 a { color: var(--primary-d); text-decoration: none; }
.hero h1 a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 5px; }
.hero .lead { margin-top: .4rem; }
.trust-line { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.8rem; color: var(--muted); font-size: .92rem; }
.trust-line span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-line svg { width: 18px; height: 18px; fill: var(--green); }

.hero-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 1.6rem; }
.hero-card h3 { margin-bottom: 1rem; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 1rem; }
.stat b { display: block; font-size: 1.9rem; color: var(--ink); font-weight: 800; letter-spacing: -.03em; }
.stat span { font-size: .86rem; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem;
    box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d3dde5; }
.card .icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem; }
.card .icon svg { width: 26px; height: 26px; fill: #fff; }
.icon-blue { background: linear-gradient(135deg, var(--blue), var(--blue-d)); }
.icon-green { background: linear-gradient(135deg, #a4d65e, var(--green)); }
.icon-orange { background: linear-gradient(135deg, #ffb04d, var(--orange)); }
.icon-red { background: linear-gradient(135deg, #f2554d, var(--red)); }
.card h3 { margin-bottom: .4rem; }
.card p { margin-bottom: 0; font-size: .97rem; }
.card-link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--primary-d); }
.card-link:after { content: " →"; }

/* Animated mini sales chart (Dashboards & reporting card) — plays once when scrolled into view */
.mini-chart { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 66px; margin-bottom: 1rem; }
.mini-chart .mini-bar { flex: 1; height: 100%; border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #4cc0ee, var(--blue-d));
    transform: scaleY(0); transform-origin: bottom;
    transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.mini-chart .mini-bar:nth-child(1) { transition-delay: 0s; }
.mini-chart .mini-bar:nth-child(2) { transition-delay: .08s; }
.mini-chart .mini-bar:nth-child(3) { transition-delay: .16s; }
.mini-chart .mini-bar:nth-child(4) { transition-delay: .24s; }
.mini-chart .mini-bar:nth-child(5) { transition-delay: .32s; }
.mini-chart .mini-bar:nth-child(6) { transition-delay: .40s; }
.mini-chart .mini-bar:nth-child(7) { transition-delay: .48s; }
.mini-chart.play .mini-bar { transform: scaleY(var(--h)); }

@media (prefers-reduced-motion: reduce) {
    .mini-chart .mini-bar { transition: none; transform: scaleY(var(--h)); }
}

/* feature list with checks */
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.check-list strong { color: var(--ink); }
.check-list li:before { content: ""; position: absolute; left: 0; top: .34em; width: 18px; height: 18px;
    border-radius: 50%; background: var(--green);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
    background-color: var(--green); }

/* Split content rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.reverse .split-media { order: -1; }
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 1.3rem; }
.step { display: flex; gap: 1.1rem; }
.step .num { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    font-weight: 800; color: #fff; background: var(--primary); }
.step h3 { margin-bottom: .2rem; }
.step p { margin: 0; font-size: .96rem; }

/* ---------- Clients ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; align-items: center; }
.client-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    height: 104px; display: grid; place-items: center; padding: 1rem; box-shadow: var(--shadow);
    transition: transform .2s var(--ease); }
.client-tile:hover { transform: translateY(-3px); }
.client-tile img { max-height: 62px; width: auto; object-fit: contain; }
.client-tile img.logo-lg { max-height: 92px; }   /* logos with small internal text */
.client-tile .client-name { font-weight: 700; color: var(--ink); text-align: center; font-size: .92rem; line-height: 1.3; }

/* ---------- Testimonials ---------- */
.tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
    box-shadow: var(--shadow); position: relative; }
.tcard .quote-mark { font-size: 3.4rem; line-height: 1; color: var(--blue); opacity: .18; font-weight: 800;
    font-family: Georgia, serif; position: absolute; top: 12px; right: 20px; }
.tcard blockquote { margin: 0 0 1.1rem; font-size: 1.02rem; color: var(--ink); }
.tcard .t-author { font-weight: 700; color: var(--ink); }
.tcard .t-role { font-size: .88rem; color: var(--muted); }
.stars { color: var(--orange); letter-spacing: 2px; margin-bottom: .8rem; }

/* ---------- Sample projects page ---------- */
.tech-note { margin-top: 1.5rem; background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--blue);
    border-radius: 8px; padding: .85rem 1.1rem; font-size: .95rem; color: var(--body); }
.tech-note strong { color: var(--ink); }
.proj-group { font-size: 1.35rem; margin: 2.4rem 0 1.1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.proj-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.card h4 { font-size: 1.15rem; margin: 0; color: var(--ink); }
.proj-sector { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.proj-tags { margin: .8rem 0 1.1rem; }
.proj-tags .tag { font-size: .82rem; padding: .3rem .75rem; }

/* ---------- Industries ---------- */
.tag-grid { display: flex; flex-wrap: wrap; gap: .7rem; }
.tag { background: #fff; border: 1px solid var(--line); border-radius: 40px; padding: .5rem 1.1rem;
    font-weight: 600; color: var(--body); font-size: .94rem; }
.section-dark .tag { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #d5e0e8; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-d), var(--blue)); color: #fff; text-align: center;
    border-radius: var(--radius); padding: clamp(2.5rem, 5vw, 3.6rem); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 56ch; margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 760px; margin: 0 auto; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem;
    text-align: center; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card .c-icon { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.1rem; }
.contact-card .c-icon svg { width: 30px; height: 30px; fill: #fff; }
.contact-card h3 { margin-bottom: .3rem; }
.contact-card span { font-size: 1.18rem; font-weight: 700; color: var(--ink); display: block; }
.contact-card:hover span { color: var(--primary-d); }
.contact-card .c-note { font-size: .9rem; color: var(--muted); margin: .3rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #9fb2bf; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-brand img { border-radius: 10px; margin-bottom: .8rem; }
.footer-name { color: #fff; font-weight: 700; margin: 0 0 .2rem; }
.footer-muted { color: #7d919f; font-size: .9rem; margin: .15rem 0; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #9fb2bf; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: .6rem; }
.footer-contact svg { width: 18px; height: 18px; fill: var(--blue); flex: 0 0 auto; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    border-top: 1px solid rgba(255,255,255,.09); margin-top: 2.5rem; padding-top: 1.3rem; }
.footer-bottom p { margin: 0; font-size: .86rem; color: #7d919f; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
    .hero-grid, .split, .split.reverse { grid-template-columns: 1fr; gap: 2rem; }
    .split.reverse .split-media { order: 0; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .primary-nav { position: fixed; inset: 68px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
        transform: translateY(-130%); transition: transform .32s var(--ease); box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 68px); overflow-y: auto; }
    .primary-nav.open { transform: translateY(0); }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem; }
    .primary-nav a { padding: .95rem 1rem; border-radius: 8px; font-size: 1.02rem; }
    .primary-nav a.btn-nav { margin: .4rem 0 .2rem; text-align: center; }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
    .grid-3, .grid-2, .tgrid, .contact-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-text { font-size: .98rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
