:root{
  --bg:#0a0a0a;
  --bg-soft:#111111;
  --bg-card:#161616;
  --bg-card-2:#1d1d1d;
  --border:#2a2a2a;
  --border-light:#3a3a3a;
  --text:#f3f3f3;
  --text-soft:#a1a1a1;
  --text-muted:#7a7a7a;
  --accent:#d6d6d6;
  --accent-hover:#ffffff;
  --shadow:0 18px 60px rgba(0,0,0,0.45);
  --radius-lg:22px;
  --radius-md:18px;
  --radius-sm:14px;
  --transition:0.25s ease;
  --focus-ring:0 0 0 3px rgba(88,164,255,0.14);
}

*,
*::before,
*::after{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  touch-action:manipulation;
  -webkit-text-size-adjust:100%;
}

body{
  min-height:100vh;
  overflow-x:hidden;
  touch-action:manipulation;
  background:radial-gradient(circle at top, #1a1a1a 0%, #0d0d0d 35%, #080808 100%);
  color:var(--text);
  font-family:Arial, Helvetica, sans-serif;
  line-height:1.5;
}

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

button,
input,
textarea,
select{
  font:inherit;
}

a{
  color:inherit;
}

/* HEADER */

header{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:24px 60px;
  background:rgba(10,10,10,0.82);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.06);
}

.logo{
  color:var(--text);
  text-decoration:none;
  font-size:23px;
  font-weight:500;
  letter-spacing:0.3px;
  white-space:nowrap;
}

.logo span{
  color:var(--text-soft);
}

nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:10px;
  color:var(--text-soft);
  text-decoration:none;
  font-size:15px;
  transition:background var(--transition), color var(--transition), transform var(--transition);
}

nav a:hover{
  color:var(--text);
  background:rgba(255,255,255,0.04);
}

nav a:active{
  transform:translateY(1px);
}

.menu-links{
  display:contents;
}

.menu-toggle{
  display:none;
  border:none;
  background:none;
  color:var(--text);
  font-size:26px;
  cursor:pointer;
}

.menu-close{
  display:none;
  border:none;
  background:none;
  color:var(--text);
  cursor:pointer;
}

/* HERO */

.hero{
  max-width:1200px;
  margin:0 auto;
  padding:110px 20px 80px;
  text-align:center;
}

.hero h1{
  margin-bottom:20px;
  font-size:58px;
  font-weight:500;
  line-height:1.1;
  letter-spacing:-1.3px;
}

.hero h1 span{
  color:#8f8f8f;
}

.hero p{
  max-width:760px;
  margin:0 auto 38px;
  color:var(--text-soft);
  font-size:18px;
  line-height:1.7;
}

/* DOWNLOAD BOX */

.download-wrapper{
  max-width:860px;
  margin:0 auto;
  padding:18px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius-lg);
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  box-shadow:var(--shadow);
}

.download-box{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--bg-soft);
}

.download-box input{
  flex:1;
  min-width:0;
  padding:20px 18px;
  border:1px solid transparent;
  border-radius:var(--radius-sm);
  background:#0d0d0d;
  color:var(--text);
  font-size:16px;
  outline:none;
  transition:border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.download-box input::placeholder{
  color:var(--text-soft);
  opacity:1;
}

.download-box input:focus{
  border-color:rgba(88,164,255,0.65);
  box-shadow:var(--focus-ring);
}

.download-box button{
  padding:20px 34px;
  border:1px solid #d0d0d0;
  border-radius:var(--radius-sm);
  background:#ffffff;
  color:#000000;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transition:transform 0.15s ease, filter 0.2s ease, opacity 0.2s ease;
}

.download-box button:hover{
  filter:brightness(0.96);
}

.download-box button:active{
  transform:translateY(1px);
}

.download-box button:disabled{
  opacity:0.7;
  cursor:not-allowed;
  transform:none;
}

/* RESULT */

#resultBox{
  display:none;
  margin-top:14px;
  padding:14px 16px;
  border-radius:14px;
  background:#101010;
  border:1px solid rgba(255,255,255,0.06);
  color:var(--text-soft);
  text-align:left;
  word-break:break-word;
  overflow-wrap:anywhere;
}

/* FEATURES */

.features{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
  max-width:1200px;
  margin:0 auto;
  padding:40px 20px 90px;
}

.card{
  padding:34px 28px;
  border:1px solid rgba(255,255,255,0.06);
  border-radius:20px;
  background:linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
}

.card-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  margin:0 auto 18px;
  border:1px solid #343434;
  border-radius:14px;
  background:#202020;
  font-size:22px;
}

.card h3{
  margin-bottom:12px;
  font-size:20px;
  text-align:center;
}

.card p{
  color:var(--text-soft);
  font-size:15px;
  line-height:1.7;
  text-align:center;
}

footer{
  padding:32px 20px 40px;
  border-top:1px solid rgba(255,255,255,0.06);
  color:var(--text-muted);
  font-size:14px;
  text-align:center;
}

/* ACCESSIBILITY */

.menu-toggle:focus-visible,
.menu-close:focus-visible,
nav a:focus-visible,
.logo:focus-visible,
.download-box input:focus-visible,
.download-box button:focus-visible{
  outline:2px solid rgba(88,164,255,0.9);
  outline-offset:2px;
}

/* MOBILE */

@media (max-width:768px){
  header{
    position:sticky;
    top:0;
    z-index:1000;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:68px;
    padding:18px 16px;
  }

  .menu-toggle{
    position:absolute;
    top:14px;
    left:14px;
    z-index:1002;
    display:block;
  }

  .logo{
    font-size:20px;
    text-align:center;
  }

  .menu-links{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    width:100%;
    margin-top:48px;
    overflow-y:auto;
    overflow-x:hidden;
  }

  nav{
    position:fixed;
    top:0;
    left:0;
    z-index:1001;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    width:100%;
    height:100vh;
    height:100dvh;
    padding:18px 16px 24px;
    background:rgba(10,10,10,0.98);
    overflow:hidden;
    transform:translateY(-100%);
    transition:transform 0.25s ease;
  }

  nav.active{
    transform:translateY(0);
  }

  nav a{
    display:block;
    width:100%;
    padding:16px 0;
    border-bottom:1px solid #222;
    border-radius:0;
    background:none;
    color:var(--text);
    text-align:left;
    text-decoration:none;
    font-size:20px;
    line-height:1.3;
    white-space:normal;
  }

  nav a:last-child{
    border-bottom:none;
  }

  .menu-close{
    position:absolute;
    top:14px;
    right:16px;
    display:block;
    width:40px;
    height:40px;
    font-size:30px;
    line-height:1;
  }

  .hero{
    padding:72px 16px 44px;
  }

  .hero h1{
    margin-bottom:16px;
    font-size:34px;
    line-height:1.2;
  }

  .hero p{
    margin:0 auto 18px;
    font-size:16px;
    line-height:1.6;
  }

  .download-wrapper{
    max-width:100%;
    padding:8px;
    border-radius:14px;
  }

  .download-box{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:8px;
  }

  .download-box input{
    width:100%;
    padding:14px 12px;
    border-radius:10px;
    font-size:15px;
  }

  .download-box button{
    width:100%;
    padding:12px 14px;
    border-radius:10px;
    font-size:15px;
  }

  .features{
    grid-template-columns:1fr;
    gap:16px;
    padding:24px 16px 56px;
  }

  .card{
    padding:22px 18px;
    border-radius:16px;
  }

  .card h3{
    margin-bottom:10px;
    font-size:18px;
  }

  .card p{
    font-size:14px;
    line-height:1.6;
    word-break:normal;
    overflow-wrap:break-word;
  }
}