:root {
  --bg: #f7efe8;
  --text: #1a1a24;
  --muted: #5b5f6d;
  --primary: #e5552f;
  --primary-dark: #bc3f20;
  --card: #fffaf5;
  --line: rgba(26, 26, 36, 0.12);
  --shadow: 0 20px 55px rgba(44, 26, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, #ffd6c8 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, #ffe9b8 0%, transparent 70%),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
}

.shape-a {
  width: 280px;
  height: 280px;
  background: #ffc9a8;
  top: 8%;
  right: -100px;
}

.shape-b {
  width: 340px;
  height: 340px;
  background: #ffe2a1;
  bottom: 10%;
  left: -120px;
}

.site-header {
  width: min(1320px, 94vw);
  margin: 22px auto 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  background: rgba(255, 250, 245, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 14px;
  z-index: 20;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
}

.section {
  width: min(1320px, 94vw);
  margin: 76px auto;
}

.hero h1,
h2,
h3 {
  margin-top: 0;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.05;
  max-width: 18ch;
}

.hero h1 span {
  color: var(--primary);
}

.tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0 34px;
}

.btn {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #f07e34);
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), #dd6825);
}

.btn-small {
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
}

.link-btn {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

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

.kpi-card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--shadow);
}

.kpi-value {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
}

.kpi-value::after {
  content: "+";
  margin-left: 1px;
}

.kpi-label {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-head {
  max-width: 60ch;
}

.section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  margin-bottom: 10px;
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

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

.app-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

#apps .feature-card {
  display: flex;
  flex-direction: column;
}

.project-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff7ef;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.platform-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #7b4d2f;
}

.platform-chip[title="Windows"] .platform-icon {
  color: #0078d4;
}

.platform-chip[title="Android"] .platform-icon {
  color: #3ddc84;
}

.platform-chip[title="Linux"] .platform-icon {
  color: #f59e0b;
}

.platform-chip[title="macOS"] .platform-icon {
  color: #52525b;
}

.platform-chip[title="iPhone"] .platform-icon,
.platform-chip[title="iOS"] .platform-icon {
  color: #1f2937;
}

.platform-chip[title="Browser"] .platform-icon {
  color: #2563eb;
}

.app-heading h3 {
  margin: 0;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.app-icon-plain {
  border: 0;
  background: transparent;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.flutter-callout {
  background: linear-gradient(140deg, #fff0df, #fff9f1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-top: 16px;
}

.flutter-callout h3 {
  margin: 0 0 10px;
}

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

.flutter-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.details-toggle {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #fff7ee;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.details-toggle:hover {
  background: #fff1e2;
}

.flutter-details {
  margin-top: 14px;
}

.offer-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.offer-stage {
  margin-top: 16px;
  background: linear-gradient(180deg, #fff7ec, #ffefd8);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.offer-intro {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 75ch;
}

.idea-cta {
  margin-top: 20px;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.idea-cta h4 {
  margin: 0;
  font-size: clamp(1.02rem, 2.3vw, 1.2rem);
}

.idea-cta .btn-small {
  white-space: nowrap;
}

.platform-stage {
  margin-top: 16px;
  background: linear-gradient(180deg, #fff8ef, #fff3e3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 330px;
}

.device-scene {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 22px;
  align-items: end;
  position: relative;
  min-height: 280px;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 66px;
}

.device {
  position: absolute;
  color: var(--text);
}

.device {
  position: relative;
  width: 100%;
}

.device span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -44px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.device-monitor {
  height: 172px;
}

.device-monitor::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 122px;
  border: 3px solid var(--text);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdfa, #fff4e6);
}

.device-monitor::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 64px;
  height: 8px;
  border-radius: 999px;
  background: var(--text);
}

.device-laptop {
  height: 172px;
}

.device-laptop::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 12px;
  height: 80px;
  border: 3px solid var(--text);
  border-radius: 10px 10px 8px 8px;
  background: linear-gradient(180deg, #fffdf9, #fff1df);
}

.device-laptop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  height: 14px;
  border-radius: 999px;
  border: 3px solid var(--text);
  background: #fff8ef;
}

.device-browser {
  height: 172px;
}

.device-browser::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 146px;
  border: 3px solid var(--text);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffe7ce 0 30px, #fffefb 30px 100%);
  z-index: 1;
}

.device-browser::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  height: 27px;
  border-radius: 9px 9px 0 0;
  background:
    radial-gradient(circle at 15px 13px, #e5552f 0 4px, transparent 5px),
    radial-gradient(circle at 31px 13px, #f19d3d 0 4px, transparent 5px),
    radial-gradient(circle at 47px 13px, #52b788 0 4px, transparent 5px),
    #ffe7ce;
  z-index: 5;
}

.device-phone {
  height: 172px;
}

.device-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 92px;
  height: 166px;
  transform: translateX(-50%);
  border: 3px solid var(--text);
  border-radius: 20px;
  background: linear-gradient(180deg, #fffef9, #fff1dd);
  z-index: 1;
}

.device-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: var(--text);
  z-index: 5;
}

.dock-target {
  position: absolute;
  z-index: 2;
  border-radius: 10px;
}

.device-monitor .dock-target {
  left: 3px;
  right: 3px;
  top: 10px;
  bottom: 39px;
}

.device-laptop .dock-target {
  left: 13%;
  right: 13%;
  top: 14px;
  bottom: 77px;
  border-radius: 8px;
}

.device-browser .dock-target {
  left: 3px;
  right: 3px;
  top: 3px;
  bottom: 24px;
  border-radius: 9px;
}

.device-phone .dock-target {
  left: 50%;
  top: 7px;
  width: 92px;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 17px;
}

.device.active-target::before,
.device.active-target::after {
  filter: drop-shadow(0 0 10px rgba(229, 85, 47, 0.5));
}

.app-orb {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 0;
  background: linear-gradient(135deg, var(--primary), #f07e34);
  box-shadow: 0 14px 35px rgba(229, 85, 47, 0.35);
  z-index: 2;
}

.steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 16px;
}

.steps li {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: var(--shadow);
}

.steps h3 {
  margin-bottom: 10px;
}

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

.testimonials .quote-box {
  background: linear-gradient(165deg, #fff7f0 0%, #fff2df 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.quote {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  margin-top: 0;
}

.author {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--muted);
}

.cta {
  text-align: center;
  padding: 38px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff8ef, #ffeed6);
}

.cta p {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto 18px;
}

.site-footer {
  width: min(1320px, 94vw);
  margin: 30px auto 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal-in 0.7s ease forwards;
  animation-delay: var(--reveal-delay, 0s);
}

main > .section.reveal:nth-of-type(1) {
  --reveal-delay: 0.06s;
}

main > .section.reveal:nth-of-type(2) {
  --reveal-delay: 0.14s;
}

main > .section.reveal:nth-of-type(3) {
  --reveal-delay: 0.22s;
}

main > .section.reveal:nth-of-type(4) {
  --reveal-delay: 0.3s;
}

main > .section.reveal:nth-of-type(5) {
  --reveal-delay: 0.38s;
}

main > .section.reveal:nth-of-type(6) {
  --reveal-delay: 0.46s;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 900px) {
  .cards-grid,
  .kpi-grid,
  .split,
  .flutter-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .project-platforms {
    justify-content: flex-start;
  }

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

  .idea-cta .btn-small {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .platform-stage {
    min-height: 460px;
  }

  .device-scene {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    min-height: 390px;
    max-width: 420px;
    gap: 18px;
    padding-bottom: 58px;
  }

  .device {
    height: 164px;
  }

  .device-monitor::before {
    top: 8px;
    height: 106px;
  }

  .device-monitor .dock-target {
    top: 11px;
    bottom: 48px;
  }

  .device-laptop::before {
    top: 10px;
    height: 72px;
  }

  .device-laptop::after {
    bottom: 30px;
  }

  .device-laptop .dock-target {
    top: 13px;
    bottom: 80px;
  }

  .device-browser::before {
    height: 126px;
  }

  .device-browser .dock-target {
    bottom: 36px;
  }

  .device-phone::before {
    width: 80px;
    height: 146px;
  }

  .device span {
    bottom: -40px;
  }

  .main-nav {
    position: absolute;
    right: 16px;
    top: 64px;
    background: #fff7f0;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 180px;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
