:root {
  color-scheme: light;
  --ink: #14212a;
  --muted: #61717c;
  --paper: #f6f4ef;
  --panel: #ffffff;
  --line: rgba(20, 33, 42, 0.14);
  --ocean: #0f6b7d;
  --deep: #123746;
  --sun: #d8923d;
  --leaf: #5c8b68;
  --sky: #d6e9ef;
  --shadow: 0 20px 60px rgba(18, 55, 70, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(246, 244, 239, 0.84);
  border-bottom: 1px solid rgba(20, 33, 42, 0.08);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header[data-scrolled] {
  background: rgba(246, 244, 239, 0.94);
  box-shadow: 0 10px 34px rgba(20, 33, 42, 0.08);
}

.brand img {
  width: clamp(132px, 16vw, 190px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  color: rgba(20, 33, 42, 0.74);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="true"] {
  color: var(--ocean);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(20, 33, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.language-switcher button {
  min-width: 34px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: rgba(20, 33, 42, 0.68);
  background: transparent;
  font: inherit;
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.language-switcher button:hover,
.language-switcher button:focus-visible,
.language-switcher button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--ocean);
  outline: none;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 128px clamp(18px, 5vw, 64px) 56px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(9, 30, 39, 0.78) 0%, rgba(9, 30, 39, 0.52) 44%, rgba(9, 30, 39, 0.18) 100%), url("assets/images/kirana-hero.jpeg");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26vh;
  background: linear-gradient(0deg, var(--paper), rgba(246, 244, 239, 0));
}

.hero-content {
  width: min(760px, 100%);
  color: #ffffff;
  padding-bottom: clamp(24px, 6vh, 72px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.kirana h2,
.contact h2 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 9vw, 7.5rem);
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--sun);
  color: #1e170d;
}

.button.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.hero-note {
  position: absolute;
  right: clamp(18px, 5vw, 64px);
  bottom: 44px;
  display: grid;
  grid-template-columns: auto minmax(180px, 280px);
  gap: 7px 16px;
  max-width: min(540px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(10, 26, 32, 0.46);
  backdrop-filter: blur(14px);
}

.hero-note span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.hero-note strong {
  font-weight: 750;
}

.section,
.privacy-manifesto,
.kirana,
.contact,
.site-footer {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(72px, 9vw, 124px) 0;
}

.intro {
  max-width: 900px;
}

.privacy-manifesto {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  margin-top: calc(clamp(72px, 9vw, 124px) * -0.45);
  margin-bottom: clamp(34px, 6vw, 82px);
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(20, 33, 42, 0.14);
  border-left: 6px solid var(--ocean);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 107, 125, 0.09), rgba(216, 146, 61, 0.1)),
    #ffffff;
  box-shadow: var(--shadow);
}

.apps > .privacy-manifesto {
  width: 100%;
  margin: clamp(46px, 6vw, 72px) 0 clamp(34px, 6vw, 82px);
}

.privacy-manifesto h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1;
}

.privacy-manifesto-copy {
  display: grid;
  gap: 16px;
}

.privacy-manifesto-copy p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.privacy-manifesto-copy ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.privacy-manifesto-copy li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-weight: 750;
}

.privacy-manifesto-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
  transform: translateY(-50%);
}

.privacy-manifesto-copy .privacy-manifesto-principle {
  padding-top: 15px;
  border-top: 1px solid rgba(15, 107, 125, 0.18);
  color: var(--ocean);
  font-weight: 900;
}

.intro h2,
.section-heading h2,
.kirana h2,
.contact h2 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
}

.intro p,
.section-heading p,
.kirana p,
.contact p,
.studio-grid p {
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.7fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: 34px;
}

.flagship-app {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 0;
  margin-bottom: 18px;
  overflow: hidden;
  color: #ffffff;
  background: var(--deep);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.flagship-media {
  position: relative;
  min-height: 430px;
  isolation: isolate;
}

.flagship-bg {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.flagship-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 55, 70, 0.08), rgba(18, 55, 70, 0.72));
}

.flagship-icon-link {
  position: absolute;
  left: clamp(18px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 42px);
  z-index: 1;
  display: block;
  border-radius: 30px;
}

.flagship-icon {
  display: block;
  width: clamp(110px, 15vw, 170px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.app-icon-link {
  display: inline-flex;
  width: fit-content;
  line-height: 0;
}

.app-icon-link img,
.flagship-icon-link img {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-icon-link:hover img,
.flagship-icon-link:hover img {
  transform: translateY(-2px);
}

.app-icon-link:focus-visible,
.flagship-icon-link:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.flagship-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  padding: clamp(28px, 5vw, 58px);
}

.flagship-copy h3 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.flagship-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.feature-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  font-weight: 800;
}

.feature-pills.compact {
  margin-top: 18px;
}

.feature-pills.compact span {
  color: rgba(20, 33, 42, 0.74);
  border-color: rgba(20, 33, 42, 0.12);
  background: rgba(15, 107, 125, 0.08);
}

.app-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.app-page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(15, 107, 125, 0.18);
  border-radius: 8px;
  color: var(--ocean);
  background: rgba(15, 107, 125, 0.08);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.flagship-app .app-page-links a {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.released-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.app-store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  line-height: 0;
  text-decoration: none;
}

.app-store-badge-link img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 100%;
}

.released-actions .app-store-badge-link {
  justify-self: end;
}

.released-app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.released-app > .app-icon-link img {
  width: clamp(92px, 11vw, 132px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(20, 33, 42, 0.16);
}

.released-app h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.released-app p:not(.eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.pipeline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 44px 0 18px;
}

.pipeline-heading h3 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.project-card {
  min-width: 0;
  min-height: 100%;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card img {
  width: 72px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(20, 33, 42, 0.14);
}

.project-card span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--ocean);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 8px 0 0;
  font-size: 1.32rem;
  line-height: 1.1;
  overflow-wrap: break-word;
}

.project-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.48;
  overflow-wrap: break-word;
  hyphens: auto;
}

.testflight-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  margin: 18px 0;
  padding: clamp(24px, 4vw, 42px);
  color: #ffffff;
  background: linear-gradient(135deg, var(--deep), #1b5968);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.testflight-callout h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.testflight-callout p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

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

.testflight-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 850;
}

.studio-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.studio-grid h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.studio-grid article {
  padding: 24px;
  box-shadow: none;
}

.kirana {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(56px, 8vw, 92px) 0;
}

.kirana-copy {
  min-width: 0;
  padding: 10px 0;
}

.kirana h2 {
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  overflow-wrap: normal;
}

.kirana-gallery {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
}

.kirana-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.kirana-gallery img:first-child {
  grid-row: 1 / 3;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--ocean);
  font-weight: 850;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: start;
  padding: clamp(48px, 7vw, 82px);
  margin-bottom: 32px;
  color: #ffffff;
  background: var(--deep);
  border-radius: 8px;
}

.contact h2 {
  max-width: 780px;
}

.contact-copy p {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(8, 24, 31, 0.36);
  font: inherit;
  font-weight: 650;
}

.contact-form input,
.contact-form select {
  min-height: 46px;
  padding: 10px 12px;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
  padding: 12px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(216, 146, 61, 0.95);
  outline: 2px solid rgba(216, 146, 61, 0.22);
}

.contact-form option {
  color: var(--ink);
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer img {
  width: 146px;
  opacity: 0.86;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher button {
    flex: 1;
  }

  .hero {
    min-height: 100vh;
    padding-top: 146px;
  }

  .hero-note {
    position: static;
    margin-top: 24px;
    grid-template-columns: 1fr;
  }

  .section-heading,
  .privacy-manifesto,
  .flagship-app,
  .released-app,
  .testflight-callout,
  .contact,
  .kirana,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .released-app {
    align-items: start;
  }

  .released-app .button {
    width: fit-content;
  }

  .testflight-callout .button {
    width: fit-content;
  }

  .released-actions {
    justify-items: start;
  }

  .released-actions .app-store-badge-link {
    justify-self: start;
  }

  .pipeline-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .flagship-media,
  .flagship-bg,
  .flagship-copy {
    min-height: 320px;
  }

  .kirana-gallery {
    grid-template-rows: 260px 180px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 96px;
    padding-inline: 14px;
  }

  .site-nav {
    gap: 16px;
    font-size: 0.86rem;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .button {
    width: 100%;
  }

  .released-app .button {
    width: 100%;
  }

  .released-app {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .released-app > .app-icon-link {
    grid-column: 1;
    grid-row: 1;
    width: 72px;
    height: 72px;
    align-self: start;
  }

  .released-app > .app-icon-link img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .released-app > .app-icon-link + div {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .released-app h3 {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
    overflow-wrap: break-word;
  }

  .released-app p:not(.eyebrow) {
    font-size: 0.96rem;
  }

  .released-actions {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .released-actions .app-store-badge-link {
    width: auto;
  }

  .testflight-callout .button {
    width: 100%;
  }

  .released-actions,
  .app-page-links {
    width: 100%;
  }

  .app-page-links a {
    flex: 1;
    justify-content: center;
  }

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

  .kirana-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 220px);
  }

  .flagship-icon {
    width: 96px;
    border-radius: 22px;
  }

  .flagship-icon-link {
    left: 18px;
    bottom: 18px;
  }

  .flagship-copy {
    min-height: 0;
    padding-top: 32px;
  }

  .flagship-copy h3 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
    line-height: 1;
  }

  .kirana-gallery img:first-child {
    grid-row: auto;
  }

  .contact {
    padding: 32px 20px;
  }

  .contact-form {
    padding: 16px;
  }

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