/* Cirqen — public website. White and green, clean but with some life in it. */

:root {
  --green: #14703f;
  --green-dark: #0d4f2c;
  --green-bright: #1f9c58;
  --tint: #f1f7f3;
  --tint-2: #e6f1ea;
  --line: #dde7e1;
  --ink: #101f17;
  --text: #435046;
  --muted: #6d7d73;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 18px 40px -24px rgba(16, 31, 23, .45);
  --shadow-sm: 0 8px 20px -14px rgba(16, 31, 23, .5);
  --display: "Sora", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 600; line-height: 1.14; letter-spacing: -.022em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--tint-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1320px, 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; border: 1.5px solid var(--green);
  background: var(--green); color: #fff; font: 600 15px/1.2 var(--font); cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .25s var(--ease);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--outline { background: #fff; color: var(--green); }
.btn--outline:hover { background: var(--tint); color: var(--green-dark); border-color: var(--green-dark); }
.btn--light { background: #fff; border-color: #fff; color: var(--green); }
.btn--light:hover { background: var(--tint); border-color: var(--tint); color: var(--green-dark); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a.nav-link { position: relative; padding: 10px 14px; color: var(--ink); font-weight: 500; font-size: 15.5px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a.nav-link:hover { color: var(--green); text-decoration: none; background: var(--tint); }
.nav a.nav-link.is-active { color: var(--green); font-weight: 600; background: var(--tint); }
.nav .btn { margin-left: 12px; padding: 11px 20px; font-size: 14.5px; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.logo-light { display: none; }

/* Sits over the hero photo, turns solid once the page scrolls or the menu opens. */
.header--overlay { position: fixed; top: 0; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background .3s, border-color .3s; }
.header--overlay:not(.is-stuck):not(.is-open) .logo-dark { display: none; }
.header--overlay:not(.is-stuck):not(.is-open) .logo-light { display: block; }
.header--overlay:not(.is-stuck):not(.is-open) .nav a.nav-link { color: rgba(240, 250, 244, .88); }
.header--overlay:not(.is-stuck):not(.is-open) .nav a.nav-link:hover,
.header--overlay:not(.is-stuck):not(.is-open) .nav a.nav-link.is-active { color: #fff; background: rgba(255, 255, 255, .15); }
.header--overlay:not(.is-stuck):not(.is-open) .nav .btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .42); color: #fff; backdrop-filter: blur(8px); }
.header--overlay:not(.is-stuck):not(.is-open) .nav .btn:hover { background: #fff; border-color: #fff; color: var(--green); }
.header--overlay:not(.is-stuck):not(.is-open) .nav-toggle { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .42); color: #fff; }
.header--overlay.is-stuck, .header--overlay.is-open { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-bottom-color: var(--line); }

/* ---------- Section furniture ---------- */
.section { padding: 76px 0; }
.section--tint { background: var(--tint); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; font: 600 12.5px/1 var(--font); letter-spacing: .13em; text-transform: uppercase; color: var(--green); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--green-bright); }
.section-title { font-size: clamp(30px, 3.6vw, 42px); }
.section-lead { margin-top: 16px; max-width: 60ch; font-size: 18px; }
.section-head { margin-bottom: 36px; }
/* Title left, supporting line right, so the header row fills the width. */
.section-head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; }
.section-head--split .section-lead { margin-top: 0; padding-bottom: 6px; }

/* ---------- Hero: full-bleed carousel under a green wash ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: center; gap: 54px; padding: 132px 0 44px; overflow: hidden; background: #04170d; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-slide.is-active img { animation: drift 9s ease-out forwards; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.15); } }

.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 23, 13, .74) 0%, rgba(4, 23, 13, .22) 34%, rgba(4, 23, 13, .62) 100%),
    linear-gradient(100deg, rgba(5, 38, 22, .96) 0%, rgba(8, 58, 34, .88) 32%, rgba(14, 94, 53, .46) 62%, rgba(31, 156, 88, .2) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 760px; }
.hero h1 { margin-top: 0; color: #fff; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 span { background: linear-gradient(100deg, #8df3bd 0%, #35d488 62%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); max-width: 54ch; color: rgba(233, 246, 238, .86); }
.btn--grad { background: linear-gradient(100deg, #1f9c58 0%, #37d187 100%); border-color: transparent; color: #04170d; box-shadow: 0 12px 30px -14px rgba(55, 209, 135, .9); }
.btn--grad:hover { filter: brightness(1.07); color: #04170d; border-color: transparent; }
.btn--glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .42); color: #fff; backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .22); border-color: #fff; color: #fff; }

.hero-ticks { display: grid; gap: 11px; margin-top: 34px; font-size: 15.5px; color: rgba(234, 245, 238, .86); }
.hero-ticks li { display: flex; align-items: center; gap: 12px; }
.hero-ticks li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(53, 212, 136, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%2335d488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* Four points along the bottom edge. */
.hero-points { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 28px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .2); }
.hero-point { display: flex; align-items: flex-start; gap: 14px; }
.hero-point-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #8df3bd; }
.hero-point-icon svg { width: 22px; height: 22px; }
.hero-point strong { display: block; color: #fff; font: 600 15px/1.3 var(--display); letter-spacing: -.01em; }
.hero-point span:not(.hero-point-icon) { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: rgba(233, 246, 238, .7); }


/* ---------- Solution cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid--cards > .sol-card:last-child:nth-child(odd) { grid-column: 1 / -1; }  /* an odd one out spans the row, no empty slot */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sol-card {
  display: flex; flex-direction: row; min-height: 330px; color: inherit;
  transition: transform .3s var(--ease), border-color .25s, box-shadow .3s var(--ease);
}
.sol-card:hover { text-decoration: none; border-color: var(--green-bright); transform: translateY(-5px); box-shadow: var(--shadow); }

/* Image area: a real photo or screenshot when one is uploaded, otherwise a branded panel with the icon. */
.sol-media { position: relative; order: 2; flex: 0 0 47%; overflow: hidden; display: grid; place-items: center; background: var(--tint); }
.sol-media img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s var(--ease); }
.sol-media img.fit-cover { object-fit: cover; }
.sol-media img.fit-contain { object-fit: contain; padding: 22px; background: #fff; }
.sol-card:hover .sol-media img { transform: scale(1.045); }
.sol-media--art {
  background:
    radial-gradient(circle at 82% 18%, rgba(55, 209, 135, .55), transparent 46%),
    radial-gradient(circle at 12% 92%, rgba(255, 255, 255, .12), transparent 40%),
    linear-gradient(135deg, #0a3d22 0%, #14703f 58%, #1f9c58 100%);
}
.sol-media--art::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 100%); mask-image: linear-gradient(120deg, transparent 20%, #000 100%);
}
.sol-media--art .icon { position: relative; width: 88px; height: 88px; border-radius: 22px; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); transition: transform .4s var(--ease), background .25s; }
.sol-media--art .icon svg { width: 42px; height: 42px; }
.sol-card:hover .sol-media--art .icon { background: rgba(255, 255, 255, .24); color: #fff; transform: scale(1.08) rotate(-3deg); }
.chip--float { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .94); border-color: transparent; color: var(--green-dark); box-shadow: 0 4px 14px -6px rgba(16, 31, 23, .4); }

.sol-body { display: flex; flex-direction: column; justify-content: center; flex: 1 1 53%; padding: 34px; }
.sol-card h3 { font-size: 25px; }
.sol-card p { margin-top: 12px; font-size: 16px; }
.sol-card .tagline { margin-top: 6px; color: var(--green); font-weight: 600; font-size: 15.5px; font-family: var(--display); letter-spacing: -.01em; }
.sol-card .more { margin-top: 22px; font-weight: 600; font-size: 15px; color: var(--green); }
.sol-card .more span { display: inline-block; transition: transform .25s var(--ease); }
.sol-card:hover .more span { transform: translateX(5px); }
.icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--green); }
.icon svg { width: 25px; height: 25px; }
.chip { font: 600 11.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }


/* ---------- Devices ---------- */
.devices-grid { display: grid; grid-template-columns: 1fr .94fr; gap: 56px; align-items: center; }
.devices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 34px; }
.device { margin: 0; }
.device:nth-child(even) { transform: translateY(34px); }
.device-frame { background: #fff; border: 1px solid var(--line); border-radius: var(--r); height: 212px; display: flex; align-items: center; justify-content: center; padding: 18px; transition: border-color .25s, transform .3s var(--ease); }
.device:hover .device-frame { border-color: var(--green-bright); transform: translateY(-4px); }
.device-frame img { max-width: 100%; max-height: 178px; width: auto; object-fit: contain; }
.device figcaption { margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.ticks { display: grid; gap: 14px; margin-top: 26px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: -1px; color: var(--green); font-weight: 700; }

/* ---------- About: photo with an overlapping card ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 72px; align-items: center; }
.about-visual { position: relative; }
.about-visual > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.mv { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.mv > div { background: #fff; padding: 22px 24px; }
.mv h3 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 9px; font-family: var(--font); font-weight: 600; }
.mv h3::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--green-bright); }
.mv p { color: var(--ink); font-size: 17px; line-height: 1.55; }
.about-visual .mv { position: absolute; left: 44px; right: -40px; bottom: -44px; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.why > div { border-top: 2px solid var(--green); padding-top: 20px; }
.why .n { display: block; font: 600 34px/1 var(--display); letter-spacing: -.03em; color: #bcdcc9; margin-bottom: 14px; }
.why h3 { font-size: 18px; }
.why p { margin-top: 10px; font-size: 15.5px; }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--green); color: #dcebe2; padding: 76px 0; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.2vw, 38px); }
.cta p { margin-top: 12px; max-width: 52ch; color: #cfe4d8; }
.cta .btn-row { margin-top: 0; }

/* ---------- Inner pages ---------- */
.page-head { position: relative; padding: 64px 0 52px; border-bottom: 1px solid var(--line); background: var(--tint); }
.page-head h1 { font-size: clamp(34px, 4.4vw, 50px); }
.page-head p { margin-top: 16px; max-width: 62ch; font-size: 18px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.group-title { font: 600 13px/1 var(--font); letter-spacing: .13em; text-transform: uppercase; color: var(--green); margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.group-title + .grid { margin-bottom: 52px; }
.detail { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.detail img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 24px; }
.detail img.photo--cover { object-fit: cover; }
.detail img.photo--contain { object-fit: contain; background: #fff; padding: 14px; }
.checks li { position: relative; padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 18px; color: var(--green); font-weight: 700; }
.checks strong { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; }
.list-links li { border-bottom: 1px solid var(--line); }
.list-links li:last-child { border-bottom: 0; }
.list-links a { display: block; padding: 13px 0; font-weight: 500; }
.panel { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.panel h3 { font-size: 19px; margin-bottom: 10px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--green); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #c8d5cd; border-radius: var(--r-sm); background: #fff; color: var(--ink); font: 400 16px var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 156, 88, .16); }
.messages { margin-bottom: 22px; display: grid; gap: 10px; }
.msg { padding: 13px 17px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--tint); color: var(--ink); }
.msg--success { border-color: #9fcfb1; background: #eaf6ef; }
.msg--error { border-color: #e6b1b1; background: #fbeeee; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.thanks { text-align: center; padding: 110px 0; }
.thanks h1 { font-size: clamp(32px, 4.2vw, 46px); }
.thanks p { margin: 16px auto 0; max-width: 46ch; }
.thanks .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--tint); border-top: 1px solid var(--line); padding: 64px 0 30px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; }
.footer img { height: 46px; width: auto; margin-bottom: 18px; }
.footer p { max-width: 40ch; color: var(--muted); }
.footer h4 { margin: 0 0 16px; font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); }
.footer li + li { margin-top: 10px; }
.footer li a { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid--cards { grid-template-columns: 1fr; }
  .hero-points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .why { grid-template-columns: repeat(2, 1fr); }
  .section-head--split { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .section-head--split .section-lead { padding-bottom: 0; }
  .about-grid, .devices-grid, .detail, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual .mv { position: static; margin-top: 22px; inset: auto; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 22px; }
  .nav.is-open { display: flex; }
  .nav a.nav-link { padding: 13px 12px; border-radius: var(--r-sm); }
  .nav .btn { margin: 12px 0 0; }
}
@media (max-width: 720px) {
  .brand img { height: 36px; }
  .section { padding: 64px 0; }
  .hero { min-height: 0; gap: 40px; padding: 112px 0 36px; }
  .hero-points { grid-template-columns: 1fr; }
  .grid--cards, .why, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .sol-card { flex-direction: column; min-height: 0; }
  .sol-media { order: 0; flex: none; aspect-ratio: 16 / 10; }
  .sol-body { padding: 24px 26px 28px; }
  .sol-card h3 { font-size: 22px; }
  .devices { gap: 14px; margin-bottom: 0; }
  .device:nth-child(even) { transform: none; }
  .device-frame { height: 150px; padding: 12px; }
  .device-frame img { max-height: 118px; }
  .btn-row .btn { flex: 1 1 100%; }
  .container { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .hero-slide.is-active img { transform: scale(1.06); }
}
