/* ============================================================
   Peakwave — modern one-pager
   Reuses local assets only: Raleway (fonts/), photos (images/).
   No external dependency. Deployable anywhere (relative paths).
   ============================================================ */
@import url("raleway-local.css");

/* ---------- design tokens ---------- */
:root {
    --bg:        #0a0f18;
    --bg-2:      #0d1522;
    --surface:   rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.07);
    --line:      rgba(255, 255, 255, 0.09);
    --text:      #e8eef6;
    --muted:     #94a6bb;
    --accent:    #38bdf8;
    --accent-2:  #22d3ee;
    --accent-ink:#06121d;
    --radius:    16px;
    --shadow:    0 18px 40px rgba(2, 6, 14, 0.45);
    --font:      "Raleway", "Segoe UI", system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(1100px 500px at 85% -5%, rgba(56, 189, 248, 0.09), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(34, 211, 238, 0.06), transparent 55%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.12rem; font-weight: 700; }

p  { margin: 0 0 1em; }

.container { width: min(1120px, 92vw); margin-inline: auto; }

/* ---------- nav ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
    background: rgba(10, 15, 24, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-brand {
    display: inline-flex; align-items: center; gap: 0.6rem;
    color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem;
    letter-spacing: 0.01em;
}
.nav-emblem { height: 34px; width: auto; }
.nav-wordmark { height: 18px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) {
    color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active { color: var(--text); border-color: var(--accent); }

.nav-burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 6px; cursor: pointer;
}
.nav-burger span {
    width: 22px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 0.8rem 1.6rem; border-radius: 999px;
    font-family: inherit; font-weight: 700; font-size: 0.95rem;
    text-decoration: none; cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink);
    box-shadow: 0 8px 26px rgba(56, 189, 248, 0.35);
}
.btn-accent:hover { box-shadow: 0 12px 32px rgba(56, 189, 248, 0.5); transform: translateY(-1px); }

.btn-ghost {
    color: var(--text); border-color: var(--line); background: var(--surface);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.88rem; }

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid; place-items: center;
    text-align: center;
    padding: 7rem 1.25rem 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(10,15,24,.78) 0%, rgba(10,15,24,.55) 45%, var(--bg) 100%),
        url("../images/pic02.jpg") center / cover no-repeat;
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(60% 45% at 50% 38%, rgba(56,189,248,.16), transparent 70%);
}

.hero-logo-wrap {
    display: inline-block;
    margin-bottom: 0.4rem;
}
.hero-emblem {
    width: clamp(100px, 15vw, 150px);
    filter:
        drop-shadow(0 0 18px rgba(56,189,248,.5))
        drop-shadow(0 14px 34px rgba(2,6,14,.75));
}
.hero-wordmark {
    display: block; margin: 0 auto 1rem;
    width: clamp(190px, 26vw, 290px);
    filter:
        drop-shadow(0 0 14px rgba(56,189,248,.35))
        drop-shadow(0 10px 26px rgba(2,6,14,.75));
}

/* tagline sits a step below the wordmark in the lockup */
.hero h1 {
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.09em;
    margin-bottom: 1.4rem;
}

.hero h1 .sep { color: var(--accent); font-weight: 400; opacity: .7; padding: 0 .1em; }

.hero-sub {
    max-width: 46rem; margin-inline: auto; margin-bottom: 2.2rem;
    color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-partners {
    display: flex; gap: clamp(1.6rem, 4vw, 3rem);
    justify-content: center; align-items: flex-end; flex-wrap: wrap;
}
.partner-badge { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.partner-badge img {
    height: 30px; width: auto;
    filter: brightness(0) invert(1);
    opacity: .72;
    transition: opacity .2s ease;
}
.partner-badge:hover img { opacity: 1; }
.partner-badge span {
    color: var(--muted); font-size: .78rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
}

.hero-scroll {
    position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0;
    color: var(--muted);
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface);
    text-decoration: none;
    animation: bob 2.4s ease-in-out infinite;
    transition: color .2s, border-color .2s;
}
.hero-scroll:hover { color: var(--accent); border-color: var(--accent); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- chips ---------- */
.chips { padding: 2.2rem 0 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.chip {
    padding: .45rem 1rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface);
    color: var(--muted); font-size: .85rem; font-weight: 600;
}

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.kicker {
    color: var(--accent-2); font-weight: 700; font-size: .8rem;
    letter-spacing: .18em; text-transform: uppercase; margin-bottom: .6rem;
}
.lede { color: var(--muted); font-size: 1.02rem; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    transition: transform .22s ease, border-color .22s, background .22s, box-shadow .22s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
    background: var(--surface-2);
    box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; color: var(--muted); font-size: .95rem; }

.card-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center; margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(34,211,238,.12));
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- microsoft ---------- */
.ms-grid {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.1rem;
    align-items: stretch;
}
.ms-products {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.8rem;
}
.ms-products h3 { margin-bottom: 1.2rem; }
.ms-icons {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: .8rem;
}
.ms-item {
    display: grid; place-items: center;
    aspect-ratio: 1; border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    padding: .9rem;
    transition: transform .18s ease, box-shadow .18s ease;
}
.ms-item:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 22px rgba(0,0,0,.35); }
.ms-item img { max-height: 100%; width: auto; }

.azure-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(56, 189, 248, 0.35);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(56,189,248,.16), transparent 55%),
        var(--surface-2);
    padding: 1.8rem;
}
.azure-logo { width: 150px; margin-bottom: 1.2rem; }
.azure-card p { color: var(--muted); font-size: .95rem; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
    padding-left: 1.7rem; position: relative;
    color: var(--muted); font-size: .93rem; margin-bottom: .45rem;
}
.ticks li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--accent-2); font-weight: 800;
}

/* ---------- videos ---------- */
.videos {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.1rem; margin-top: 2.5rem; max-width: 62rem; margin-inline: auto;
}
.video { margin: 0; }
.video-wrap {
    position: relative; padding-top: 56.25%;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
    box-shadow: var(--shadow);
}
.video-wrap iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video figcaption {
    margin-top: .6rem; text-align: center;
    color: var(--muted); font-size: .85rem;
}

/* ---------- partners ---------- */
.partner-row {
    display: flex; justify-content: center; align-items: center;
    gap: clamp(1.2rem, 4vw, 2.5rem); flex-wrap: wrap;
}
.brand-tile {
    display: inline-flex; align-items: center; justify-content: center;
    height: 52px; padding: 0 1.1rem;
    background: #fdfefe;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(2, 6, 14, 0.5);
    transition: transform .2s ease, box-shadow .2s ease;
}
.brand-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(2, 6, 14, 0.6); }
.brand-tile img { height: 30px; width: auto; }
.brand-tile-lg { height: 96px; padding: 0 2.4rem; border-radius: 18px; }
.brand-tile-lg img { height: 58px; width: auto; }

/* ---------- contact ---------- */
.contact {
    background:
        radial-gradient(720px 340px at 50% 100%, rgba(56, 189, 248, 0.12), transparent 70%),
        var(--bg-2);
    border-top: 1px solid var(--line);
}
.contact-block {
    max-width: 42rem; margin-inline: auto; text-align: center;
    padding: 3rem 2.2rem 2.6rem;
    border-radius: 24px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background:
        radial-gradient(120% 150% at 50% -25%, rgba(56, 189, 248, 0.16), transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
        #0c1521;
    box-shadow: 0 26px 64px rgba(2, 6, 14, 0.55);
}
.contact-icon {
    width: 62px; height: 62px; margin: 0 auto 1.3rem;
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--accent-ink);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255,255,255,.35);
}
.contact-title { margin-bottom: 1.2rem; font-size: 1.25rem; }
.contact-mail {
    display: inline-block;
    color: #ffffff; text-decoration: none;
    font-size: clamp(1.1rem, 2.6vw, 1.45rem); font-weight: 800;
    letter-spacing: 0.01em;
    padding: 1rem 1.9rem; border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, rgba(56,189,248,.24), rgba(34,211,238,.15));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 34px rgba(56,189,248,.22);
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.contact-mail:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 14px 40px rgba(56,189,248,.35);
}
.mail-addr .at { color: var(--accent-2); font-weight: 700; padding: 0 .07em; }
.contact-note {
    margin: 1.5rem 0 0; color: #aebdd0; font-size: .88rem; line-height: 1.6;
}

/* ---------- footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    padding: 2.4rem 0;
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
}
.footer-tag { color: var(--muted); margin: 0; font-size: .9rem; }
.copyright { color: #5c6c80; margin: 0; font-size: .82rem; }

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-scroll { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .ms-grid { grid-template-columns: 1fr; }
    .videos { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
}

@media (max-width: 760px) {
    .nav-burger { display: flex; }
    .nav-links {
        position: fixed; inset: 58px 0 auto 0;
        flex-direction: column; gap: 0;
        background: rgba(10, 15, 24, 0.97);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        padding: .6rem 1.25rem 1.2rem;
        transform: translateY(-130%);
        transition: transform .3s ease;
    }
    .nav-links.open { transform: none; }
    .nav-links a:not(.btn) { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
    .nav-links .btn { margin-top: 1rem; }

    .grid-3 { grid-template-columns: 1fr; }
    .hero-partners { gap: 1.2rem; }
    .partner-badge img { height: 24px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
