/* =========================================================
   HAWATEFTEC — design tokens
   ========================================================= */
:root{
  --bg: #0B0E14;
  --surface: #131826;
  --surface-2: #1B2233;
  --border: #262E42;
  --text: #ECEFF4;
  --text-muted: #8B94A8;
  --amber: #FF9F1C;
  --teal: #2DD4BF;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
  --max-w: 1120px;
  --transition: 220ms ease;
}

[data-theme="light"]{
  --bg: #F7F7FA;
  --surface: #FFFFFF;
  --surface-2: #F0F1F5;
  --border: #E3E5EC;
  --text: #14161F;
  --text-muted: #5E6478;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.65;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

img,svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }

.skip-link{
  position:absolute;
  inset-inline-start:-999px;
  top:0;
  background: var(--amber);
  color:#0B0E14;
  padding:.6em 1em;
  z-index:200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ inset-inline-start:0; }

:focus-visible{ outline: 2px solid var(--amber); outline-offset: 3px; }

.section-inner{ max-width: var(--max-w); margin-inline:auto; padding-inline: 24px; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index:100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--border);
}
.header-inner{
  max-width: var(--max-w); margin-inline:auto; padding: 14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ color: var(--amber); display:flex; }
.brand-name{ font-weight:800; letter-spacing:.03em; font-size:1.05rem; }

.header-controls{ display:flex; align-items:center; gap:10px; }

.lang-switch{
  display:flex; border:1px solid var(--border); border-radius:999px; padding:3px; gap:2px;
  background: var(--surface);
}
.lang-btn{
  border:none; background:transparent; color:var(--text-muted);
  font-family: var(--font-mono); font-size:.75rem; font-weight:700; letter-spacing:.04em;
  padding:6px 12px; border-radius:999px; cursor:pointer; transition: var(--transition);
}
.lang-btn[aria-pressed="true"]{ background: var(--amber); color:#0B0E14; }

.theme-toggle{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--border);
  background: var(--surface); color:var(--text); display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition: var(--transition);
}
.theme-toggle:hover{ border-color: var(--amber); color: var(--amber); }
.icon-sun{ display:none; }
[data-theme="light"] .icon-sun{ display:block; }
[data-theme="light"] .icon-moon{ display:none; }

/* =========================================================
   Hero
   ========================================================= */
.hero{ padding: 96px 0 64px; position:relative; overflow:hidden; }
.hero-inner{ max-width: var(--max-w); margin-inline:auto; padding-inline:24px; text-align:center; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size:.8rem; letter-spacing:.08em;
  color: var(--amber); text-transform: uppercase;
  border:1px solid var(--border); background: var(--surface);
  padding:7px 14px; border-radius:999px; margin:0 0 24px;
}
.led{
  width:7px; height:7px; border-radius:50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255,159,28,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(255,159,28,.5); }
  70%{ box-shadow: 0 0 0 8px rgba(255,159,28,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,159,28,0); }
}

.hero-title{
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800; letter-spacing:-.02em; margin: 0 0 18px;
  font-family: var(--font-mono);
}
.hero-subtitle{
  max-width: 640px; margin: 0 auto 36px; color: var(--text-muted); font-size:1.08rem;
}

.signal-wave{
  width:100%; max-width:560px; height:44px; margin: 0 auto 40px; color: var(--amber);
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw 2.4s ease forwards .3s;
}
@keyframes draw{ to{ stroke-dashoffset:0; } }

.hero-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  padding: 13px 24px; border-radius: 999px; font-weight:700; font-size:.95rem;
  cursor:pointer; border:1px solid transparent; transition: var(--transition);
}
.btn-primary{ background: var(--amber); color:#0B0E14; }
.btn-primary:hover{ filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost{ background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover{ border-color: var(--amber); color: var(--amber); }

/* =========================================================
   Section headings
   ========================================================= */
.section-eyebrow{
  font-family: var(--font-mono); font-size:.78rem; letter-spacing:.1em; text-transform:uppercase;
  color: var(--text-muted); margin:0 0 10px;
}
.section-title{ font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight:800; margin:0 0 12px; letter-spacing:-.01em; }
.section-subtitle{ color: var(--text-muted); max-width:560px; margin:0 0 40px; font-size:1.02rem; }

.apps, .about, .contact{ padding: 72px 0; }
.apps{ border-block-start:1px solid var(--border); }
.about{ background: var(--surface); border-block:1px solid var(--border); }

/* =========================================================
   App cards
   ========================================================= */
.app-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap:24px; }

.app-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position:relative; overflow:hidden;
  border-block-start: 3px solid var(--accent);
  transition: transform var(--transition), border-color var(--transition);
}
.app-card:hover{ transform: translateY(-4px); }

.app-card-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.app-icon{
  width:44px; height:44px; border-radius: 12px; display:flex; align-items:center; justify-content:center;
  background: var(--accent-soft); color: var(--accent);
}
.app-status{
  display:inline-flex; align-items:center; gap:6px; font-family: var(--font-mono);
  font-size:.7rem; letter-spacing:.05em; color: var(--text-muted); text-transform:uppercase;
}
.app-status .led{ background: var(--accent); box-shadow:none; }

.app-name{ font-size:1.35rem; font-weight:800; margin:0 0 4px; }
.app-package{
  display:inline-block; font-family: var(--font-mono); font-size:.72rem; color: var(--accent);
  background: var(--accent-soft); padding:3px 9px; border-radius:6px; margin-bottom:16px;
  direction: ltr; unicode-bidi: isolate;
}
.app-desc{ color: var(--text-muted); margin: 0 0 20px; font-size:.96rem; }

.app-features{ list-style:none; padding:0; margin:0 0 24px; display:flex; flex-wrap:wrap; gap:8px; }
.app-features li{
  font-size:.78rem; font-weight:600; color: var(--text); background: var(--surface-2);
  border:1px solid var(--border); padding:6px 12px; border-radius:999px;
}

.app-actions{ display:flex; flex-wrap:wrap; gap:10px; }
.btn-store{ background: var(--accent); color:#0B0E14; }
.btn-store:hover{ filter:brightness(1.08); }
.btn-outline{ background:transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover{ border-color: var(--accent); color: var(--accent); }

/* =========================================================
   About
   ========================================================= */
.about-grid{ display:grid; grid-template-columns: 1.3fr 1fr; gap:40px; align-items:start; }
.about-bio{ color: var(--text-muted); font-size:1.02rem; max-width:560px; }
.about-badges{ display:flex; flex-direction:column; gap:12px; }
.badge{
  font-family: var(--font-mono); font-size:.82rem; font-weight:600;
  border:1px solid var(--border); background: var(--bg); padding:12px 16px; border-radius: var(--radius-sm);
}

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

/* =========================================================
   Contact
   ========================================================= */
.contact-inner{ text-align:center; display:flex; flex-direction:column; align-items:center; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ border-block-start:1px solid var(--border); padding: 40px 24px 24px; }
.footer-inner{
  max-width: var(--max-w); margin-inline:auto; display:flex; flex-wrap:wrap;
  justify-content:space-between; gap:20px; margin-bottom:24px;
}
.footer-tagline{ color: var(--text-muted); font-size:.9rem; margin:6px 0 0; }
.footer-links{ display:flex; gap:20px; flex-wrap:wrap; align-items:center; font-size:.9rem; }
.footer-links a:hover{ color: var(--amber); }
.footer-rights{
  text-align:center; color: var(--text-muted); font-size:.78rem; font-family: var(--font-mono);
  margin:0; max-width: var(--max-w); margin-inline:auto;
}

/* =========================================================
   Privacy page
   ========================================================= */
.policy{ max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.policy h1{ font-size: clamp(1.8rem,4vw,2.4rem); margin-bottom:8px; }
.policy .updated{ color: var(--text-muted); font-family: var(--font-mono); font-size:.82rem; margin-bottom:36px; }
.policy h2{ font-size:1.25rem; margin-top:36px; margin-bottom:10px; }
.policy p, .policy li{ color: var(--text-muted); font-size:.98rem; }
.policy ul{ padding-inline-start: 20px; }
.policy .app-links{ display:flex; flex-direction:column; gap:10px; margin: 14px 0; }
.policy .app-links a{
  border:1px solid var(--border); border-radius: var(--radius-sm); padding:12px 16px;
  display:flex; justify-content:space-between; align-items:center; font-weight:600; background: var(--surface);
}
.policy .app-links a:hover{ border-color: var(--amber); color: var(--amber); }
.policy .back-link{ display:inline-block; margin-bottom:28px; color: var(--amber); font-weight:600; }
