
/* =========================================
   CLOUDLY — STYLES
   Colourful, responsive, light/dark themes
   ========================================= */

:root {
  color-scheme: light;
  --bg: #f7f7fc;
  --surface: #ffffff;
  --surface-alt: #f0eef9;
  --text: #211d32;
  --muted: #716c83;
  --border: #e6e2f0;
  --primary: #7053d9;
  --primary-hover: #5b3fc2;
  --accent: #f16b9b;
  --accent-2: #ffb56b;
  --green: #3dba91;
  --blue: #5a9cf5;
  --shadow: 0 14px 45px rgba(40, 30, 80, 0.09);
  --shadow-hover: 0 22px 55px rgba(40, 30, 80, 0.15);
  --radius: 22px;
  --font-body: "DM Sans", sans-serif;
  --font-heading: "Manrope", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171522;
  --surface: #211e30;
  --surface-alt: #2a253b;
  --text: #f5f1ff;
  --muted: #b0a9c7;
  --border: #39334e;
  --primary: #a38bff;
  --primary-hover: #b9a7ff;
  --accent: #ff92bf;
  --accent-2: #ffc27f;
  --green: #78e0bb;
  --blue: #8cbaff;
  --shadow: 0 14px 45px rgba(0, 0, 0, 0.22);
  --shadow-hover: 0 22px 55px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  transition: background 0.25s ease, color 0.25s ease;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

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

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

button,
input,
select,
textarea {
  font-size: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2.7rem, 5.3vw, 4.7rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.wrap {
  width: min(1160px, calc(100% - 44px));
  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 15px;
  z-index: 1000;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 15px;
}

/* ANNOUNCEMENT BAR */

.announcement {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 9px 15px;
  background: #28213e;
  color: #f5efff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-align: center;
}

.sparkle {
  color: #ffb3d0;
}

.announce-dot,
.eyebrow-dot,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65dbad;
  display: inline-block;
}

.announce-dot {
  margin-inline: 5px;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, #9577ff, #6544d0);
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 5px 15px rgba(112, 83, 217, 0.24);
}

.brand-dot {
  color: var(--accent);
}

.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 23px;
}

.site-header nav a:not(.btn) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-header nav a:not(.btn):hover {
  color: var(--primary);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.theme-icon {
  font-size: 17px;
  line-height: 1;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  font-weight: 700;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 14px 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(112, 83, 217, 0.2);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.btn:hover {
  transform: translateY(-3px);
  background: var(--primary-hover);
  box-shadow: 0 13px 25px rgba(112, 83, 217, 0.28);
}

.btn-small {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--primary);
}

.play-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  font-size: 10px;
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(165, 137, 255, 0.14), transparent 42%),
    radial-gradient(ellipse at 100% 50%, rgba(255, 153, 197, 0.13), transparent 38%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 55px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin-bottom: 19px;
}

.hero h1 {
  margin-bottom: 23px;
  max-width: 610px;
}

.gradient-text {
  background: linear-gradient(100deg, var(--primary) 5%, #bb67ce 55%, var(--accent) 100%);
  color: var(--primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 40px;
}

.avatar-stack {
  display: flex;
  padding-left: 3px;
}

.avatar-stack span {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-left: -3px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  color: white;
  font-weight: 800;
  background: #8266dd;
}

.avatar-stack span:nth-child(2) {
  background: #ee80ad;
}

.avatar-stack span:nth-child(3) {
  background: #efa75b;
}

.trust-row p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.trust-row strong {
  color: var(--text);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding: 35px 12px;
}

.hero-browser {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-browser:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.browser-top,
.preview-browser {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 9px 13px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.browser-dots,
.preview-browser {
  display: flex;
  align-items: center;
}

.browser-dots {
  gap: 5px;
}

.browser-dots i,
.preview-browser > span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f18ba7;
}

.browser-dots i:nth-child(2),
.preview-browser > span:nth-child(2) {
  background: #f2be64;
}

.browser-dots i:nth-child(3),
.preview-browser > span:nth-child(3) {
  background: #66cba0;
}

.browser-url {
  flex: 1;
  margin-inline: 15px;
  padding: 3px 12px;
  border-radius: 6px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
  font-size: 10px;
}

.browser-lock {
  color: var(--muted);
}

.demo-site {
  padding: 17px 20px 12px;
  background: #fffaf6;
  color: #2d2941;
}

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 18px;
  font-size: 9px;
}

.demo-nav b {
  font-family: var(--font-heading);
  font-size: 13px;
  color: #5942a0;
}

.demo-nav span {
  color: #6b657d;
}

.demo-nav button {
  border: 0;
  border-radius: 5px;
  padding: 7px 9px;
  background: #6d51d0;
  color: white;
  font-size: 8px;
  font-weight: 800;
}

.demo-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.demo-hero small {
  color: #8d6cbd;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.demo-hero h3 {
  margin: 10px 0;
  color: #342746;
  font-size: clamp(20px, 2.3vw, 29px);
}

.demo-hero h3 em {
  color: #c86c98;
  font-family: Georgia, serif;
  font-weight: 400;
}

.demo-hero p {
  color: #7e7388;
  font-size: 9px;
  line-height: 1.7;
}

.demo-cta {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 6px;
  background: #7254d0;
  color: white;
  font-size: 8px;
  font-weight: 700;
}

.demo-photo {
  height: 210px;
  overflow: hidden;
  border-radius: 65px 65px 10px 10px;
}

.demo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid #ece4e9;
  color: #897d93;
  font-size: 8px;
}

.float-pill {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: floaty 4s ease-in-out infinite;
}

.pill-top {
  top: 0;
  left: -20px;
}

.pill-bottom {
  right: -10px;
  bottom: 0;
  animation-delay: -2s;
}

.pill-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  font-size: 18px;
  font-weight: 800;
}

.purple {
  color: #8063db;
  background: #eee8ff;
}

.orange {
  color: #bc6c22;
  background: #fff0df;
}

.float-pill strong,
.float-pill small {
  display: block;
}

.float-pill strong {
  font-size: 11px;
}

.float-pill small {
  color: var(--muted);
  font-size: 9px;
}

.decor-star {
  position: absolute;
  right: -3px;
  top: 10px;
  color: var(--accent);
  font-size: 40px;
  animation: rotate-star 18s linear infinite;
}

.hero-shape {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.shape-one {
  width: 200px;
  height: 200px;
  right: -80px;
  top: 30px;
  background: rgba(132, 102, 240, 0.07);
}

.shape-two {
  width: 130px;
  height: 130px;
  left: 40%;
  bottom: -50px;
  background: rgba(241, 107, 155, 0.08);
}

/* QUICK SERVICES STRIP */

.quick-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 23px;
  margin-top: -23px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.quick-strip > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.strip-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  font-size: 19px;
}

.pink {
  color: #ce5288;
  background: #ffe6f0;
}

.blue {
  color: #477fd4;
  background: #e4eeff;
}

.yellow {
  color: #a97620;
  background: #fff0c9;
}

.green {
  color: #258b6a;
  background: #dcf7ec;
}

.quick-strip b,
.quick-strip small {
  display: block;
}

.quick-strip b {
  font-size: 12px;
  line-height: 1.4;
}

.quick-strip small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.4;
}

/* SECTION HEADINGS */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 42px;
}

.section-heading > div {
  max-width: 650px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 355px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.highlight-underline {
  position: relative;
  z-index: 0;
  white-space: normal;
}

.highlight-underline::after {
  position: absolute;
  z-index: -1;
  content: "";
  left: 0;
  right: 0;
  bottom: 1px;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 176, 207, 0.52);
  transform: rotate(-1deg);
}

/* SERVICES */

.services-section {
  padding-top: 110px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 23px 20px 21px;
  min-height: 265px;
  border: 1px solid transparent;
  border-radius: 18px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -38px;
  bottom: -45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

.service-card:hover::after {
  transform: scale(1.6);
}

.c-lilac {
  background: #eee8ff;
  color: #342653;
}

.c-peach {
  background: #ffeadf;
  color: #513326;
}

.c-blue {
  background: #e3efff;
  color: #263a5d;
}

.c-yellow {
  background: #fff3ce;
  color: #51401d;
}

.c-mint {
  background: #ddf6ec;
  color: #244b3e;
}

.c-pink {
  background: #ffe5ef;
  color: #5b2c42;
}

html[data-theme="dark"] .c-lilac {
  background: #342b50;
  color: #f2eaff;
}

html[data-theme="dark"] .c-peach {
  background: #462e2b;
  color: #ffebe2;
}

html[data-theme="dark"] .c-blue {
  background: #24364e;
  color: #e2eeff;
}

html[data-theme="dark"] .c-yellow {
  background: #453b28;
  color: #fff2d1;
}

html[data-theme="dark"] .c-mint {
  background: #203d36;
  color: #e0fff3;
}

html[data-theme="dark"] .c-pink {
  background: #482b3d;
  color: #ffe6f0;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: 25px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: #6048a7;
  font-size: 23px;
  font-weight: 800;
}

html[data-theme="dark"] .service-icon {
  background: rgba(255, 255, 255, 0.09);
  color: #d4c6ff;
}

.service-number {
  position: absolute;
  top: 24px;
  right: 21px;
  opacity: 0.6;
  font-size: 10px;
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.service-card p {
  min-height: 66px;
  margin-bottom: 16px;
  opacity: 0.82;
  font-size: 12px;
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tags span {
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 700;
}

html[data-theme="dark"] .service-tags span {
  background: rgba(255, 255, 255, 0.09);
}

.service-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 26px;
  padding: 19px 22px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}

.footer-spark {
  color: var(--accent);
  font-size: 26px;
}

.service-footer p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.service-footer p b {
  color: var(--text);
}

.service-footer .text-link {
  white-space: nowrap;
}

/* WEBSITE EXAMPLES */

.work-section {
  background:
    radial-gradient(ellipse at 5% 20%, rgba(127, 102, 225, 0.07), transparent 30%),
    var(--surface-alt);
}

.work-toolbar {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 27px;
}

.work-toolbar > p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.live-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(61, 186, 145, 0.13);
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.filter-btn span {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 4px;
  border-radius: 50px;
  background: rgba(128, 100, 220, 0.13);
  font-size: 9px;
}

.filter-btn.active span {
  background: rgba(255, 255, 255, 0.2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px 20px;
}

.portfolio-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 5px 20px rgba(30, 25, 55, 0.035);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(130, 100, 220, 0.45);
}

.portfolio-card[hidden] {
  display: none !important;
}

.site-preview {
  overflow: hidden;
  background: #fff;
  color: #2b2940;
}

.preview-browser {
  min-height: 28px;
  padding: 7px 10px;
  gap: 4px;
  background: #f1eff6;
  border-bottom: 1px solid #e8e3ef;
}

.preview-browser > span {
  width: 6px;
  height: 6px;
}

.preview-browser small {
  overflow: hidden;
  flex: 1;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 4px;
  background: white;
  color: #8b8498;
  font-size: 7px;
  white-space: nowrap;
}

.preview-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 43px;
  padding: 10px 12px;
  font-size: 7px;
}

.preview-nav b {
  font-family: var(--font-heading);
  font-size: 10px;
  white-space: nowrap;
}

.preview-nav b span {
  color: #e97eaa;
}

.preview-nav > span {
  color: #81798f;
  white-space: nowrap;
}

.preview-nav i {
  padding: 6px 7px;
  border-radius: 4px;
  background: #6e50cb;
  color: white;
  font-size: 6px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.preview-hero {
  min-height: 207px;
  padding: 26px 20px;
  background: #faf6ff;
}

.preview-hero > small {
  display: block;
  margin-bottom: 9px;
  color: #8064bb;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.preview-hero h4 {
  margin-bottom: 9px;
  color: #352846;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.12;
}

.preview-hero h4 em {
  color: #c96d9d;
  font-family: Georgia, serif;
  font-weight: 400;
}

.preview-hero p {
  margin-bottom: 13px;
  color: #83758d;
  font-size: 9px;
  line-height: 1.6;
}

.preview-button {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 5px;
  background: #6e50cb;
  color: white;
  font-size: 8px;
  font-weight: 800;
}

.preview-hero.split {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  align-items: center;
  gap: 8px;
  padding: 20px 13px 20px 17px;
}

.preview-hero.split h4 {
  font-size: clamp(18px, 2vw, 27px);
}

.preview-hero.split img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 60px 60px 8px 8px;
}

.preview-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px;
  border-top: 1px solid #eee8f0;
  color: #837a90;
  background: #fff;
  font-size: 7px;
}

.theme-cafe .preview-hero {
  background: #f9f1e7;
}

.theme-cafe .preview-nav b {
  color: #5d422d;
}

.theme-cafe .preview-hero h4 em {
  color: #b47c43;
}

.theme-cafe .preview-button {
  background: #76543a;
}

.theme-restaurant .preview-hero {
  min-height: 207px;
}

.theme-restaurant .preview-nav b {
  color: #9c533e;
}

.theme-fitness .preview-nav b {
  color: #242c32;
}

.theme-fitness .preview-nav b span {
  color: #a1d63c;
}

.theme-fitness .preview-hero {
  background: #e9f3df;
}

.theme-fitness .preview-hero h4 em {
  color: #58832b;
}

.theme-fitness .preview-button {
  background: #2b4030;
}

.theme-clinic .preview-hero {
  background: #eaf7f4;
}

.theme-clinic .preview-nav b {
  color: #3c9185;
}

.theme-clinic .preview-hero h4 em {
  color: #419e8e;
}

.theme-clinic .preview-button {
  background: #3d9f8e;
}

.theme-academy .preview-hero {
  background: #fff5dc;
}

.theme-academy .preview-nav b {
  color: #7352bd;
}

.theme-academy .preview-hero h4 em {
  color: #dd9553;
}

.theme-academy .preview-button {
  background: #7352bd;
}

.theme-store .preview-hero {
  background: #f2f0e8;
}

.theme-store .preview-nav b {
  color: #425b43;
}

.theme-store .preview-hero h4 em {
  color: #66856a;
}

.theme-store .preview-button {
  background: #4f6c51;
}

.theme-salon .preview-hero {
  background: #f9e9ed;
}

.theme-salon .preview-nav b {
  color: #9a5575;
}

.theme-salon .preview-hero h4 em {
  color: #ba6387;
}

.theme-salon .preview-button {
  background: #a85b7c;
}

.theme-builder .preview-hero {
  background: #e8e8e5;
}

.theme-builder .preview-nav b {
  color: #3d4748;
}

.theme-builder .preview-hero h4 em {
  color: #c18a52;
}

.theme-builder .preview-button {
  background: #37484a;
}

.theme-consult .preview-hero {
  background: #eeeaff;
}

.theme-consult .preview-nav b {
  color: #6453ad;
}

.theme-consult .preview-hero h4 em {
  color: #9277d9;
}

.theme-property .preview-hero {
  background: #edf2ec;
}

.theme-property .preview-nav b {
  color: #47634d;
}

.theme-property .preview-hero h4 em {
  color: #6d946c;
}

.theme-event .preview-hero {
  background: #f7eaf2;
}

.theme-event .preview-nav b {
  color: #94567d;
}

.theme-event .preview-hero h4 em {
  color: #c27da5;
}

.theme-portfolio .preview-hero {
  background: #eeeafa;
}

.theme-portfolio .preview-nav b {
  color: #6450a4;
}

.theme-portfolio .preview-hero h4 em {
  color: #a47fd8;
}

.photo-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.photo-bg::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(25, 20, 35, 0.78), rgba(25, 20, 35, 0.12));
}

.photo-bg > * {
  position: relative;
  z-index: 1;
}

.photo-bg > small,
.photo-bg h4,
.photo-bg p {
  color: #fff !important;
}

.photo-bg h4 em {
  color: #ffd0e1 !important;
}

.food-bg {
  background-image: url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=800&q=80");
}

.gym-bg {
  background-image: url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=800&q=80");
}

.build-bg {
  background-image: url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=800&q=80");
}

.event-bg {
  background-image: url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=800&q=80");
}

.photo-bg .preview-button {
  background: #fff;
  color: #332844;
}

.portfolio-info {
  padding: 19px;
}

.portfolio-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.category-label {
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.075em;
}

.project-index {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.portfolio-info h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.portfolio-info p {
  min-height: 47px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.feature-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-line span {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.concept-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 27px 0 0;
  padding: 17px 20px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.concept-note > span:first-child {
  color: var(--accent);
  font-size: 21px;
}

.concept-note b {
  color: var(--text);
}

/* WHY CLOUDLY */

.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.why-copy h2 {
  margin-bottom: 20px;
}

.why-copy > p {
  max-width: 410px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-list article {
  display: grid;
  grid-template-columns: 48px 1fr 20px;
  align-items: center;
  gap: 15px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.benefit-list article:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  font-size: 21px;
  font-weight: 800;
}

.benefit-icon.purple {
  color: #8063db;
  background: #eee8ff;
}

.benefit-icon.orange {
  color: #bc6c22;
  background: #fff0df;
}

.benefit-icon.green {
  color: #258b6a;
  background: #dcf7ec;
}

.benefit-icon.blue {
  color: #477fd4;
  background: #e4eeff;
}

.benefit-list h3 {
  margin-bottom: 5px;
  font-size: 14px;
}

.benefit-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.benefit-arrow {
  color: var(--primary);
  font-size: 19px;
}

/* PROCESS */

.process-section {
  background: var(--surface-alt);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.process-grid article {
  position: relative;
  padding: 25px 21px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-grid article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.step-no {
  position: absolute;
  top: 22px;
  right: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.step-symbol {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  margin-bottom: 24px;
  border-radius: 15px;
  font-size: 23px;
  font-weight: 800;
}

.lilac {
  background: #eee8ff;
  color: #7354c5;
}

.peach {
  background: #ffeadf;
  color: #b56d3e;
}

.mint {
  background: #ddf6ec;
  color: #338a6d;
}

.process-grid h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

/* CALL TO ACTION */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 68px 0;
  background: linear-gradient(115deg, #5941b6 0%, #7850d4 52%, #b05ba9 100%);
  color: #fff;
}

.cta-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
}

.cta-inner > div {
  max-width: 690px;
}

.cta-inner .eyebrow {
  color: #e6d8ff;
}

.cta-inner h2 {
  margin-bottom: 15px;
  color: white;
}

.cta-inner h2 em {
  color: #ffd4e7;
  font-family: Georgia, serif;
  font-weight: 400;
}

.cta-inner p {
  max-width: 540px;
  margin-bottom: 0;
  color: #e7dffb;
  font-size: 13px;
}

.btn-light {
  flex-shrink: 0;
  background: #fff;
  color: #5538a8;
  box-shadow: 0 10px 25px rgba(32, 20, 68, 0.15);
}

.btn-light:hover {
  background: #f8f2ff;
  color: #5538a8;
}

.cta-decoration {
  position: absolute;
  top: -40px;
  right: 5%;
  color: rgba(255, 255, 255, 0.13);
  font-size: 130px;
  pointer-events: none;
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.faq-grid > div:first-child > p {
  margin: 20px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 20px 35px 20px 0;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  right: 4px;
  top: 17px;
  content: "+";
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 25px 19px 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

/* CONTACT */

.contact-section {
  background:
    radial-gradient(ellipse at 0% 80%, rgba(166, 139, 255, 0.09), transparent 35%),
    var(--surface-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 20px;
}

.contact-copy > p {
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top: 34px;
}

.contact-points > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--primary);
  font-size: 19px;
}

.contact-points b,
.contact-points small {
  display: block;
}

.contact-points b {
  font-size: 12px;
}

.contact-points small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.contact-form {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 24px;
}

.form-heading h3 {
  margin-bottom: 7px;
  font-size: 20px;
}

.form-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-bottom: 17px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 90px;
}

.form-submit {
  width: 100%;
  border: 0;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  line-height: 1.65;
}

.form-status {
  margin: 10px 0 0;
  color: var(--primary);
  font-size: 11px;
}

/* FOOTER */

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 34px;
}

.footer-brand {
  font-size: 23px;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 25px;
}

.footer-main > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 19px;
}

.footer-links a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-block: 17px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

/* ANIMATIONS */

@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes rotate-star {
  to {
    transform: rotate(360deg);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* DARK MODE COMPONENT DETAILS */

html[data-theme="dark"] .demo-site {
  background: #fffaf6;
}

html[data-theme="dark"] .portfolio-card {
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .preview-foot {
  background: #fff;
  color: #837a90;
}

html[data-theme="dark"] .preview-browser {
  background: #f1eff6;
}

html[data-theme="dark"] .preview-browser small {
  background: #fff;
  color: #8b8498;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1080px) {
  .site-header nav {
    gap: 14px;
  }

  .site-header nav a:not(.btn) {
    font-size: 12px;
  }

  .hero-grid {
    gap: 35px;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid,
  .faq-grid,
  .contact-grid {
    gap: 45px;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 75px 0;
  }

  .nav-wrap {
    min-height: 72px;
    gap: 10px;
  }

  .brand {
    font-size: 24px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 26px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
  }

  .theme-toggle {
    margin-left: auto;
    padding: 9px 11px;
  }

  .menu-toggle + nav,
  .site-header nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 18px 22px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-header nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header nav a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }

  .site-header nav .btn {
    margin-top: 14px;
  }

  .hero {
    padding: 70px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .hero h1 {
    max-width: 660px;
  }

  .hero-lead {
    max-width: 620px;
  }

  .quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .section-heading > p {
    max-width: 570px;
  }

  .why-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-copy {
    max-width: 620px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-decoration {
    right: 3%;
    top: -10px;
  }

  .footer-main {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 30px, 1160px);
  }

  .announcement {
    font-size: 10px;
    gap: 6px;
  }

  .announcement .announce-dot {
    display: none;
  }

  .nav-wrap {
    gap: 7px;
  }

  .brand {
    font-size: 22px;
    gap: 7px;
  }

  .theme-toggle {
    gap: 5px;
    padding: 9px;
  }

  .theme-label {
    display: none;
  }

  .menu-toggle {
    padding: 9px;
    font-size: 12px;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .hero-visual {
    padding: 31px 0;
  }

  .pill-top {
    left: -5px;
  }

  .pill-bottom {
    right: -4px;
  }

  .float-pill {
    padding: 9px 10px;
    max-width: 205px;
  }

  .pill-icon {
    width: 29px;
    height: 29px;
  }

  .float-pill strong {
    font-size: 10px;
  }

  .float-pill small {
    font-size: 8px;
  }

  .demo-site {
    padding: 12px 11px;
  }

  .demo-nav {
    flex-wrap: wrap;
  }

  .demo-nav > span {
    font-size: 7px;
  }

  .demo-photo {
    height: 150px;
  }

  .demo-hero h3 {
    font-size: 21px;
  }

  .quick-strip {
    gap: 17px 12px;
    padding: 17px 13px;
  }

  .quick-strip > div {
    gap: 9px;
  }

  .strip-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 15px;
  }

  .quick-strip b {
    font-size: 10px;
  }

  .quick-strip small {
    font-size: 9px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .service-card {
    min-height: 0;
    padding: 20px;
  }

  .service-icon {
    margin-bottom: 18px;
  }

  .service-card p {
    min-height: 0;
  }

  .service-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
  }

  .service-footer p {
    flex-basis: calc(100% - 50px);
  }

  .service-footer .text-link {
    margin-left: 40px;
  }

  .work-filters {
    gap: 7px;
  }

  .filter-btn {
    padding: 8px 11px;
    font-size: 10px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .preview-hero {
    min-height: 200px;
  }

  .preview-hero.split h4 {
    font-size: 25px;
  }

  .preview-hero.split img {
    height: 165px;
  }

  .portfolio-info p {
    min-height: 0;
  }

  .benefit-list article {
    grid-template-columns: 42px 1fr 15px;
    gap: 11px;
    padding: 15px 12px;
  }

  .benefit-icon {
    width: 40px;
    height: 40px;
  }

  .benefit-list h3 {
    font-size: 12px;
  }

  .benefit-list p {
    font-size: 10px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid article {
    padding: 22px;
  }

  .cta-band {
    padding: 55px 0;
  }

  .cta-inner h2 {
    font-size: 2.2rem;
  }

  .cta-decoration {
    font-size: 85px;
    top: 0;
  }

  .contact-form {
    padding: 21px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }
}

/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
