:root {
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.08);
  --accent: #0071e3;
  --accent-2: #5e5ce6;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
  --radius: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(0, 113, 227, 0.07), transparent 26%),
    radial-gradient(circle at 88% 7%, rgba(94, 92, 230, 0.07), transparent 28%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 48%, #ffffff 100%);
  color: var(--text);
}

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

.site-shell { width: min(1180px, calc(100% - 34px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  margin: 16px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(10, 10, 10, 0.06);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.04em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: white; background: linear-gradient(135deg, #0f705e, #093a31); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-toggle {
  border: 1px solid var(--line); background: white; color: var(--text); border-radius: 999px;
  padding: 10px 13px; font-weight: 800; cursor: pointer;
}

.button {
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px;
  background: #111; color: white; padding: 14px 20px; font-weight: 800; letter-spacing: -0.02em;
  box-shadow: 0 16px 34px rgba(17,17,17,.16); transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(17,17,17,.2); }
.button.secondary { background: white; color: #111; border: 1px solid var(--line); box-shadow: none; }
.button-small { padding: 10px 14px; font-size: 14px; }

.section { padding: 72px 0; }
.hero { min-height: 720px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 50px; padding-top: 50px; }
.eyebrow { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; margin: 0 0 18px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.065em; line-height: .96; }
h1 { font-size: clamp(52px, 8vw, 98px); max-width: 780px; }
h2 { font-size: clamp(38px, 5vw, 66px); }
h3 { font-size: 24px; letter-spacing: -0.045em; }
p { color: var(--muted); line-height: 1.7; font-size: 17px; }
.hero-text { max-width: 620px; font-size: 21px; margin: 26px 0 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.browser-card {
  width: min(520px, 100%); border-radius: 34px; background: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(24px); transform: rotate(-2deg);
}
.browser-top { display: flex; gap: 7px; padding: 18px; border-bottom: 1px solid var(--line); }
.browser-top span { width: 11px; height: 11px; border-radius: 50%; background: #d8d4c8; }
.browser-content { padding: 34px; }
.mock-nav { width: 55%; height: 13px; border-radius: 10px; background: #e8e4d9; margin-bottom: 38px; }
.mock-title { width: 85%; height: 78px; border-radius: 24px; background: linear-gradient(135deg, #111, #22433a); margin-bottom: 22px; }
.mock-line { width: 66%; height: 13px; border-radius: 10px; background: #dedbd2; margin-bottom: 12px; }
.mock-line.wide { width: 90%; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.mock-grid div { height: 120px; border-radius: 24px; background: linear-gradient(180deg, #f0eee7, #d9d4c6); }
.floating-card { position: absolute; padding: 16px 18px; border-radius: 22px; background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 18px 48px rgba(10,10,10,.12); backdrop-filter: blur(20px); }
.floating-card strong { display: block; letter-spacing: -.03em; }
.floating-card span { color: var(--muted); font-size: 13px; font-weight: 700; }
.floating-card.one { top: 80px; left: 0; }
.floating-card.two { right: 0; bottom: 86px; }

.bilingual, .app-extra, .why-appcraft, .contact {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; padding: 52px;
  background: #101411; color: white; border-radius: var(--radius); box-shadow: var(--shadow);
}
.bilingual p, .app-extra p, .why-appcraft p, .contact p { color: rgba(255,255,255,.74); }
.bilingual .eyebrow, .app-extra .eyebrow, .why-appcraft .eyebrow, .contact .eyebrow { color: var(--accent-2); }

.section-heading { max-width: 720px; margin-bottom: 32px; }
.cards-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.service-card, .pricing-card, .work-card, .faq-list details {
  background: var(--panel); border: 1px solid rgba(255,255,255,.7); border-radius: 26px; padding: 24px; box-shadow: 0 16px 46px rgba(16,24,20,.07);
}
.service-card span { color: var(--accent); font-size: 13px; font-weight: 900; }
.service-card p, .work-card p { font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips span { padding: 12px 16px; background: white; border: 1px solid var(--line); border-radius: 999px; font-weight: 800; color: #222; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.pricing-card { position: relative; padding: 30px; background: rgba(255,255,255,.78); }
.pricing-card.featured { background: #111; color: white; transform: translateY(-12px); }
.pricing-card.featured p, .pricing-card.featured li { color: rgba(255,255,255,.72); }
.badge { position: absolute; top: 18px; right: 18px; color: #111; background: var(--accent-2); padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; }
ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
li { color: var(--muted); line-height: 1.5; }
li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 9px; }
.featured li::before { color: var(--accent-2); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-card div { height: 180px; border-radius: 24px; background: linear-gradient(135deg, rgba(14,111,92,.18), rgba(212,179,109,.22)), #e8e4d9; margin-bottom: 22px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps div { background: white; border-radius: 22px; padding: 22px; border: 1px solid var(--line); display: grid; gap: 12px; }
.steps strong { color: var(--accent); }
.steps span { font-weight: 800; letter-spacing: -.03em; }
.why-appcraft { display: block; }
.why-appcraft h2 { max-width: 850px; }
.why-appcraft p { max-width: 780px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: white; }
summary { cursor: pointer; font-weight: 900; letter-spacing: -.03em; font-size: 18px; }
summary::marker { color: var(--accent); }
.contact { text-align: center; display: block; }
.contact h2 { max-width: 780px; margin: 0 auto; }
.contact p { max-width: 640px; margin: 22px auto 0; }
.contact-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 34px 0 48px; color: var(--muted); font-weight: 700; border-top: 1px solid var(--line); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .14s; }

@media (max-width: 980px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid, .work-grid, .steps { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .bilingual, .app-extra { grid-template-columns: 1fr; padding: 34px; }
}

@media (max-width: 640px) {
  .site-shell { width: min(100% - 22px, 1180px); }
  .topbar { border-radius: 24px; align-items: flex-start; }
  .brand span:last-child { font-size: 16px; }
  .header-actions { gap: 6px; }
  .button-small { display: none; }
  .section { padding: 48px 0; }
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  .hero-text { font-size: 18px; }
  .hero-visual { min-height: 390px; }
  .floating-card.one { top: 20px; }
  .floating-card.two { bottom: 22px; }
  .cards-grid { grid-template-columns: 1fr; }
  .bilingual, .app-extra, .why-appcraft, .contact { padding: 28px; border-radius: 24px; }
  .footer { flex-direction: column; }
}


/* New Apple-like hero visual — clean panels, no tilted browser mockup */
.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.apple-hero-card {
  width: min(560px, 100%);
  min-height: 460px;
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  padding: 34px;
  background:
    radial-gradient(circle at 22% 12%, rgba(0,113,227,.14), transparent 32%),
    radial-gradient(circle at 86% 88%, rgba(94,92,230,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,247,251,.92));
  border: 1px solid rgba(255,255,255,.96);
  box-shadow:
    0 34px 90px rgba(15,23,42,.12),
    inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

.apple-hero-copy {
  max-width: 390px;
  position: relative;
  z-index: 2;
}

.apple-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,113,227,.10);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.apple-hero-copy h3 {
  margin-top: 18px;
  font-size: 44px;
  line-height: .96;
  letter-spacing: -.07em;
}

.apple-hero-copy p {
  margin: 18px 0 0;
  max-width: 360px;
}

.apple-panels {
  position: absolute;
  inset: auto 24px 24px 24px;
  height: 220px;
}

.panel-main {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 68%;
  height: 190px;
  border-radius: 34px;
  padding: 26px;
  background: linear-gradient(135deg, #1d1d1f 0%, #123b64 54%, #0a84ff 100%);
  box-shadow: 0 26px 56px rgba(0,113,227,.22);
}

.panel-topline,
.panel-title,
.panel-row {
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.panel-topline {
  width: 42%;
  height: 10px;
  opacity: .55;
}

.panel-title {
  width: 78%;
  height: 34px;
  margin-top: 28px;
  opacity: .95;
}

.panel-row {
  width: 88%;
  height: 10px;
  margin-top: 24px;
  opacity: .46;
}

.panel-row.short {
  width: 58%;
  margin-top: 11px;
}

.panel-side {
  position: absolute;
  right: 0;
  top: 14px;
  width: 42%;
  min-height: 92px;
  border-radius: 28px;
  padding: 18px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.96);
  box-shadow: 0 22px 44px rgba(15,23,42,.10);
}

.panel-side.light {
  top: auto;
  bottom: 8px;
  background: rgba(245,247,255,.9);
}

.panel-side span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.panel-side strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -.055em;
}

.brand-mark {
  background: linear-gradient(135deg, #0a84ff, #2f6bff) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 10px 24px rgba(0,113,227,.22) !important;
}

.button:not(.secondary) {
  background: var(--accent);
  box-shadow: 0 18px 34px rgba(0,113,227,.22);
}

.button:not(.secondary):hover {
  background: #0077ed;
  box-shadow: 0 24px 42px rgba(0,113,227,.28);
}

.pricing-card.featured {
  background: linear-gradient(180deg, #0a84ff 0%, #0066cc 100%) !important;
  box-shadow: 0 22px 54px rgba(0,113,227,.26);
}

.badge {
  background: white !important;
  color: var(--accent) !important;
}

.bilingual, .app-extra {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,248,255,.94)) !important;
  color: var(--text) !important;
}

.bilingual p, .app-extra p {
  color: var(--muted) !important;
}

.bilingual .eyebrow, .app-extra .eyebrow {
  color: var(--accent) !important;
}

.work-card div {
  background: linear-gradient(135deg, rgba(0,113,227,.14), rgba(94,92,230,.12)), #eef3ff !important;
}

@media (max-width: 640px) {
  .hero-visual { min-height: auto; }
  .apple-hero-card {
    min-height: 540px;
    padding: 26px;
    border-radius: 32px;
  }
  .apple-hero-copy h3 { font-size: 36px; }
  .apple-panels {
    height: 260px;
    inset: auto 18px 18px 18px;
  }
  .panel-main {
    width: 100%;
    height: 170px;
  }
  .panel-side {
    width: 54%;
    top: auto;
    bottom: 126px;
  }
  .panel-side.light {
    bottom: 18px;
    right: 14px;
  }
}


/* Final hero replacement: AppCraft logo image instead of mockup graphic */
.hero-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.logo-hero-card {
  width: min(560px, 100%);
  border-radius: 42px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.logo-hero-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}

@media (max-width: 640px) {
  .hero-visual {
    min-height: auto;
  }

  .logo-hero-card {
    padding: 12px;
    border-radius: 28px;
  }

  .logo-hero-card img {
    border-radius: 20px;
  }
}


/* Final content tweaks */
.pricing-card p {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
}

.pricing-card.featured p {
  color: white;
}

.app-extra .hero-actions {
  margin-top: 24px;
}

.app-extra .button.secondary {
  background: #ffffff;
  color: #1d1d1f;
}


/* Updated projects section: two owned projects */
.work-grid {
  grid-template-columns: repeat(2, 1fr);
}

.work-card {
  display: block;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(15,23,42,.10);
}

@media (max-width: 760px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}


/* Project preview images */
.work-grid {
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  display: block;
  color: inherit;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.work-card .project-preview {
  height: 245px;
  border-radius: 24px;
  margin-bottom: 22px;
  overflow: hidden;
  background: #f5f5f7;
}

.work-card .project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* override old placeholder gradient inside work cards */
.work-card > div.project-preview {
  background: #f5f5f7 !important;
}

@media (max-width: 760px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card .project-preview {
    height: 210px;
  }
}


/* Real screenshots for the two project cards */
.work-grid {
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  display: block;
  color: inherit;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.work-card .project-preview {
  height: 245px;
  border-radius: 24px;
  margin-bottom: 22px;
  overflow: hidden;
  background: #f5f5f7 !important;
}

.work-card .project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 760px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card .project-preview {
    height: 210px;
  }
}


/* Phone contact button */
.phone-button {
  white-space: nowrap;
}
