/* ================================================
   AXIOAPPS — Stylesheet
   Clean, modern, Apple-inspired design
   ================================================ */

/* --- Custom Properties --- */
:root {
  --white:         #ffffff;
  --bg:            #ffffff;
  --bg-alt:        #f5f5f7;
  --bg-alt2:       #e8e8ed;
  --text:          #1d1d1f;
  --text-2:        #6e6e73;
  --text-3:        #86868b;
  --accent:        #0071e3;
  --accent-dark:   #0064cc;
  --border:        rgba(0, 0, 0, 0.08);
  --border-light:  rgba(0, 0, 0, 0.04);
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:     0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg:     0 12px 48px rgba(0, 0, 0, 0.14);
  --r-sm:          10px;
  --r-md:          18px;
  --r-lg:          28px;
  --font:          -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:         64px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
ul { list-style: none; }
a  { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* --- Container --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 980px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover  { background: var(--accent-dark); transform: scale(1.02); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost   { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: rgba(0,113,227,.08); }
.btn-large   { padding: 14px 28px; font-size: 17px; }
.btn-full    { width: 100%; }

/* ================================================
   SECTION TYPOGRAPHY
   ================================================ */
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 580px;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-subtitle { margin: 0 auto; }

/* ================================================
   NAV
   ================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-logo { flex-shrink: 0; }
.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text);
}
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu ul { margin-bottom: 16px; }
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--bg-alt); }

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-content { flex: 1; max-width: 540px; }

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0,113,227,.08);
  border: 1px solid rgba(0,113,227,.18);
  border-radius: 980px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--text);
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, #0071e3 0%, #5ac8fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero Visual — CSS phone mockup */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 480px;
}
.hero-device {
  width: 248px;
  height: 500px;
  background: #1d1d1f;
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 40px 80px rgba(0,0,0,0.18);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.device-screen {
  width: 100%;
  height: 100%;
  background: #f5f5f7;
  border-radius: 36px;
  overflow: hidden;
}
.device-app { display: flex; flex-direction: column; height: 100%; }
.app-header {
  height: 56px;
  background: linear-gradient(135deg, #0071e3, #5ac8fa);
  flex-shrink: 0;
}
.app-content { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.app-row { display: flex; align-items: center; gap: 10px; }
.app-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071e3, #5ac8fa);
  flex-shrink: 0;
}
.app-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.app-line { height: 8px; border-radius: 4px; background: #d1d1d6; }
.app-line-lg { width: 70%; }
.app-line-sm { width: 45%; }
.app-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.app-card-feature { height: 90px; }
.app-card-sm { height: 52px; }

/* Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}
.hero-orb-1 { width: 320px; height: 320px; background: radial-gradient(circle, #0071e3, transparent 70%); top: -40px; right: -40px; }
.hero-orb-2 { width: 220px; height: 220px; background: radial-gradient(circle, #5ac8fa, transparent 70%); bottom: 40px; left: -20px; }

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

/* ================================================
   PILLARS
   ================================================ */
.pillars {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.pillar {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
}
.pillar:last-child { border-right: none; }
.pillar-icon {
  width: 40px;
  height: 40px;
  background: rgba(0,113,227,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.pillar-icon svg { width: 20px; height: 20px; color: var(--accent); }
.pillar strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}
.pillar p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ================================================
   SERVICES
   ================================================ */
.services { padding: 120px 0; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.service-card {
  background: var(--bg-alt);
  border-radius: var(--r-md);
  padding: 40px;
  border: 1px solid var(--border-light);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-icon svg { width: 26px; height: 26px; color: #fff; }
.service-icon-ios        { background: linear-gradient(135deg, #007AFF, #5AC8FA); }
.service-icon-android    { background: linear-gradient(135deg, #34C759, #30D158); }
.service-icon-web        { background: linear-gradient(135deg, #AF52DE, #BF5AF2); }
.service-icon-enterprise { background: linear-gradient(135deg, #FF9500, #FF6B00); }

.service-title { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 12px; }
.service-desc  { font-size: 15px; color: var(--text-2); line-height: 1.65; margin-bottom: 20px; }
.service-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(0,0,0,.05);
  padding: 4px 10px;
  border-radius: 980px;
}

/* ================================================
   WORK
   ================================================ */
.work { background: var(--bg-alt); padding: 120px 0; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.work-card {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  min-height: 260px;
  cursor: pointer;
  transition: transform 0.35s var(--ease);
}
.work-card:hover { transform: scale(1.025); }
.work-card-featured { grid-row: span 2; min-height: 540px; }

.work-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-card-bg { transform: scale(1.06); }
.work-bg-1 { background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 50%, #34C759 100%); }
.work-bg-2 { background: linear-gradient(135deg, #AF52DE 0%, #FF2D55 60%, #FF9500 100%); }
.work-bg-3 { background: linear-gradient(135deg, #1d1d1f 0%, #434343 60%, #6e6e73 100%); }

.work-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  color: #fff;
}
.work-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 980px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.work-card-content h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 8px; }
.work-card-content p  { font-size: 14px; opacity: .82; line-height: 1.5; }

.work-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px;
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.work-cta-row p { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; }

/* ================================================
   PROCESS
   ================================================ */
.process { padding: 120px 0; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: var(--border);
}
.process-step { padding: 0 24px; text-align: center; position: relative; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.process-step h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.process-step p  { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ================================================
   ABOUT
   ================================================ */
.about { background: var(--bg-alt); padding: 120px 0; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.about-text { font-size: 16px; color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }
.about-text em { color: var(--text); font-style: normal; font-weight: 500; }

.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}
.about-card:hover { transform: translateY(-4px); }
.about-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(0,113,227,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.about-card-icon svg { width: 18px; height: 18px; color: var(--accent); }
.about-card strong { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.about-card p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ================================================
   CONTACT
   ================================================ */
.contact { padding: 120px 0; }
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact-header { margin-bottom: 48px; }
.contact-title {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.contact-subtitle { font-size: 18px; color: var(--text-2); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236e6e73' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 44px;
  cursor: pointer;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(52,199,89,.1);
  border: 1px solid rgba(52,199,89,.3);
  border-radius: var(--r-sm);
  color: #1a7d33;
  font-size: 15px;
  font-weight: 500;
}
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-success.show { display: flex; }

.contact-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-2); }
.contact-alt a { color: var(--accent); }
.contact-alt a:hover { text-decoration: underline; }

/* ================================================
   FOOTER
   ================================================ */
.footer { background: #1d1d1f; color: rgba(255,255,255,.75); padding: 64px 0 32px; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 32px;
}
.footer .logo-text { color: #fff; }
.footer-brand > p { font-size: 14px; color: rgba(255,255,255,.45); margin-top: 8px; line-height: 1.55; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,.16); color: #fff; }
.footer-social svg { width: 15px; height: 15px; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a,
.footer-col ul li span { font-size: 14px; color: rgba(255,255,255,.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.35); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,.35); transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.75); }

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero {
    flex-direction: column;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 40px);
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-subtitle { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: auto; }
  .hero-device { width: 200px; height: 400px; border-radius: 36px; }

  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-right: none; border-bottom: 1px solid var(--border); }
  .pillar:nth-child(odd) { border-right: 1px solid var(--border); }
  .pillar:last-child { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }

  .work-grid { grid-template-columns: 1fr; }
  .work-card-featured { min-height: 320px; }

  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::before { display: none; }

  .about-inner { grid-template-columns: 1fr; gap: 48px; }

  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--border); }
  .pillar:nth-child(odd) { border-right: none; }
  .pillar:last-child { border-bottom: none; }
  .services, .work, .process, .about, .contact { padding: 80px 0; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: 1fr; }
  .work-cta-row { flex-direction: column; text-align: center; }
}
