:root {
    --bg: #f7fbf8;
    --bg-green: #e7f5ee;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: #ffffff;
    --text: #10231c;
    --muted: #5f756b;
    --line: rgba(16, 35, 28, 0.12);
    --green: #43aa86;
    --green-light: #9ce2c5;
    --green-dark: #1f735b;
    --shadow: 0 24px 70px rgba(31, 115, 91, 0.14);
    --radius: 26px;

    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    line-height: 1.55;
    background:
    radial-gradient(circle at 16% 10%, rgba(67, 170, 134, 0.22), transparent 28rem),
    radial-gradient(circle at 84% 4%, rgba(156, 226, 197, 0.42), transparent 24rem),
    linear-gradient(135deg, var(--bg-green), var(--bg) 46%, #fff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(16, 35, 28, 0.08);
    backdrop-filter: blur(18px);
    background: rgba(247, 251, 248, 0.82);
}

.nav {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
}

.brand img {
    max-height: 50px;
    width: auto;
    padding: 5px;
    min-width: 290px;
}

.logo-placeholder {
    width: 172px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(31, 115, 91, 0.38);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--green-dark);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo-placeholder small {
    display: block;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover {
    background: rgba(67, 170, 134, 0.09);
    color: var(--green-dark);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff;
    font-weight: 750;
    box-shadow: 0 16px 36px rgba(67, 170, 134, 0.22);
    border: 0;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.72);
    color: var(--green-dark);
    border: 1px solid rgba(31, 115, 91, 0.18);
    box-shadow: none;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 48px;
    padding: 86px 0 70px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px 13px;
    border: 1px solid rgba(31, 115, 91, 0.18);
    border-radius: 999px;
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
}

.pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 8px rgba(67, 170, 134, 0.14);
}

.hero-title {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-title-sub {
  font-size: clamp(2.4rem, 3vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy {
    margin: 26px 0 0;
    max-width: 680px;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.signal-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 8px);
    background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(231, 245, 238, 0.82)),
    rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    min-height: 460px;
    padding: 34px;
}

.signal-card:before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
    linear-gradient(90deg, transparent, rgba(67, 170, 134, 0.16), transparent),
    repeating-linear-gradient(90deg, rgba(31,115,91,0.07) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(31,115,91,0.055) 0 1px, transparent 1px 58px);
    opacity: 0.78;
    pointer-events: none;
}

.hero-visual {
    min-height: 460px;
}

.logo-stage {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 128px;
    margin: 10px 0 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(67,170,134,0.10));
    border: 1px dashed rgba(31,115,91,0.24);
}

.hero-logo-text {
    text-align: center;
    color: var(--green-dark);
    font-weight: 850;
    letter-spacing: -0.04em;
    font-size: clamp(1.4rem, 3.4vw, 2.5rem);
}

.hero-logo-text span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
    letter-spacing: 0;
    margin-top: 6px;
}

.hero-pillars {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.pillar {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(31, 115, 91, 0.14);
    background: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    backdrop-filter: blur(6px);
}

.pillar strong {
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    color: var(--green-dark);
    width: 100%;
    text-align: center;
}

.pillar-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.22;
    pointer-events: none;
}

/* Electronics schematic background */
.schematic-bg {
  background-image: url("img/schemantic.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  opacity: 0.22;
  pointer-events: none;
}

/* Firmware code background */

.code-bg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 14px 18px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.82rem;
    color: var(--green-dark);
    white-space: nowrap;
}

/* Data platform dashboard background */

.dashboard-bg {
  background-image: url("img/charts.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  opacity: 0.22;
  pointer-events: none;
}

.pillar.electronics {
    background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(67,170,134,0.08));
}

.pillar.firmware {
    background: linear-gradient(135deg, rgba(255,255,255,0.84), rgba(67,170,134,0.06));
}

.pillar.data-platforms {
    background: linear-gradient(135deg, rgba(255,255,255,0.84), rgba(67,170,134,0.10));
}

section {
    padding: 72px 0;
}

.section-head {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    align-items: end;
    margin-bottom: 30px;
}

.kicker {
    margin: 0 0 10px;
    color: var(--green-dark);
    font-size: 0.86rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.section-head p,
.lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.06rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    background: var(--panel);
    box-shadow: 0 18px 50px rgba(31, 115, 91, 0.09);
}

.card:hover {
    background: var(--panel-strong);
    border-color: rgba(67, 170, 134, 0.3);
}

.icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(67, 170, 134, 0.13);
    color: var(--green-dark);
    font-weight: 900;
}

h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 22px;
    align-items: stretch;
}

.about-box {
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(67, 170, 134, 0.18), rgba(255,255,255,0.88));
    padding: 34px;
    min-height: 100%;
    box-shadow: var(--shadow);
}

.about-box p {
    color: var(--muted);
    margin: 18px 0 0;
}

.stack-list {
    display: grid;
    gap: 12px;
}

.stack-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
}

.dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(67, 170, 134, 0.11);
}

.stack-item strong {
    display: block;
}

.stack-item span {
    color: var(--muted);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 26px;
}

.timeline-item {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(31, 115, 91, 0.13);
    background: rgba(255, 255, 255, 0.76);
}

.timeline-item b {
    display: block;
    color: var(--green-dark);
    margin-bottom: 6px;
}

.timeline-item small {
    color: var(--muted);
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.project {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    padding: 28px;
    background:
    radial-gradient(circle at 12% 0%, rgba(67,170,134,0.14), transparent 16rem),
    rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 50px rgba(31, 115, 91, 0.08);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--green-dark);
    background: rgba(67,170,134,0.12);
    border: 1px solid rgba(31,115,91,0.14);
    font-size: 0.82rem;
    font-weight: 700;
}

.contact {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    padding: 34px;
    border-radius: calc(var(--radius) + 10px);
    border: 1px solid rgba(31, 115, 91, 0.18);
    background: linear-gradient(135deg, rgba(67,170,134,0.18), rgba(255,255,255,0.92));
    box-shadow: var(--shadow);
}

.contact p {
    color: var(--muted);
    margin: 16px 0 0;
}

footer {
    padding: 38px 0 54px;
    color: var(--muted);
    border-top: 1px solid rgba(16, 35, 28, 0.08);
    background: rgba(255, 255, 255, 0.48);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

@media (max-width: 980px) {
    .timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 880px) {
    .hero,
    .section-head,
    .split,
    .contact {
        grid-template-columns: 1fr;
    }

    .cards,
    .projects {
        grid-template-columns: 1fr;
    }

    .nav {
        height: auto;
        padding: 16px 0;
        align-items: flex-start;
    }

    .nav-links {
        display: none;
    }

    .signal-card {
        min-height: auto;
    }
}
