:root{
  --bg:#0b0f17;
  --panel:#0f1420;
  --text:#e8eefc;
  --muted:#a7b1c6;
  --line:#1a2333;
  --accent:#6aa7ff;
  --accent2:#3e78ff;
  --radius:18px;
  --shadow:0 12px 36px rgba(0,0,0,.35);
}
*{ box-sizing:border-box; }
html{ block-size:100%; }
body{
  margin:0;
  min-height:100svh;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 18px 32px;
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(110,150,255,.18), transparent 60%),
    radial-gradient(1200px 800px at 110% 10%, rgba(110,200,255,.12), transparent 60%),
    var(--bg);
  color:var(--text);
  font:16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  display:flex;
  justify-content:center;
  align-items:flex-start;
}
.page{
  width:min(960px, 100%);
}

/* Header + nav */
.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
  padding:4px 4px 10px;
}
.logo-text{
  display:flex;
  align-items:center;
  gap:10px;
}
.logo-img{
  width:36px;
  height:36px;
  border-radius:10px;
  object-fit:contain;
  box-shadow:0 4px 14px rgba(80,130,255,.35);
}
.logo{
  font-weight:600;
  letter-spacing:0.03em;
  font-size:15px;
  text-transform:uppercase;
  color:var(--muted);
  text-decoration:none;
}
.logo:hover{
  text-decoration:none;
  color:var(--accent);
}
.main-nav{
  display:flex;
  gap:16px;
  font-size:14px;
}
.main-nav a{
  color:var(--muted);
  text-decoration:none;
  padding:4px 0;
  border-bottom:2px solid transparent;
}
.main-nav a:hover{
  color:var(--accent);
  border-bottom-color:var(--accent2);
}
@media (max-width:600px){
  .site-header{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
  .main-nav{
    gap:12px;
    flex-wrap:wrap;
  }
}

.card{
  width:100%;
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)) , var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:32px 22px 26px;
}
@media (min-width:720px){
  .card{ padding:40px 30px 30px; }
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:13px;
  color:var(--muted);
  margin-bottom:14px;
}
h1{
  font-size:clamp(28px, 4vw, 34px);
  margin:0 0 8px 0;
}
p{ margin:0 0 10px 0; color:var(--muted); }

.hero-row{
  display:grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap:20px;
  margin-top:14px;
  margin-bottom:20px;
}
@media (max-width:720px){
  .hero-row{
    grid-template-columns: minmax(0, 1fr);
  }
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
  margin-bottom:4px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 16px;
  border-radius:999px;
  border:none;
  font-size:14px;
  cursor:pointer;
  text-decoration:none;
  font-weight:500;
  transition:transform .05s ease, opacity .2s ease;
}
.btn-primary{
  background:linear-gradient(135deg, var(--accent2), var(--accent));
  color:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.4);
}
.btn-ghost{
  background:transparent;
  color:var(--accent);
  border:1px solid var(--line);
}
.btn-secondary{
  background:rgba(0,0,0,.12);
  color:var(--text);
  border:1px solid var(--line);
}
.btn:hover{ transform:translateY(-1px); }

.tagline{
  font-size:14px;
  color:var(--muted);
  margin-top:4px;
}

.apps-section{
  border-top:1px dashed var(--line);
  margin-top:24px;
  padding-top:18px;
}
.apps-grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr);
  gap:14px;
  margin-top:10px;
}
@media (min-width:720px){
  .apps-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.app-card{
  border-radius:14px;
  border:1px solid var(--line);
  padding:12px 14px 12px;
  background:rgba(0,0,0,.18);
}
.app-card h2,
.app-card h3{
  margin:0 0 4px;
  font-size:16px;
}
.app-chip{
  display:inline-block;
  font-size:11px;
  padding:3px 7px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  margin-bottom:6px;
}
.app-meta{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}
.app-icon{
  width:48px;
  height:48px;
  border-radius:12px;
  object-fit:contain;
  margin-bottom:8px;
  box-shadow:0 4px 14px rgba(80,130,255,.35);
}
.app-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.footer{
  border-top:1px dashed var(--line);
  margin-top:26px;
  padding-top:14px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}
.footer a{
  color:var(--accent);
  text-decoration:none;
  border-bottom:1px dashed transparent;
}
.footer a:hover{
  border-bottom-color:var(--accent);
}

a:focus, button:focus{
  outline:2px solid var(--accent);
  outline-offset:2px;
  border-radius:10px;
}

/* Contact form */
.contact-form{
  margin-top:22px;
  display:flex;
  flex-direction:column;
  gap:16px;
  max-width:520px;
  margin-left:auto;
  margin-right:auto;
}

/* Name + Email row */
.form-row-two{
  display:flex;
  flex-direction:column;
  gap:16px;
}
@media (min-width:640px){
  .form-row-two{
    flex-direction:row;
  }
  .form-group{
    flex:1;
  }
}

/* Labels */
.form-group label{
  display:block;
  font-size:14px;
  font-weight:500;
  letter-spacing:0.01em;
  margin-bottom:4px;
  color:var(--text);
}

/* Inputs + textarea */
.contact-form input,
.contact-form textarea{
  width:100%;
  display:block;
  padding:9px 11px;
  border-radius:10px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.55);
  color:var(--text);
  font:inherit;
  margin-left:auto;
  margin-right:auto;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:rgba(167,177,198,.7);
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 1px rgba(106,167,255,.45);
}

/* Submit row */
.form-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:8px;
  width:100%;
}
.form-help{
  font-size:13px;
  color:var(--muted);
}
.form-status{
  margin-top:10px;
  font-size:14px;
  color:var(--accent);
}
.form-status-error{
  color:#ff6b7a;
}

/* Ensure app card headings align horizontally */
.app-card .app-icon {
  margin-bottom: 16px !important; /* consistent spacing below icons */
}

.app-card h2 {
  margin-top: 0 !important; /* align headings vertically */
}