*{margin:0;padding:0;box-sizing:border-box;-webkit-font-smoothing:antialiased}

:root{
  --bg:#f5f5f7;
  --dark:#0B0E1A;
  --dark2:#1A1F40;
  --text:#1c1c1e;
  --text2:#636366;
  --text3:#aeaeb2;
  --blue:#007AFF;
  --spring:cubic-bezier(.25,1.6,.45,1);
  --spring-in:cubic-bezier(.6,0,.84,0);
}

html{scroll-behavior:smooth}
body{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","PingFang SC","Helvetica Neue",sans-serif;
  background:var(--bg);color:var(--text);
  overflow-x:hidden;line-height:1.6;
}

/* ===== Grain Overlay ===== */
.grain{
  position:fixed;top:0;left:0;right:0;bottom:0;
  pointer-events:none;z-index:9999;
  opacity:0.025;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Glass Surface ===== */
.glass-surface{
  background:rgba(255,255,255,0.55);
  backdrop-filter:blur(40px) saturate(180%);
  -webkit-backdrop-filter:blur(40px) saturate(180%);
  border:1px solid rgba(255,255,255,0.8);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(255,255,255,0.3);
  position:relative;
}
.glass-surface::before{
  content:'';position:absolute;
  top:-50%;left:-10%;width:120%;height:55%;
  background:radial-gradient(ellipse,rgba(255,255,255,0.5) 0%,transparent 70%);
  pointer-events:none;border-radius:inherit;
}
.glass-surface::after{
  content:'';position:absolute;
  top:1px;left:15%;right:15%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.9),transparent);
  pointer-events:none;border-radius:inherit;
}
.glass-surface>*{position:relative;z-index:1}

/* ===== Navigation ===== */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  border-radius:0;border-left:none;border-right:none;border-top:none;
  padding:0 clamp(16px,4vw,24px);
}
.nav-inner{
  max-width:1080px;margin:0 auto;
  height:56px;
  display:flex;align-items:center;justify-content:space-between;
}
.nav-logo{
  display:flex;align-items:center;gap:10px;
  font-size:18px;font-weight:700;color:var(--text);
}
.logo-icon{
  width:36px;height:36px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  color:var(--text);
}
.logo-icon svg{width:18px;height:18px;position:relative;z-index:1}
.nav-links{display:flex;gap:28px}
.nav-links a{
  font-size:14px;font-weight:500;color:var(--text2);
  text-decoration:none;
  transition:color .2s ease;
}
.nav-links a:hover{color:var(--text)}

/* ===== Hero ===== */
.hero{
  min-height:100vh;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  position:relative;overflow:hidden;
  padding:80px 20px 60px;
}
.hero-bg{
  position:absolute;top:0;left:0;right:0;bottom:0;
  overflow:hidden;
}
.orb{
  position:absolute;border-radius:50%;
  filter:blur(80px);opacity:0.4;
  animation:orbFloat 20s ease-in-out infinite;
}
.orb-1{
  width:500px;height:500px;
  background:linear-gradient(135deg,#667eea,#764ba2);
  top:-10%;right:-5%;
  animation-delay:0s;
}
.orb-2{
  width:400px;height:400px;
  background:linear-gradient(135deg,#4facfe,#00f2fe);
  bottom:-5%;left:-5%;
  animation-delay:-7s;
}
.orb-3{
  width:350px;height:350px;
  background:linear-gradient(135deg,#43e97b,#38f9d7);
  top:40%;left:50%;
  animation-delay:-14s;
}
@keyframes orbFloat{
  0%,100%{transform:translate(0,0) scale(1)}
  25%{transform:translate(30px,-40px) scale(1.05)}
  50%{transform:translate(-20px,30px) scale(0.95)}
  75%{transform:translate(40px,20px) scale(1.02)}
}

.hero-content{
  text-align:center;
  max-width:720px;
  position:relative;z-index:1;
}

.hero-badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 16px 6px 12px;border-radius:50px;
  font-size:12px;font-weight:500;color:var(--text2);
  margin-bottom:28px;
  animation:fadeUp .8s var(--spring) both;
}
.badge-dot{
  width:6px;height:6px;border-radius:50%;
  background:#34C759;
  animation:pulse 2s ease-in-out infinite;
}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.8)}}

.hero h1{
  font-size:clamp(40px,8vw,72px);
  font-weight:800;
  line-height:1.05;
  letter-spacing:-0.03em;
  margin-bottom:20px;
}
.hero h1 .line-1{
  display:block;
  animation:fadeUp .8s var(--spring) .1s both;
}
.hero h1 .line-2{
  display:block;
  background:linear-gradient(135deg,var(--blue),#5856D6,#AF52DE);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  animation:fadeUp .8s var(--spring) .2s both;
}

.hero-desc{
  font-size:clamp(15px,2.5vw,18px);
  color:var(--text2);
  line-height:1.7;
  margin-bottom:36px;
  animation:fadeUp .8s var(--spring) .3s both;
}

.hero-actions{
  display:flex;align-items:center;justify-content:center;gap:12px;
  flex-wrap:wrap;
  animation:fadeUp .8s var(--spring) .4s both;
}

.btn-primary{
  display:inline-flex;align-items:center;gap:10px;
  padding:14px 28px;border-radius:16px;
  text-decoration:none;
  color:var(--text);font-size:15px;font-weight:600;
  transition:transform .25s var(--spring),box-shadow .3s ease;
}
.btn-primary:active{transform:scale(.95)}
.btn-primary svg{width:18px;height:18px}
.btn-size{font-size:11px;color:var(--text3);font-weight:400}

.btn-ghost{
  display:inline-flex;align-items:center;gap:8px;
  padding:14px 24px;border-radius:16px;
  text-decoration:none;
  color:var(--text2);font-size:15px;font-weight:500;
  transition:transform .25s var(--spring);
}
.btn-ghost:active{transform:scale(.95)}
.btn-ghost svg{width:16px;height:16px}

.hero-stats{
  display:flex;align-items:center;justify-content:center;gap:28px;
  margin-top:52px;
  animation:fadeUp .8s var(--spring) .5s both;
}
.stat{text-align:center}
.stat-val{display:block;font-size:22px;font-weight:700;color:var(--text)}
.stat-label{font-size:12px;color:var(--text3);margin-top:2px}
.stat-divider{width:1px;height:32px;background:rgba(0,0,0,0.08)}

@keyframes fadeUp{
  0%{opacity:0;transform:translateY(24px)}
  100%{opacity:1;transform:translateY(0)}
}

/* ===== Sections ===== */
.section{padding:100px 20px;position:relative}
.section-dark{background:#0B0E1A;color:#f5f5f7}
.section-dark .section-tag{
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.12);
  color:rgba(255,255,255,0.7);
}
.section-dark .section-tag::before{background:radial-gradient(ellipse,rgba(255,255,255,0.06) 0%,transparent 70%)}
.section-dark .section-tag::after{background:linear-gradient(90deg,transparent,rgba(255,255,255,0.15),transparent)}
.section-dark h2{color:#f5f5f7}
.section-dark p{color:rgba(255,255,255,0.6)}

.section-inner{max-width:1080px;margin:0 auto}

.section-header{text-align:center;margin-bottom:60px}
.section-tag{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 16px;border-radius:50px;
  font-size:12px;font-weight:500;color:var(--text2);
  margin-bottom:20px;
}
.section-header h2{
  font-size:clamp(32px,5vw,48px);
  font-weight:800;letter-spacing:-0.02em;
  margin-bottom:12px;color:var(--text);
}
.section-header p{
  font-size:clamp(15px,2vw,18px);color:var(--text2);
}

/* ===== Features Grid ===== */
.features-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.feature-card{
  border-radius:20px;padding:28px 24px;
  transition:transform .3s var(--spring);
}
.feature-card:active{transform:scale(.97)}
.feature-icon{
  width:48px;height:48px;border-radius:14px;
  background:rgba(0,122,255,0.08);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;
  position:relative;z-index:1;
}
.feature-icon svg{width:22px;height:22px;color:var(--blue)}
.feature-card h3{
  font-size:17px;font-weight:600;margin-bottom:8px;
  position:relative;z-index:1;
}
.feature-card p{
  font-size:14px;color:var(--text2);line-height:1.6;
  position:relative;z-index:1;
}

/* ===== Design Showcase ===== */
.showcase-card{
  border-radius:24px;
  padding:clamp(24px,4vw,40px);
  display:flex;align-items:center;gap:40px;
}
.showcase-mockup{flex-shrink:0}
.phone-frame{
  width:clamp(200px,30vw,260px);
  aspect-ratio:9/19.5;
  border-radius:28px;
  background:linear-gradient(135deg,#0B0E1A,#1A1F40);
  padding:8px;
  box-shadow:0 20px 60px rgba(0,0,0,0.3);
}
.phone-screen{
  width:100%;height:100%;
  border-radius:22px;
  background:var(--bg);
  overflow:hidden;
  display:flex;flex-direction:column;
  padding:12px 8px 0;
  position:relative;
}
.mock-topbar{display:flex;align-items:center;gap:6px;margin-bottom:8px}
.mock-icon{width:24px;height:24px;border-radius:7px;flex-shrink:0}
.mock-pills{display:flex;gap:4px}
.mock-pill{height:20px;border-radius:10px;width:40px;opacity:0.5}
.mock-pill.active{opacity:1;width:48px;color:var(--blue)}
.mock-grid{flex:1;display:flex;flex-direction:column;gap:6px;padding:4px 0}
.mock-note{
  border-radius:10px;height:50px;
  opacity:0.6;
}
.mock-note:nth-child(1){opacity:.8}
.mock-note:nth-child(2){opacity:.7}
.mock-note.empty{
  opacity:0.3;
  display:flex;align-items:center;justify-content:center;
}
.mock-plus{font-size:18px;color:var(--text3);position:relative;z-index:1}
.mock-tab{
  margin:-8px -8px 0;border-radius:16px 16px 0 0;
  height:36px;
  display:flex;align-items:center;justify-content:center;
}
.mock-tab-inner{
  display:flex;gap:20px;
  position:relative;z-index:1;
}
.mock-tab-item{font-size:10px;font-weight:600;color:var(--text3)}
.mock-tab-item.active{color:var(--text)}

.showcase-text{position:relative;z-index:1}
.showcase-text h3{
  font-size:clamp(22px,3.5vw,28px);font-weight:700;
  margin-bottom:12px;
}
.showcase-text p{
  font-size:clamp(14px,2vw,16px);color:var(--text2);
  line-height:1.7;margin-bottom:20px;
}
.showcase-tags{display:flex;flex-wrap:wrap;gap:8px}
.showcase-tags span{
  padding:6px 14px;border-radius:50px;
  font-size:12px;font-weight:500;
  font-family:SF Mono,Menlo,monospace;
  color:var(--text2);
}

/* ===== Design Features ===== */
.design-features{
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
  margin-top:60px;
}
.df-item{padding:24px 0}
.df-num{
  font-size:13px;font-weight:700;color:var(--blue);
  margin-bottom:12px;letter-spacing:0.5px;
}
.df-item h4{font-size:17px;font-weight:600;margin-bottom:8px}
.df-item p{font-size:14px;color:rgba(255,255,255,0.6);line-height:1.6}

/* ===== Security Grid ===== */
.security-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:16px;
}
.sec-card{
  border-radius:20px;padding:28px 24px;
  transition:transform .3s var(--spring);
}
.sec-card:active{transform:scale(.97)}
.sec-icon{
  width:48px;height:48px;border-radius:14px;
  background:rgba(0,122,255,0.08);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;
  position:relative;z-index:1;
}
.sec-icon svg{width:22px;height:22px;color:var(--blue)}
.sec-card h4{
  font-size:17px;font-weight:600;margin-bottom:8px;
  position:relative;z-index:1;
}
.sec-card p{
  font-size:14px;color:var(--text2);line-height:1.6;
  position:relative;z-index:1;
}

/* ===== Footer ===== */
.footer{
  padding:60px 20px;
  text-align:center;
  border-top:1px solid rgba(0,0,0,0.06);
}
.footer-inner{max-width:480px;margin:0 auto}
.footer-brand{
  display:flex;align-items:center;justify-content:center;gap:10px;
  font-size:18px;font-weight:700;margin-bottom:12px;
}
.footer-brand .logo-icon{width:32px;height:32px;border-radius:9px}
.footer-brand .logo-icon svg{width:16px;height:16px}
.footer-desc{font-size:14px;color:var(--text3);margin-bottom:20px}
.footer-links{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:20px}
.footer-links a{
  font-size:14px;font-weight:500;color:var(--text2);
  text-decoration:none;
  transition:color .2s ease;
}
.footer-links a:hover{color:var(--text)}
.footer-sep{color:var(--text3)}
.footer-copy{font-size:12px;color:var(--text3)}

/* ===== Reveal Animation ===== */
[data-reveal]{
  opacity:0;transform:translateY(30px);
  transition:opacity .7s var(--spring-in),transform .8s var(--spring);
}
[data-reveal].visible{
  opacity:1;transform:translateY(0);
}

/* ===== Responsive ===== */
@media(max-width:768px){
  .features-grid{grid-template-columns:1fr 1fr}
  .design-features{grid-template-columns:1fr}
  .showcase-card{flex-direction:column;text-align:center}
  .showcase-tags{justify-content:center}
  .security-grid{grid-template-columns:1fr}
  .hero-stats{gap:20px}
  .nav-links{display:none}
}
@media(max-width:480px){
  .features-grid{grid-template-columns:1fr}
  .hero{padding:70px 16px 40px}
  .hero h1{margin-bottom:16px}
  .hero-actions{flex-direction:column;width:100%}
  .btn-primary,.btn-ghost{width:100%;justify-content:center}
}
