/* TerenGIS — landing page. */

.shell {
    width: min(1180px, 100% - 2.5rem);
    margin-inline: auto;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(4, 41, 42, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 68px;
}

.site-nav {
    display: flex;
    gap: 1.6rem;
    margin-left: auto;
}

.site-nav a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-size: .94rem;
    font-weight: 550;
}

.site-nav a:hover {
    color: #fff;
}

.site-header .btn {
    margin-left: 1.4rem;
}

@media (max-width: 860px) {
    .site-nav { display: none; }
    .site-header .btn { margin-left: auto; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1100px 620px at 84% -8%, rgba(43, 188, 170, .34), transparent 62%),
        radial-gradient(700px 500px at 6% 110%, rgba(242, 164, 27, .16), transparent 60%),
        linear-gradient(168deg, #0a5450 0%, #06302f 58%, #041f22 100%);
}

/* The parcel grid is the visual signature of the product. */
.hero__pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .3;
    pointer-events: none;
    mask-image: linear-gradient(180deg, #000 5%, transparent 88%);
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: center;
    gap: 3.5rem;
    padding: 5.2rem 0 5.8rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .34rem .85rem .34rem .5rem;
    margin-bottom: 1.3rem;
    border: 1px solid rgba(166, 229, 219, .34);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--brand-200);
}

.eyebrow b {
    padding: .12rem .5rem;
    border-radius: 999px;
    background: var(--amber-500);
    color: #2a1b02;
    font-size: .72rem;
    letter-spacing: .04em;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.15rem, 4.6vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: .7rem;
    text-wrap: balance;
}

.hero h1 em {
    font-style: normal;
    color: var(--brand-400);
}

.hero__lead {
    max-width: 33rem;
    font-size: clamp(1.02rem, 1.5vw, 1.17rem);
    line-height: 1.65;
    color: rgba(226, 242, 240, .84);
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-bottom: 2.4rem;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.hero__meta div {
    min-width: 8rem;
}

.hero__meta dt {
    font-size: .74rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--brand-200);
    margin-bottom: .2rem;
}

.hero__meta dd {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 650;
    color: #fff;
}

.hero__device {
    justify-self: center;
    filter: drop-shadow(0 40px 60px rgba(2, 20, 20, .55));
}

@media (max-width: 940px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 2.6rem;
        padding: 3.4rem 0 4rem;
    }

    .hero__device {
        max-width: 320px;
    }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section {
    padding: 5rem 0;
}

.section--tint {
    background: var(--paper-2);
    border-block: 1px solid var(--line);
}

.section__head {
    max-width: 46rem;
    margin-bottom: 2.8rem;
}

.section__kicker {
    display: block;
    margin-bottom: .6rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-600);
}

.section__head h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    letter-spacing: -.025em;
    margin-bottom: .5rem;
}

.section__head p {
    margin: 0;
    color: var(--ink-500);
    font-size: 1.05rem;
}

/* ── Features ─────────────────────────────────────────────────────────── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    gap: 1.15rem;
}

.card {
    padding: 1.6rem 1.5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-2);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    border-radius: 13px;
    background: linear-gradient(160deg, var(--brand-50), var(--brand-100));
    color: var(--brand-700);
    border: 1px solid var(--brand-200);
}

.card__icon svg {
    width: 24px;
    height: 24px;
}

.card h3 {
    font-size: 1.08rem;
    margin-bottom: .4rem;
}

.card p {
    margin: 0;
    color: var(--ink-500);
    font-size: .95rem;
    line-height: 1.6;
}

/* ── How it works ─────────────────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.6rem;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 3.3rem;
}

.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-900);
    color: var(--brand-200);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
}

.step h3 {
    font-size: 1.02rem;
    margin-bottom: .35rem;
}

.step p {
    margin: 0;
    color: var(--ink-500);
    font-size: .95rem;
}

/* ── Layers ───────────────────────────────────────────────────────────── */
.layers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.layer {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-500);
    border-radius: var(--radius);
}

.layer--pending {
    border-left-color: var(--amber-500);
}

.layer h4 {
    margin: 0 0 .15rem;
    font-size: .98rem;
}

.layer p {
    margin: 0;
    font-size: .88rem;
    color: var(--ink-500);
}

/* ── Call to action ───────────────────────────────────────────────────── */
.cta {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    color: #fff;
    background:
        radial-gradient(700px 400px at 80% 0%, rgba(43, 188, 170, .32), transparent 60%),
        linear-gradient(160deg, #0a5450, #052a2b);
}

.cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    margin-bottom: .4rem;
    letter-spacing: -.02em;
}

.cta p {
    margin: 0;
    color: rgba(226, 242, 240, .8);
    max-width: 34rem;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
    padding: 2.4rem 0;
    background: var(--ink-950);
    color: var(--ink-300);
    font-size: .9rem;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer a {
    color: var(--brand-200);
}

/* ── Device mockup ────────────────────────────────────────────────────── */
.mock {
    width: 100%;
    max-width: 360px;
    height: auto;
}
