:root{
    --bg:#060911;
    --surface:#0e1420;
    --surface-2:#131b2c;
    --border:#1f2837;
    --text:#edeff4;
    --text-muted:#8a93a6;
    --accent:#4c6ef5;
    --accent-2:#8b5cf6;
    --accent-glow:rgba(76,110,245,.35);
    --header-bg:rgba(6,9,17,.72);
    --radius:14px;
    --maxw:1160px;
  }
  [data-theme="light"]{
    --bg:#f7f8fb;
    --surface:#ffffff;
    --surface-2:#eef1f7;
    --border:#e2e6f0;
    --text:#14151d;
    --text-muted:#5b6272;
    --accent:#4c6ef5;
    --accent-2:#8b5cf6;
    --accent-glow:rgba(76,110,245,.16);
    --header-bg:rgba(255,255,255,.78);
  }
  *{box-sizing:border-box;margin:0;padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--text);
    font-family:'Inter',system-ui,sans-serif;
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
    transition:background-color .3s ease, color .3s ease;
  }
  body::before{
    content:"";
    position:fixed;inset:0;
    background:
      radial-gradient(700px 500px at 85% -10%, var(--accent-glow), transparent 60%),
      radial-gradient(500px 400px at -10% 30%, rgba(139,92,246,.18), transparent 60%);
    pointer-events:none;
    z-index:0;
  }
  a{color:inherit;text-decoration:none;}
  img,svg{display:block;max-width:100%;}
  .wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px;position:relative;z-index:1;}
  h1,h2,h3{font-family:'Space Grotesk',sans-serif;letter-spacing:-.01em;}
  .eyebrow{
    font-family:'JetBrains Mono',monospace;
    font-size:13px;
    color:var(--accent);
    letter-spacing:.02em;
    display:flex;align-items:center;gap:8px;
  }
  .eyebrow::before{content:"";width:7px;height:7px;border-radius:2px;background:var(--accent);display:inline-block;transform:rotate(45deg);}
  :focus-visible{outline:2px solid var(--accent);outline-offset:3px;}

  /* header */
  header{
    position:sticky;top:0;z-index:50;
    background:var(--header-bg);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--border);
    transition:background-color .3s ease, border-color .3s ease;
  }
  .theme-toggle{
    width:38px;height:38px;flex:0 0 auto;border-radius:10px;
    border:1px solid var(--border);background:var(--surface);
    display:flex;align-items:center;justify-content:center;cursor:pointer;
    color:var(--text);transition:background-color .3s ease, border-color .3s ease, transform .15s ease;
    margin-right:10px;
  }
  .theme-toggle:hover{transform:translateY(-1px);border-color:var(--accent);}
  .theme-toggle svg{width:17px;height:17px;}
  .theme-toggle .icon-moon{display:none;}
  [data-theme="light"] .theme-toggle .icon-sun{display:none;}
  [data-theme="light"] .theme-toggle .icon-moon{display:block;}
  header .wrap{display:flex;align-items:center;justify-content:space-between;height:76px;}
  .logo{display:flex;align-items:center;gap:10px;font-family:'Space Grotesk';font-weight:700;font-size:19px;text-transform:uppercase;letter-spacing:.02em;}
  nav{display:flex;gap:32px;align-items:center;}
  nav a{font-size:14.5px;color:var(--text-muted);transition:color .2s;}
  nav a:hover{color:var(--text);}
  .btn{
    display:inline-flex;align-items:center;gap:8px;
    padding:11px 20px;border-radius:10px;
    font-size:14.5px;font-weight:600;
    transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
    border:1px solid transparent;
    cursor:pointer;
  }
  .btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;box-shadow:0 8px 24px -8px var(--accent-glow);}
  .btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 28px -8px var(--accent-glow);}
  .btn-ghost{border-color:var(--border);color:var(--text);}
  .btn-ghost:hover{border-color:var(--accent);}
  header .btn{padding:9px 18px;font-size:13.5px;}

  /* hero */
  .hero{padding:96px 0 90px;position:relative;}
  .hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center;}
  .hero h1{font-size:52px;line-height:1.08;margin:18px 0 20px;font-weight:700;}
  .hero h1 span{background:linear-gradient(135deg,var(--accent),var(--accent-2));-webkit-background-clip:text;background-clip:text;color:transparent;}
  .hero p{color:var(--text-muted);font-size:17px;max-width:480px;margin-bottom:32px;}
  .hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:38px;}
  .hero-meta{display:flex;gap:28px;flex-wrap:wrap;}
  .hero-meta div{display:flex;flex-direction:column;gap:2px;}
  .hero-meta strong{font-family:'Space Grotesk';font-size:20px;}
  .hero-meta span{font-size:12.5px;color:var(--text-muted);}

  /* hero'daki telefon (codelra.com gizlilik ekranı) */
  .hero-phone{perspective:800px;display:flex;flex-direction:column;align-items:center;gap:18px;justify-self:center;}
  .hero-phone-caption{font-family:'JetBrains Mono',monospace;font-size:.72rem;color:var(--text-muted);text-align:center;max-width:260px;}

  section{padding:88px 0;border-top:1px solid var(--border);position:relative;transition:border-color .3s ease;}
  .section-head{max-width:600px;margin-bottom:48px;}
  .section-head h2{font-size:34px;margin:14px 0 12px;}
  .section-head p{color:var(--text-muted);font-size:16px;}

  /* services */
  .services{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
  .service{
    background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
    padding:28px 26px;transition:border-color .2s, transform .2s, background-color .3s ease;
  }
  .service:hover{border-color:var(--accent);transform:translateY(-4px);}
  .service .ic{
    width:42px;height:42px;border-radius:10px;
    background:linear-gradient(135deg,var(--accent-glow),transparent);
    border:1px solid var(--border);
    display:flex;align-items:center;justify-content:center;margin-bottom:18px;
  }
  .service h3{font-size:19px;margin-bottom:10px;}
  .service p{color:var(--text-muted);font-size:14.5px;}

  /* included checklist */
  .included{background:var(--surface);transition:background-color .3s ease;}
  .grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--border);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:background-color .3s ease,border-color .3s ease;}
  .incl-item{background:var(--surface);padding:26px 22px;transition:background-color .3s ease;}
  .incl-item .check{
    width:30px;height:30px;border-radius:8px;background:rgba(76,110,245,.12);
    color:var(--accent);display:flex;align-items:center;justify-content:center;margin-bottom:14px;font-size:15px;
  }
  .incl-item h4{font-family:'Space Grotesk';font-size:15.5px;margin-bottom:6px;}
  .incl-item p{font-size:13px;color:var(--text-muted);}

  /* process */
  .process{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
  .step{position:relative;padding-top:8px;}
  .step .num{font-family:'JetBrains Mono';color:var(--accent);font-size:13px;margin-bottom:14px;display:block;}
  .step h4{font-size:16.5px;margin-bottom:8px;}
  .step p{font-size:13.5px;color:var(--text-muted);}
  .step:not(:last-child)::after{
    content:"";position:absolute;top:12px;left:calc(100% - -4px);width:calc(100% - 20px);
    display:none;
  }

  /* why */
  .why{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;}
  .why-stats{display:grid;grid-template-columns:1fr 1fr;gap:22px;}
  .stat{border-left:2px solid var(--accent);padding-left:16px;}
  .stat strong{font-family:'Space Grotesk';font-size:30px;display:block;}
  .stat span{font-size:13px;color:var(--text-muted);}
  .why-copy p{color:var(--text-muted);font-size:16px;margin-bottom:18px;}

  /* cta */
  .cta{
    background:linear-gradient(135deg, rgba(76,110,245,.14), rgba(139,92,246,.10));
    border-top:1px solid var(--border);
    text-align:center;
  }
  .cta h2{font-size:36px;margin-bottom:14px;}
  .cta p{color:var(--text-muted);margin-bottom:30px;font-size:16px;}
  .cta .btn{padding:15px 30px;font-size:15.5px;}

  footer{border-top:1px solid var(--border);padding:40px 0;}
  footer .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;}
  footer .f-links{display:flex;gap:22px;}
  footer .f-links a{color:var(--text-muted);font-size:13.5px;}
  footer .f-links a:hover{color:var(--text);}
  footer small{color:var(--text-muted);font-size:12.5px;}

  /* whatsapp floating button */
  .wa-float{
    position:fixed;bottom:26px;right:26px;z-index:60;
    width:58px;height:58px;border-radius:50%;
    background:#25D366;
    display:flex;align-items:center;justify-content:center;
    box-shadow:0 10px 30px -8px rgba(37,211,102,.6);
    transition:transform .2s ease;
  }
  .wa-float:hover{transform:scale(1.08);}
  .wa-float svg{width:28px;height:28px;}
  .wa-pulse{
    position:absolute;inset:0;border-radius:50%;
    background:#25D366;opacity:.55;
    animation:pulse 2.2s ease-out infinite;
  }
  @keyframes pulse{0%{transform:scale(1);opacity:.55;}100%{transform:scale(1.9);opacity:0;}}

  @media (max-width:900px){
    .hero-grid,.why{grid-template-columns:1fr;}
    .services{grid-template-columns:1fr 1fr;}
    .grid-4{grid-template-columns:1fr 1fr;}
    .process{grid-template-columns:1fr 1fr;}
    nav{display:none;}
    .hero h1{font-size:38px;}
    .hero-phone{margin-top:8px;}
  }
  @media (max-width:560px){
    .services,.grid-4,.process,.why-stats{grid-template-columns:1fr;}
    .hero{padding:48px 0 48px;}
    .hero h1{font-size:30px;}
    section{padding:56px 0;}
    .phone-demo{width:190px;height:398px;}
    .pd-dock{gap:8px;padding:6px 10px;}
    .pd-dock-icon{width:28px;height:28px;}
  }
  @media (prefers-reduced-motion: reduce){
    *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition:none !important;}
  }
  /* codelra.com telefon önizleme (gizlilik ekranı demosu) */
  .phone-scene{perspective:800px;position:relative;}
  .phone-demo{width:230px;height:482px;position:relative;transform-style:preserve-3d;border-radius:30px;box-shadow:0 30px 80px rgba(0,0,0,.45);}
  .pd-back{position:absolute;inset:0;background:linear-gradient(160deg,#2a3350,#1b2340,#242c4a);border-radius:30px;transform:translateZ(-16px);}
  .pd-edge{position:absolute;background:linear-gradient(180deg,#333d5e,#242c48,#2c3654);}
  .pd-edge-r{top:28px;bottom:28px;right:0;width:14px;transform-origin:right center;transform:rotateY(-90deg);}
  .pd-edge-l{top:28px;bottom:28px;left:0;width:14px;transform-origin:left center;transform:rotateY(90deg);}
  .pd-edge-t{left:28px;right:28px;top:0;height:14px;transform-origin:center top;transform:rotateX(-90deg);}
  .pd-edge-b{left:28px;right:28px;bottom:0;height:14px;transform-origin:center bottom;transform:rotateX(90deg);}
  .pd-bezel{width:100%;height:100%;background:linear-gradient(160deg,#333d5e,#242c48,#2c3654);border-radius:30px;padding:3px;position:relative;transform:translateZ(1px);}
  .pd-inner{width:100%;height:100%;background:#050608;border-radius:27px;padding:3px;}
  .pd-screen{width:100%;height:100%;border-radius:24px;overflow:hidden;position:relative;background:#050608;}
  .pd-screen::before{content:'';position:absolute;inset:0;background:#000;opacity:var(--priv-opacity,0);z-index:20;pointer-events:none;border-radius:inherit;}
  .pd-screen::after{content:'';position:absolute;top:9px;left:50%;transform:translateX(-50%);width:10px;height:10px;border-radius:50%;background:#030304;z-index:30;box-shadow:inset 0 0 2px rgba(30,30,60,.6);}
  .pd-wallpaper{position:absolute;inset:0;z-index:1;border-radius:inherit;background:
    radial-gradient(ellipse 55% 45% at 65% 30%, rgba(139,92,246,.55), transparent 70%),
    radial-gradient(ellipse 50% 55% at 30% 65%, rgba(76,110,245,.5), transparent 65%),
    linear-gradient(160deg,#0b1020 0%,#182050 30%,#2d3f9e 55%,#4c6ef5 72%,#3a2f8f 88%,#12102a 100%);}
  .pd-statusbar{display:flex;justify-content:space-between;align-items:center;padding:4px 15px 0;position:relative;z-index:10;height:26px;}
  .pd-statusbar svg{display:block;}
  .pd-time{font-size:.6rem;font-weight:600;color:rgba(255,255,255,.92);font-family:'Inter',sans-serif;}
  .pd-status-icons{display:flex;gap:4px;align-items:center;}
  .pd-addressbar{margin:12px 10px 0;background:rgba(10,14,24,.55);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:6px 12px;display:flex;align-items:center;justify-content:center;gap:6px;position:relative;z-index:10;}
  .pd-addressbar span{font-family:'JetBrains Mono',monospace;font-size:.58rem;letter-spacing:.02em;color:rgba(255,255,255,.85);}
  .pd-notification{margin:14px 9px 0;background:rgba(14,18,32,.72);backdrop-filter:blur(20px);border-radius:16px;padding:11px 13px;position:relative;z-index:10;}
  .pd-notification::before{content:'';position:absolute;inset:0;background:#000;opacity:var(--notif-priv,0);z-index:15;border-radius:16px;pointer-events:none;}
  .pd-notif-header{display:flex;align-items:center;gap:6px;margin-bottom:5px;}
  .pd-notif-icon{width:17px;height:17px;border-radius:5px;background:linear-gradient(135deg,var(--accent),var(--accent-2));display:grid;place-items:center;flex-shrink:0;}
  .pd-notif-app{font-size:.48rem;color:rgba(255,255,255,.4);font-family:'Inter',sans-serif;}
  .pd-notif-when{font-size:.44rem;color:rgba(255,255,255,.25);margin-left:auto;font-family:'Inter',sans-serif;}
  .pd-notif-title{display:block;font-size:.58rem;font-weight:600;color:rgba(255,255,255,.92);margin-bottom:2px;text-decoration:none;font-family:'Inter',sans-serif;}
  .pd-notif-body{font-size:.5rem;color:rgba(255,255,255,.48);line-height:1.45;font-family:'Inter',sans-serif;}
  .pd-dock{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);display:flex;gap:11px;z-index:10;background:rgba(0,0,0,.28);backdrop-filter:blur(14px);border-radius:18px;padding:7px 12px;}
  .pd-dock-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;text-decoration:none;}
  .pd-di-1{background:linear-gradient(145deg,#5b7cf7,#3b5ce4);}
  .pd-di-2{background:linear-gradient(145deg,#7c6ef5,#5b4ce4);}
  .pd-di-browser{background:linear-gradient(145deg,#8b5cf6,#6d3fe0);box-shadow:0 0 0 2px rgba(139,92,246,.35),0 4px 14px -2px rgba(139,92,246,.6);}
  .pd-di-4{background:linear-gradient(145deg,#4c6ef5,#2f4fd6);}
  .pd-homebar{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);width:80px;height:3px;background:rgba(255,255,255,.32);border-radius:2px;z-index:10;}
  .pd-snooper{position:fixed;top:0;left:0;font-size:1.8rem;pointer-events:none;z-index:9999;transform:translate(-50%,-50%);opacity:0;transition:opacity .3s;}
  .pd-snooper.active{opacity:1;}